Its a image server, that works based in json 3rd maturity level of API.
The image input need be carry on base64 format.
No external dependencies like ImageMagik are needed to crop image. It approach makes more simple build of Docker image.
Some environments variables need to be supplied like:
- HOST
- SQL_PRIMARY_URL
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- S3_BUCKET
# install dependencies
$ npm install
# run in develoment(default) env
$ npm start
or to production
# run in production
$ NODE_ENV=production npm start
ps: the other ENV vars need be exported before
If any doubt about how it works, api contracts etc, run the tests and see the output.
$ npm test