The weather service provides an api to connect to the https://openweathermap.org/ APIs to retrieve the weather forecast for a specific region.
You can define the applications port by setting the environment variable
PORT=8081
If not defined the default port is 8081.
You can start the application in production mode using following command.
npm start
You can start the application in development mode using following command.
npm run dev:start
The service is then executed using nodemon allowing it to be automatically restarted whenever source files are changed. Nodemon starts the service with NODE_ENV='development' to enable development mode.
After starting the application you'll find its openAPI definition via HTTP Rest request to
http://localhost:8081/docs