<LEARN/>
← /paths/frontend

<project · intermediate>

Weather dashboard

Fetch a free weather API, show a five-day forecast and remember the last city searched.

Build weather dashboard one manageable milestone at a time. Keep your decisions, tests and finished work together so your portfolio shows what you learned, not only the final result.

Build it step by step

  1. Choose the weather source

    Use Open-Meteo geocoding and forecast APIs, which offer a free non-commercial tier. Read their usage terms and request only the fields your screen needs.

  2. Find a city

    Build a labelled search form. Resolve the city to latitude and longitude, and let users choose between similarly named places before fetching a forecast.

  3. Show five days

    Request five forecast days with local timezone handling. Render dates, weather descriptions, temperatures and units in a consistent five-day layout.

  4. Remember the search

    Save the selected city and coordinates in localStorage after a successful search. Restore that city on the next visit and handle missing or malformed saved data.

  5. Handle interruptions

    Add loading, empty-result and network-error states. Test an unknown city, a failed request and two quick searches so an older response cannot replace the newer one.

  6. Share your finished work

    Commit your source and a README explaining setup, decisions, tests and limitations. Remove secrets and personal data, credit dependencies and assets, then add the public repository or portfolio link and an optional working demo to LEARN Showcase. Hosting is optional; a clear repository or design case study is enough.

// done when

  • Exactly five local-date forecasts appear
  • The last successful city returns after reload
  • Unknown cities show a helpful message
  • Failed requests do not leave stale loading indicators
  • README includes setup, credits and limitations; shared links are safe and accessible

// stretch goals

  • Add Celsius and Fahrenheit switching
  • Show precipitation probability

Finished? Show it off

Add your project to the LEARN showcase so other learners and employers can see it.

Sign in to add your finished project to the showcase.