A weather application built with React and the OpenWeather API.
This project is built with React and it uses the One Call 3.0 API from openweathermap.org to fetch the data.
I built this project to further my understanding of API's, furthermore, I now have a better understanding of fetch, async, await, and Promises.
- Current forecast
- Hourly forecast
- Daily forecast
- Current weather
- Current alerts
- Choice of metric or imperial
- Use current location
- Search for locations
- Reload data without reloading the page
- Time is synced with the location
- Error handling
- Run
pnpm install. - Generate an API key from openweathermap.org.
- Create a
.env.localfile and insert the API key into the.env.localfile, with the key asVITE_OPEN_WEATHER_API_KEY=. - Run
pnpm dev.
The SVG icons are from Remix Icon and feather.