- Go to https://openweathermap.org/api.
- Create an account if necessary.
- Go to Current Weather Data and click on Subscribe.
- Click on Get API key under Free.
- Then go to https://home.openweathermap.org/api_keys, and find your API key there.
- Clone the repository
git clone https://github.com/suyashvsingh/weather.git
- Create .env file
In the root folder, create a new .env file
REACT_APP_URL=https://api.openweathermap.org/data/2.5/weather?units=metric
REACT_APP_WEATHER_API_KEY=[Your API key here]
- Install dependencies
cd client
npm install
cd server
npm install
- Run the server
cd server
npm run dev
- Run the client
cd client
npm run dev