How bitguybandit/esumbong works
eSumbong is a resident-facing complaint reporting and tracking system with a Barangay Officer case-processing portal. Residents submit reports, optionally with photos and map locations, then follow status updates; officers review, reject or categorize reports, choose referral targets, log actions, and resolve or close cases. The React client uses an Express REST API backed by Supabase Auth, PostgreSQL, and Storage. Several page and route implementations were not excerpted, so their documented capabilities are represented without speculative internal call links.
Main entry points: db.js Server database client · app.js Express API router · api.js REST API client · App.jsx Route application
Components 27
Web experience
- Route application
client/src/App.jsx - Public entry
client/src/pages/Landing.jsx - Session and profile
client/src/context/AuthContext.jsx - REST API client
client/src/lib/api.js - Supabase client
client/src/lib/supabase.js - Shared interface components
client/src/components
Complaint casework
- Resident portal
client/src/pages/resident - Complaint submission
client/src/pages/resident/SubmitComplaint.jsx - Officer portal
client/src/pages/officer - Case review
client/src/pages/officer/ComplaintDetails.jsx - Officer dashboard
client/src/pages/officer/OfficerDashboard.jsx
API services
- Express API router
server/src/app.js - Auth and profile
server/src/routes/auth.routes.js - Complaint reports and tracking
server/src/routes/complaints.routes.js - Officer case actions
server/src/routes/officer.routes.js - Photo uploads
server/src/routes/uploads.routes.js - Resident notifications
server/src/routes/notifications.routes.js - Categories and referrals
server/src/routes - Request authentication
server/src/middleware/auth.js - Validation and schemas
server/src/utils/validate.js - Case workflow helpers
server/src/utils - Server database client
server/src/db.js
Supabase platform
- Supabase Auth
- PostgreSQL data
- Supabase Storage
Other components
- Resident
- Barangay officer
Connections 43
- Resident → Public entry: opens
README.md - Barangay officer → Route application: enters portal
client/src/App.jsx - Route application → Public entry: routes to
client/src/App.jsx - Route application → Resident portal: routes to
client/src/App.jsx - Route application → Complaint submission: routes to
client/src/App.jsx - Route application → Officer portal: routes to
client/src/App.jsx - Resident → Complaint submission: files report
README.md - Barangay officer → Case review: reviews case
README.md - Barangay officer → Officer dashboard: views workload
README.md - Complaint submission → REST API client: submits data
client/src/pages/resident/SubmitComplaint.jsx - Resident portal → REST API client: requests records
client/src/pages/resident/ResidentDashboard.jsx - Case review → REST API client: requests case actions
client/src/pages/officer/ComplaintDetails.jsx - Officer dashboard → REST API client: loads dashboard data
client/src/pages/officer/OfficerDashboard.jsx - REST API client → Supabase client: gets session token
client/src/lib/api.js - Session and profile → Supabase client: manages session
client/src/context/AuthContext.jsx - Session and profile → REST API client: fetches profile
client/src/context/AuthContext.jsx - Route application → Shared interface components: uses layouts
client/src/App.jsx - REST API client → Express API router: calls REST API
README.md - Express API router → Auth and profile: mounts routes
server/src/app.js - Express API router → Complaint reports and tracking: mounts routes
server/src/app.js - Express API router → Officer case actions: mounts routes
server/src/app.js - Express API router → Photo uploads: mounts routes
server/src/app.js - Express API router → Resident notifications: mounts routes
server/src/app.js - Express API router → Categories and referrals: mounts routes
server/src/app.js - Auth and profile → Request authentication: requires identity
server/src/routes/auth.routes.js - Complaint reports and tracking → Request authentication: checks identity
server/src/routes/complaints.routes.js - Officer case actions → Request authentication: checks role
server/src/routes/officer.routes.js - Photo uploads → Request authentication: accepts optional identity
server/src/routes/uploads.routes.js - Complaint reports and tracking → Validation and schemas: validates reports
server/src/routes/complaints.routes.js - Officer case actions → Validation and schemas: validates actions
server/src/routes/officer.routes.js - Complaint reports and tracking → Case workflow helpers: generates tracking ID
server/src/routes/complaints.routes.js - Officer case actions → Case workflow helpers: notifies residents
server/src/routes/officer.routes.js - Auth and profile → Server database client: reads and updates profiles
server/src/routes/auth.routes.js - Complaint reports and tracking → Server database client: stores and reads cases
server/src/routes/complaints.routes.js - Officer case actions → Server database client: updates case records
server/src/routes/officer.routes.js - Photo uploads → Server database client: uploads file
server/src/routes/uploads.routes.js - Resident notifications → Server database client: reads notifications
server/src/routes/notifications.routes.js - Request authentication → Server database client: checks credentials
server/src/middleware/auth.js - Server database client → Supabase Auth: validates users
README.md - Server database client → PostgreSQL data: reads and writes
README.md - Photo uploads → Supabase Storage: stores media
server/src/routes/uploads.routes.js - Supabase client → Supabase Auth: authenticates users
README.md - Resident → Resident notifications: receives updates
README.md