How daraanjali/fixmycity works
FixMyCity is a civic-issue reporting and administration platform. Citizens register or sign in, submit a complaint with location and an optional image, and receive AI-derived category and severity; issues are stored and then displayed for tracking, map visualization, and community support. The dashboard also summarizes, searches, and filters issues, while authorized administrators can update status. The README additionally describes real-time notifications, but the sampled source does not establish an implementation path for them, so they are not modeled. Some backend integrations are represented from the README and source index rather than inspected implementation details.
Main entry points: App.jsx Route shell · Dashboard.jsx Issue dashboard · issueService.js Issue API client · issueController.js Issue controller
Components 31
Web client
- Route shell
client/src/App.jsx - Issue dashboard
client/src/pages/Dashboard.jsx - Report form
client/src/pages/ReportIssue.jsx - Home page
client/src/pages/Home.jsx - Login page
client/src/pages/Login.jsx - Registration page
client/src/pages/Register.jsx - Auth state
client/src/context/AuthContext.jsx - Theme state
client/src/context/ThemeContext.jsx - Navigation
client/src/components/Navbar.jsx - Issue cards
client/src/components/IssueCard.jsx - Issue map
client/src/components/IssueMap.jsx - Dashboard stats
client/src/components/StatsCard.jsx - Status chart
client/src/components/StatusChart.jsx - HTTP client
client/src/utils/api.js
Identity and access
- Auth API client
client/src/services/authService.js - Route guard
client/src/components/ProtectedRoute.jsx - Auth routes
server/src/routes/authRoutes.js - Auth controller
server/src/controllers/authController.js
Issue handling
- Issue API client
client/src/services/issueService.js - Issue routes
server/src/routes/issueRoutes.js - Issue controller
server/src/controllers/issueController.js - Image upload
server/src/middleware/uploadMiddleware.js - AI categorization
server/src/utils/aiCategorize.js - Severity prediction
server/src/utils/aiSeverity.js
Storage and integrations
- Express app
server/src/app.js - User records
server/src/models/User.js - Issue records
server/src/models/Issue.js - Image hosting
server/src/config/cloudinary.js - MongoDB
- Hugging Face API
Other components
- Citizen or admin
Connections 38
- Citizen or admin → Route shell: uses
client/src/App.jsx - Route shell → Home page: routes to
client/src/App.jsx - Route shell → Login page: routes to
client/src/App.jsx - Route shell → Registration page: routes to
client/src/App.jsx - Route shell → Issue dashboard: routes to
client/src/App.jsx - Route shell → Report form: routes to
client/src/App.jsx - Route shell → Theme state: provides
client/src/App.jsx - Issue dashboard → Issue API client: fetches issues
client/src/pages/Dashboard.jsx - Issue dashboard → Navigation: renders
client/src/pages/Dashboard.jsx - Issue dashboard → Issue cards: renders
client/src/pages/Dashboard.jsx - Issue dashboard → Issue map: renders
client/src/pages/Dashboard.jsx - Issue dashboard → Dashboard stats: renders
client/src/pages/Dashboard.jsx - Issue dashboard → Status chart: renders
client/src/pages/Dashboard.jsx - Report form → Issue API client: submits through
client/src/pages/ReportIssue.jsx - Login page → Auth API client: authenticates via
client/src/pages/Login.jsx - Registration page → Auth API client: registers via
client/src/pages/Register.jsx - Auth API client → HTTP client: sends requests
client/src/services/authService.js - Issue API client → HTTP client: sends requests
client/src/services/issueService.js - Navigation → Auth state: reads and updates
client/src/components/Navbar.jsx - Navigation → Theme state: toggles
client/src/components/Navbar.jsx - Route guard → Auth state: checks session
client/src/components/ProtectedRoute.jsx - Issue cards → Issue API client: runs issue actions
client/src/components/IssueCard.jsx - Express app → Auth routes: mounts
server/src/app.js - Express app → Issue routes: mounts
server/src/app.js - Auth routes → Auth controller: dispatches
server/src/routes/authRoutes.js - Auth controller → User records: reads and writes
server/src/controllers/authController.js - Issue routes → Issue controller: dispatches
server/src/routes/issueRoutes.js - Issue routes → Image upload: runs upload middleware
server/src/routes/issueRoutes.js - Issue controller → AI categorization: classifies text
server/src/controllers/issueController.js - Issue controller → Severity prediction: predicts severity
server/src/controllers/issueController.js - Issue controller → Issue records: reads and writes
server/src/controllers/issueController.js - Image upload → Image hosting: configures upload
server/src/middleware/uploadMiddleware.js - AI categorization → Hugging Face API: uses inference
README.md - User records → MongoDB: persists in
README.md - Issue records → MongoDB: persists in
README.md - Image hosting → Citizen or admin: hosts uploaded images
README.md - Issue API client → Issue routes: calls issue endpoints
client/src/services/issueService.js - Auth API client → Auth routes: calls auth endpoints
client/src/services/authService.js