How mansi-91/kutumb works
Kutumb is a society-operations web app: residents, staff, security, and admins use a routed React client to access authenticated REST features such as complaints, bills, bookings, visitors, notices, and emergencies. Express route handlers enforce access and implement domain operations over MongoDB models; billing also supports optional Razorpay payments. The graph preserves the README’s major capabilities. Several client pages and routes were not excerpted, so their connections are shown only where README or indexed references support them; optional or unverified links are dashed.
Main entry points: api.js REST client · dashboard.js Society dashboard · User.js User records · complaints.js Complaint handling
Components 25
React client
- Route shell
client/src/App.jsx - REST client
client/src/api.js
Identity and access
- Session context
client/src/context/AuthContext.jsx - Authentication
server/routes/auth.js - JWT authorization
server/middleware/auth.js
Society operations
- Resident management
server/routes/users.js - Complaint handling
server/routes/complaints.js - Staff assignment
server/utils/staffJobs.js - Bills and fees
server/routes/bills.js - Facility booking
server/routes/bookings.js - Notices
server/routes/notices.js - Visitor passes
server/routes/visitors.js - Emergency SOS
server/routes/emergencies.js - Society dashboard
server/routes/dashboard.js
Domain data
- Bill records
server/models/Bill.js - Booking records
server/models/Booking.js - Complaint records
server/models/Complaint.js - Emergency records
server/models/Emergency.js - Facility records
server/models/Facility.js - Notice records
server/models/Notice.js - User records
server/models/User.js - Visitor records
server/models/Visitor.js
Other components
- Society users
- Payment gateway
- MongoDB
Connections 41
- Society users → Route shell: use
README.md - Route shell → Session context: checks session
client/src/App.jsx - Session context → REST client: loads profile
client/src/context/AuthContext.jsx - REST client → Authentication: sends REST requests
- REST client → Resident management: sends REST requests
- REST client → Complaint handling: sends REST requests
- REST client → Bills and fees: sends REST requests
- REST client → Facility booking: sends REST requests
- REST client → Notices: sends REST requests
- REST client → Visitor passes: sends REST requests
- REST client → Emergency SOS: sends REST requests
- REST client → Society dashboard: sends REST requests
- Authentication → User records: authenticates users
server/routes/auth.js - Authentication → Society users: emails reset link
- JWT authorization → User records: loads identity
server/middleware/auth.js - Resident management → User records: manages users
server/routes/users.js - Complaint handling → Complaint records: manages complaints
server/routes/complaints.js - Complaint handling → Staff assignment: assigns staff
server/routes/complaints.js - Complaint handling → User records: looks up staff
server/routes/complaints.js - Bills and fees → Bill records: creates and updates
server/routes/bills.js - Bills and fees → User records: selects residents
server/routes/bills.js - Bills and fees → Payment gateway: creates payment order
server/routes/bills.js - Facility booking → Booking records: manages bookings
server/routes/bookings.js - Facility booking → Facility records: checks facilities
server/routes/bookings.js - Notices → Notice records: manages notices
server/routes/notices.js - Visitor passes → Visitor records: manages visits
server/routes/visitors.js - Emergency SOS → Emergency records: records alerts
server/routes/emergencies.js - Society dashboard → User records: reads metrics
server/routes/dashboard.js - Society dashboard → Complaint records: reads metrics
server/routes/dashboard.js - Society dashboard → Bill records: reads metrics
server/routes/dashboard.js - Society dashboard → Visitor records: reads metrics
server/routes/dashboard.js - Society dashboard → Emergency records: reads metrics
server/routes/dashboard.js - Society dashboard → Booking records: reads metrics
server/routes/dashboard.js - Bill records → MongoDB: persists records
- Booking records → MongoDB: persists records
- Complaint records → MongoDB: persists records
- Emergency records → MongoDB: persists records
- Facility records → MongoDB: persists records
- Notice records → MongoDB: persists records
- User records → MongoDB: persists records
- Visitor records → MongoDB: persists records