This is a simple Express Project that can be used as a guide to create your own Express Project. This dummy project is a simple Weather API, that retrieves the weather data for certains ZipCode or city name. No sofisticated error treatment is used, every error is a INTERNAL SERVER ERROR.
This app was developed using node version 8.11.1. So once you have this, install the dependencies:
$ npm installand run the application
$ npm startTo run the tests:
$ npm testTo build the docker image:
$ docker build . -t express-exampleTo run it in detached mode:
$ docker run -d -p <host-port>:9001 --name=<container-name> express-exampleAnd if want to see the logs, just remove -d from above command.
After you are tired of using it:
$ docker stop <container-name> && docker rm <container-name>If you want to see a detailed version run the app and paste <URL>/documentation in the inpu from Swagger UI demo page.