A weather app; that shows the current weather of a city. It changes the background to indicate different weather conditions. The app uses OpenWeatherMap API to fetch weather data. It can also show weather based on the user’s current location using Geolocation API.
👉 See it live here
- Shows current weather data of a city.
- Displays weather data based on user's location.
- Changes the background to indicate different weather conditions.
- Shows extra information like humidity, feels like, description, dayName, city and country.
- Fully responsive design.
- JavaScript
- HTML
- CSS
- webpack
- OpenWeatherMap API
- Geolocation API
- Jest
# clone repo
git clone https://github.com/sneharatnani/weather-app.git
# changing directory
cd weather-app
# installing dependencies
npm install
- Get your API key from OpenWeatherMap
- Rename .env.example to .env and provide your API Key.
# starting server
npm start
# testing with Jest
npm run test
Weather-app is MIT licensed.