Weather API
A basic Express,Mongo,Nginx application returning the temperature for given cities.
The code to handle the logic is in controllers/CityTemperature.js
Pre-requisite
- You need to have docker installed on your machine
https://hub.docker.com/editions/community/docker-ce-desktop-mac
Setup
- Clone this repo:
git clone https://github.com/aconital/node-mongo-nginx-weatherapi.git
- Go to the project folder
cd node-mongo-nginx-weatherapi
- Build:
docker-compose build
- Run:
docker-compose up -d
- In order to kill the containers after you are done:
docker-compose down
Usage
GET /cities/:cities
Example: http://localhost:9000/cities/toronto|chicago