Mission Brasil challenge.
- The api has only one
/images/ziproute that returns a zip file of images. - The api was developed with typescript following functional practices.
Below are the steps of using api.
Create the .env file and copy the environments that are in .env.example and populate them
$ npm install
$ yarn
$ yarn run tsc
$ node dist/src/index
$ curl localhost:3000/images/zip --output ~/Documents/images.zip
Or goin to favorite browser and access localhost:3000/images/zip
To facilitate development, it is not required to pass environment variables with the docker, just to have created the .env file and populated its environment variables.
$ docker build --rm -t challenge-mb .
$ docker run -p 3000:3000 challenge-mb