A simple web API that returns the weather for a provided city.
npm install; npm start;
npm
>=8.3.1
Node.js
>=v17.4.0
Express
>=4.18.1
Axios
>=0.27.2
- Install node using a node version manager like nvm or n
- Clone this repo
- In this project's directory, run
npm install
to install dependencies - Run the command
npm run build
to build the application - Duplicate the
.env.example
file as.env
file and use the provided configurations
- Run
npm start
- App should be running on localhost:3000/
- Go to route localhost:3000/weather/Toronto to get weather in Toronto
- The swagger UI will be available at localhost:3000/api-docs