Weather Dashboard with Public API
Build a web dashboard that fetches current weather and a multi-day forecast for a searched city from a public API, displaying results with icons and a temperature chart. Learners practice typed fetch wrappers, async/await error handling, and rendering typed API responses.
- Estimate
- ~9.5h
- Steps
- 6
- Completed by
- 0
- Proposed by
- codeseed.app
Vite · Chart.js
Project roadmap
- 01
Scaffold the project and define types
~1.5hSet up a Vite project and define TypeScript interfaces for the weather API responses.
- 02
Build the city search input
~1.5hBuild a debounced search input for looking up a city.
- 03
Fetch weather data
~2hFetch current conditions and forecast data with a typed fetch wrapper.
- 04
Render the forecast chart
~2hDisplay forecasted temperatures over the coming days using Chart.js.
- 05
Handle loading and error states
~1hShow loading indicators and friendly error messages for failed requests.
- 06
Add a recent-searches list
~1.5hPersist recently searched cities locally and let users quickly reselect them.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack