Build a weather dashboard with real data from Open-Meteo: a status union for every outcome, a tested response normalizer, city disambiguation, latest-search-wins with AbortController, a TTL cache, unit switching, and server-side API keys.
What you'll build
A weather dashboard with live data where the latest search always wins, even on a slow network.
You'll build a weather dashboard with real data from Open-Meteo, a free weather API that needs no key. Search a city and see current conditions plus a 5-day forecast.
Fetching data is easy. Fetching it well is what this project is about. These are the problems every data-driven UI has:
1api.js the only code that talks to the weather service
2normalize.js API response -> the shape the UI wants
3weatherCodes.js WMO weather codes -> labels and icons
4useWeatherSearch.js requests, cancellation, and status
5cache.js a small time-based cache
6WeatherPanel.jsx one view per status
7CurrentConditions.jsx, Forecast.jsx, CityChoices.jsx, SearchForm.jsx
8App.jsx wiring, units, slow-network switchWhat you'll learn: modeling async UI as a status union, normalizing API data at the edge, race conditions and AbortController, disambiguation UX, caching with a TTL, locale-aware dates, and why API keys never go in frontend code.