Skip to content

Malekzie/Weather-App

Repository files navigation

Weather App

A weather dashboard built with SvelteKit, displaying real-time weather data with Redis caching to minimize API calls.

Live features

  • Search weather by city name
  • Current conditions: temperature, humidity, wind speed, weather description
  • Redis caching — serves cached data to reduce OpenWeather API calls

Stack

Layer Tech
Framework SvelteKit
UI shadcn-svelte · TailwindCSS
Icons Lucide Svelte
Weather data OpenWeather API
Caching Upstash Redis
Language TypeScript

Why Redis?

OpenWeather's free tier has rate limits. Rather than hitting the API on every request, weather data is cached in Upstash Redis and served until the TTL expires. Cuts unnecessary API calls and keeps the app fast on repeated lookups.

Setup

  1. Clone the repo
  2. Copy .env.example to .env and fill in your API keys:
    • OPENWEATHER_API_KEY — from openweathermap.org
    • UPSTASH_REDIS_REST_URL and UPSTASH_REDIS_REST_TOKEN — from upstash.com
  3. Install dependencies: pnpm install
  4. Run dev server: pnpm dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors