How sanika717/majorproject works
UrbanPulse is a Bengaluru civic-transparency platform: people explore a map-first dashboard and verified city data, with analytics for crime, construction, and police locations. Its backend also provides authentication, complaints, dashboard aggregation, and ESG data management and updates. The graph includes these distinct domain stages and the API/service/data layers. Several frontend and route implementations were not sampled; frontend-to-API wiring and some domain details are therefore not asserted.
Main entry points: main.py API application · dashboard_service.py Dashboard aggregation · crime_service.py Crime intelligence · construction_service.py Construction intelligence
Components 24
Public experience
- City dashboard
frontend/js/dashboard.js - Smart city map
frontend/js/map.js - Analytics views
frontend/js/crime.js - Construction analysis
frontend/js/construction.js - Police locations
frontend/js/locations.js
Civic intelligence
- Crime intelligence
backend/app/services/crime_service.py - Construction intelligence
backend/app/services/construction_service.py - Police data
backend/app/services/police_service.py - Dashboard aggregation
backend/app/services/dashboard_service.py
Civic services
- Complaint API
backend/app/routes/complaints.py - Complaint handling
backend/app/services/complaint_service.py
API and identity
- API application
backend/app/main.py - Crime API
backend/app/routes/crime.py - Construction API
backend/app/routes/construction.py - Police API
backend/app/routes/police.py - Dashboard API
backend/app/routes/dashboard.py - Authentication API
backend/app/routes/auth.py - Identity service
backend/app/services/auth_service.py - Relational database
backend/app/db/session.py
ESG data
- ESG API
backend/app/routes/esg.py - ESG data service
backend/app/services/esg_service.py - ESG update jobs
backend/app/services/esg_update/air_cpcb.py - Data provenance
backend/app/services/esg_update/provenance.py
Other components
- City resident
Connections 27
- City resident → City dashboard: explores
- City dashboard → Smart city map: presents map
- City resident → Analytics views: views insights
- City resident → Construction analysis: views analysis
- Smart city map → Police locations: shows locations
- API application → Crime API: registers route
backend/app/main.py - API application → Construction API: registers route
backend/app/main.py - API application → Police API: registers route
backend/app/main.py - API application → Dashboard API: registers route
backend/app/main.py - API application → Authentication API: registers route
backend/app/main.py - API application → Complaint API: registers route
backend/app/main.py - API application → ESG API: registers route
backend/app/main.py - Crime API → Crime intelligence: calls
backend/app/routes/crime.py - Construction API → Construction intelligence: calls
backend/app/routes/construction.py - Police API → Police data: calls
backend/app/routes/police.py - Dashboard API → Dashboard aggregation: calls
backend/app/routes/dashboard.py - Dashboard aggregation → Construction intelligence: calls
backend/app/services/dashboard_service.py - Dashboard aggregation → Crime intelligence: calls
backend/app/services/dashboard_service.py - Dashboard aggregation → Police data: calls
backend/app/services/dashboard_service.py - Authentication API → Identity service: calls
backend/app/routes/auth.py - Complaint API → Complaint handling: calls
backend/app/routes/complaints.py - ESG API → ESG data service: calls
backend/app/routes/esg.py - ESG data service → Data provenance: stamps records
backend/app/services/esg_service.py - ESG update jobs → Data provenance: uses provenance
backend/app/services/esg_update/air_cpcb.py - ESG update jobs → Relational database: stores readings
backend/app/services/esg_update/air_cpcb.py - Crime intelligence → Relational database: queries records
backend/app/services/crime_service.py - Construction intelligence → Relational database: queries records
backend/app/services/construction_service.py