weather-app Svelte Themes

Weather App

Simple weather application built with Svelte 5 and Vite. Shows current weather and forecast using Open-Meteo API.

Weather App

This is a simple weather app made in Svelte 5 with Vite. The user can search for a city and check the current weather, short hourly forecast and the next few days.

Main functions

  • search for cities
  • show current weather
  • show short hourly forecast
  • show 5-day forecast
  • switch between Celsius and Fahrenheit
  • save recently searched places in localStorage

How to run the project

First install dependencies: npm install

Then start the development server: npm run dev

After that open the address shown in the terminal, usually: http://localhost:5173/

Production build

To create the production version: npm run build

To preview it: npm run preview

How CSS is transformed

This project uses Vite as a bundler and Svelte as the framework.

The CSS is written in:

  • src/app.css – global styles