This app is a fullstack app build using React Frontend and Express Backend.
First get api key from OpenWeatherMap
Later, clone this project
git clone https://github.com/priyaraj7/weather-forecast.git
move inside the directory
cd weather-forecast
next move into the server and install dependencies and start the server
cd server
npm install
npm start
Create a .env
file and enter your api-key. You can refer .env-example
file
Open another terminal then cd into the client, install dependencies and start the server
cd client
npm install
npm start
Navigate to http://localhost:3000/
and enter the city name. You will get the one day weather forecast of the city
Note: Server runs on http://localhost:5000 and client on http://localhost:3000