MyWeatherApp is a web app built with TypeScript, React, Redux, and SCSS. It also uses the AccuWeather API to fetch all its data.
- Build a React application and use Redux and Redux-Toolkit as a state management library.
- Implement a simple, intuitive, and responsive UI.
- Dark and light mode.
- Autocomplete for city search.
- Display current weather and 5-day forecast.
- Favorite cities list.
- Update current weather for favorite cities if the last weather is older than 3 hours.
- Celsius and Fahrenheit temperature units.
Try the app live here.
- Clone the repository.
- Run
npm installto install the dependencies. - Run
npm run devto start the development server. - You need a
.envfile with theVITE_APP_API_KEYvariable to run the app. This key is provided by the AccuWeather API by creating a free account.