How tejas07102005/anvation-hackothon works
EcoCity AI is a municipal waste-management command center: operators review city status and alerts, inspect zones and service performance, and use forecasts or the EcoAgent to guide collection and routing actions. The React interface presents operational screens and can use the FastAPI service through a centralized REST client; the backend exposes domain APIs backed by risk, forecast, route-optimization, and segregation logic. The graph includes the README’s major product capabilities. Several backend route implementations and screens were not excerpted, so their internal behavior is not inferred.
Main entry points: App.jsx Command center app · main.py FastAPI application · agent.py Agent API · api.js REST API client
Components 31
Operations Interface
- Command center app
src/App.jsx - City waste map
src/components/CityWasteMap.jsx - EcoAgent drawer
src/components/EcoAgentDrawer.jsx
Waste Operations
- Command center
src/screens/CommandCenterScreen.jsx - Waste zones
src/screens/WasteZonesScreen.jsx - Historical analytics
src/screens/HistoricalAnalyticsScreen.jsx - Landfill intelligence
src/screens/LandfillIntelligenceScreen.jsx - Collection reliability
src/screens/CollectionReliabilityScreen.jsx - Source segregation
src/screens/SourceSegregationScreen.jsx - Route optimization
src/screens/RouteOptimizationScreen.jsx - Data and AI
src/screens/DataAndAIScreen.jsx
Frontend Intelligence
- Operational mock data
src/data/mockData.js - REST API client
src/services/api.js - AI intelligence engine
src/services/aiIntelligenceEngine.js - Route optimization engine
src/services/routeOptimizationEngine.js - EcoAgent tools
src/services/ecoAgentTools.js
Backend APIs
- FastAPI application
backend/main.py - Agent API
backend/api/agent.py - Dashboard API
backend/api/dashboard.py - Zones API
backend/api/zones.py - Vehicles API
backend/api/vehicles.py - Forecast API
backend/api/forecast.py - Landfill API
backend/api/landfill.py - Collection API
backend/api/collection.py - Segregation API
backend/api/segregation.py
Backend Engines
- Risk engine
backend/services/risk_engine.py - Forecast engine
backend/services/forecast_engine.py - Route optimizer
backend/services/route_optimizer.py - Segregation analysis
backend/services/segregation.py
Other components
- Municipal operator
- FastAPI service
Connections 40
- Municipal operator → Command center app: uses
README.md - Command center app → Command center: shows
src/App.jsx - Command center app → Waste zones: shows
src/App.jsx - Command center app → Historical analytics: shows
src/App.jsx - Command center app → Landfill intelligence: shows
src/App.jsx - Command center app → Collection reliability: shows
src/App.jsx - Command center app → Source segregation: shows
src/App.jsx - Command center app → Route optimization: shows
src/App.jsx - Command center app → Data and AI: shows
src/App.jsx - Command center app → EcoAgent drawer: opens
src/App.jsx - Command center → City waste map: renders
src/screens/CommandCenterScreen.jsx - Command center app → REST API client: fetches data
src/App.jsx - Command center app → AI intelligence engine: simulates sensors
src/App.jsx - Data and AI → AI intelligence engine: parses history
src/screens/DataAndAIScreen.jsx - Route optimization → Route optimization engine: optimizes routes
src/screens/RouteOptimizationScreen.jsx - EcoAgent drawer → EcoAgent tools: runs tools
src/components/EcoAgentDrawer.jsx - EcoAgent drawer → REST API client: queries agent
src/components/EcoAgentDrawer.jsx - Collection reliability → REST API client: fetches service data
src/screens/CollectionReliabilityScreen.jsx - Source segregation → REST API client: fetches service data
src/screens/SourceSegregationScreen.jsx - Landfill intelligence → Operational mock data: reads metrics
src/screens/LandfillIntelligenceScreen.jsx - Waste zones → Operational mock data: reads zone data
src/data/mockData.js - REST API client → FastAPI service: sends REST requests
src/services/api.js - FastAPI application → Agent API: registers
backend/main.py - FastAPI application → Dashboard API: registers
backend/main.py - FastAPI application → Zones API: registers
backend/main.py - FastAPI application → Vehicles API: registers
backend/main.py - FastAPI application → Forecast API: registers
backend/main.py - FastAPI application → Landfill API: registers
backend/main.py - FastAPI application → Collection API: registers
backend/main.py - FastAPI application → Segregation API: registers
backend/main.py - Agent API → Risk engine: uses
backend/api/agent.py - Agent API → Forecast engine: uses
backend/api/agent.py - Agent API → Route optimizer: uses
backend/api/agent.py - Agent API → Segregation analysis: uses
backend/api/agent.py - Zones API → Risk engine: uses
backend/api/zones.py - Forecast API → Forecast engine: uses
backend/api/forecast.py - Forecast API → Risk engine: uses
backend/api/forecast.py - Landfill API → Forecast engine: uses
backend/api/landfill.py - Vehicles API → Route optimizer: uses
backend/api/vehicles.py - Segregation API → Segregation analysis: uses
backend/api/segregation.py