A responsive weather website that gives the weather of your current location on load and allows you to search for the weather of a specific place using the search option.
- Displays time, name of place, a short weather description, temperature in Celsius, minimum and maximum temperature, sunrise and sunset timing
- Provides a 5-day weather forecast, including the above parameters for each day
- Uses the OpenWeather API and OpenCage API to determine your location
- Clone the repository:
git clone https://github.com/MohitGupta12/weather-app.git
- Install dependencies:
npm install
oryarn install
- Create a new OpenWeather API key from https://openweathermap.org/api
- Create a new OpenCage API key from https://opencagedata.com/api
- Create a
.env
file in the root directory and add the following:REACT_APP_WEATHER_API_KEY=[your OpenWeather API key] REACT_APP_GEOCODE_API_KEY=[your OpenCage API key]
- Start the development server:
npm start
oryarn start
- Fork the repository
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request