How dss516/weather_app..- works
This is a weather dashboard with a React frontend and an Express backend. A user searches for a city; the dashboard requests current weather, forecast, and air-quality data, then renders summary panels and detail overlays. The backend resolves city coordinates and retrieves weather data from OpenWeather and daily temperatures from Open-Meteo. The supplied excerpts show the dashboard’s core request flow and component composition; some frontend components and overlay fetch logic were not sampled, so those internal relationships are not inferred.
Main entry points: Dashboard.jsx Dashboard State · LeftPanel.jsx Current Weather Panel · RightPanel.jsx Overview Panel · weatherService.js Weather Data Service
Components 16
Dashboard UI
- Dashboard State
frontend/src/pages/Dashboard.jsx - Current Weather Panel
frontend/src/components/layout/LeftPanel.jsx - Weather Summary
frontend/src/components/left/MainWeatherCard.jsx - Temperature View
frontend/src/components/left/TemperatureCard.jsx - City Search View
frontend/src/components/left/ImageCard.jsx - Overview Panel
frontend/src/components/layout/RightPanel.jsx - Weekly Forecast
frontend/src/components/forecast/WeeklyForecast.jsx - Weather Metric Cards
frontend/src/components/cards - Detail Charts
frontend/src/components/overlay/BlankOverlay.jsx
Weather API
- API Server
backend/server.js - Weather Routes
backend/routes/weatherRoutes.js - Weather Controllers
backend/controllers/weatherController.js - Weather Data Service
backend/services/weatherService.js
Weather Providers
- OpenWeather API
- Open-Meteo API
Other components
- City Searcher
Connections 15
- City Searcher → Dashboard State: chooses city
- Dashboard State → API Server: requests weather
frontend/src/pages/Dashboard.jsx - API Server → Weather Routes: mounts routes
backend/server.js - Weather Routes → Weather Controllers: dispatches requests
backend/routes/weatherRoutes.js - Weather Controllers → Weather Data Service: requests data
backend/controllers/weatherController.js - Weather Data Service → OpenWeather API: fetches weather
backend/services/weatherService.js - Weather Data Service → Open-Meteo API: fetches daily temps
backend/services/weatherService.js - Dashboard State → Current Weather Panel: renders
frontend/src/pages/Dashboard.jsx - Dashboard State → Overview Panel: renders
frontend/src/pages/Dashboard.jsx - Dashboard State → Detail Charts: opens details
frontend/src/pages/Dashboard.jsx - Current Weather Panel → Weather Summary: renders
frontend/src/components/layout/LeftPanel.jsx - Current Weather Panel → Temperature View: renders
frontend/src/components/layout/LeftPanel.jsx - Current Weather Panel → City Search View: renders
frontend/src/components/layout/LeftPanel.jsx - Overview Panel → Weekly Forecast: renders
frontend/src/components/layout/RightPanel.jsx - Overview Panel → Weather Metric Cards: renders
frontend/src/components/layout/RightPanel.jsx