Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

kyranet/canvas-constructor-server

Repository files navigation

canvas-constructor-server 🚀

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.

Deploying

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!

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request!

Author

canvas-constructor-server © kyranet, released under the MIT License. Authored and maintained by kyranet.

Github kyranet - Twitter @kyranet_

About

A canvas-constructor based API for image generation and microservicing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published