This is a core-distributed micro-service that aims to render canvas-constructor commands in an array series.
It consumes a JSON
body from a POST request and will return the rendered image if successful with a 200 OK
code,
and with a JSON
response on why the response failed otherwise.
In release, I highly suggest setting up NGINX and enabling its g-zip and HTTP/2 options for
increased performance and lower latency, as those can be really slow when done in node.js. You
can also set up an Authorization
password with it so you do not need to touch canvas-constructor-server
's code-base.
Alternatively, you may want to modify the code to add pre-made hard-coded templates for increased performance, this repository serves as a baseline implementation, and may be forked and modified for any specific purpose. If you have a feature you think it can be useful for anybody, do not hesitate to contribute!
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request!
canvas-constructor-server © kyranet, released under the MIT License. Authored and maintained by kyranet.