Made using ExpressJs and OpenWeatherMap API.
git clone https://github.com/vijayv18/WeatherApp-nodejs-api.git
Go to the project directory
cd WeatherApp-nodejs-api
Install "WeatherApp-nodejs-api" with npm
cd WeatherApp-nodejs-api
npm install
This will install all the required dependencies for the project to run,
To run this project, you will need to add the following environment variables to your .env
file
APP_KEY
- can be obtained by visiting OpenWeatherMap website and creating your own API KEY. Check this out - https://openweathermap.org/api
PORT
- 3000
APP_KEY
= Paste the created API key here
PORT
=3000
To run tests, run the following command
node app.js
And go to localhost:3000
on your browser to check if the project is working.