Skip to content

A image server that stores in 3s, retreive image in a specified croped size and cache it.

Notifications You must be signed in to change notification settings

ExerciciosResolvidos/image_server

Repository files navigation

ImageServer

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.

Table of Contents

Configs

Some environments variables need to be supplied like:

  • HOST
  • SQL_PRIMARY_URL
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • S3_BUCKET

Run it

# 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

About

A image server that stores in 3s, retreive image in a specified croped size and cache it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published