Back to work

Weather App

A weather dashboard with city search, hourly and daily forecasts, and unit preferences.

Date
Nov 2025
Category
Frontend
Status
Live

Stack

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS
  • Zustand
Cover of Weather App, category Frontend

Problem

The challenge asked for a way to check the weather by city and show current conditions and forecasts, with initial location detection and unit preferences.

Role

I implemented the integration with Open-Meteo and ipapi, the unit state, and the responsive interface.

Decisions

  1. Two Open-Meteo services.

    Geocoding turns the city search into coordinates, and the forecast API returns current, hourly, and daily conditions for those coordinates.

  2. Debounced autocomplete.

    The search waits before calling the geocoding API so it does not send a request for every keystroke.

  3. Units in a Zustand store.

    Temperature, wind, and precipitation share a preferences state, and the interface converts values for display in the selected unit.

  4. Dates and time zones.

    Grouping the hourly forecast by day requires careful handling of dates and the time zone of each location before rendering the groups.

Result

The application starts with an approximate location, lets people search for cities, and presents conditions plus hourly and daily forecasts with configurable units and theme.