Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The Weather App

A full-stack application to search cities and track real-time weather updates via WebSocket.

Features

  • Search Weather by City: Current weather fetched on search.
  • Real-Time Weather Updates: Automatic updates pushed every 30 seconds.
  • Multiple City Tracking: Subscribe to multiple cities simultaneously.
  • Remove/Unsubscribe Cities: Stop tracking a city.
  • Session-Based Tracking:Tracks subscriptions per WebSocket session

Prerequisites

  • Java 17+
  • Node.js
  • Gradle

Setup Instructions

Backend Setup

  1. Update application.properties with your OpenWeatherMap API keys:
weather.api.key=YOUR_WEATHER_API_KEY
weather.api.base-url=https://api.openweathermap.org
  1. Run the backend:
./mvnw spring-boot:run
  1. Backend runs on: http://localhost:8080

Frontend Setup

  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Frontend runs on: http://localhost:5173

About

A real-time Weather App where users can search for any city and receive live weather updates via WebSocket. Each user session manages its own city subscriptions, with automatic cleanup on disconnect. The system combines Spring Boot (REST + WebSocket) and a responsive React frontend.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages