How aarya7u15/live-city-dashboard works
MyCity is a React city dashboard that brings weather, dining, traffic, and alerts into a single interface. The app entry renders a page selected by its central App component; users navigate among the dashboard and service views, where weather and restaurant views fetch external data and present results. The README describes city selection and alerts/news, but the sampled code does not establish a complete city-selection flow, and the Alerts view is only a placeholder. Traffic data also appears in the Home excerpt, while the standalone Traffic component is incomplete.
Main entry points: App.jsx Page controller · Food.jsx Dining view · Home.jsx Home dashboard · Weather.jsx Weather view
Components 11
App shell
- React entry
Live_City_Dashboard/src/main.jsx - Page controller
Live_City_Dashboard/src/App.jsx
City dashboard
- Home dashboard
Live_City_Dashboard/src/components/Home.jsx
City services
- Weather view
Live_City_Dashboard/src/components/Weather.jsx - Dining view
Live_City_Dashboard/src/components/Food.jsx - Traffic view
Live_City_Dashboard/src/components/Traffic.jsx - Alerts view
Live_City_Dashboard/src/components/Alerts.jsx
External data
- Open-Meteo
- OpenWeather
- Restaurant API
Other components
- City user
Connections 12
- City user → Page controller: selects pages
README.md - React entry → Page controller: renders
Live_City_Dashboard/src/main.jsx - Page controller → Home dashboard: renders
Live_City_Dashboard/src/App.jsx - Page controller → Weather view: renders
Live_City_Dashboard/src/App.jsx - Page controller → Traffic view: renders
Live_City_Dashboard/src/App.jsx - Page controller → Dining view: renders
Live_City_Dashboard/src/App.jsx - Page controller → Alerts view: renders
Live_City_Dashboard/src/App.jsx - Page controller → Dining view: passes props
Live_City_Dashboard/src/App.jsx - Home dashboard → Open-Meteo: fetches weather
Live_City_Dashboard/src/components/Home.jsx - Weather view → OpenWeather: fetches weather
Live_City_Dashboard/src/components/Weather.jsx - Dining view → Restaurant API: fetches listings
Live_City_Dashboard/src/components/Food.jsx - Dining view → Home dashboard: uses weather helper
Live_City_Dashboard/src/components/Food.jsx