How priyanshu-18-soni/societypro_mern works
SocietyPro is a multi-tenant residential-society management application for owners, committee members, and residents. Users register or sign in, then access role-protected society administration, resident and committee management, maintenance billing and payments, complaints, notices, and treasury views. The backend exposes corresponding API route families and controller-backed domain operations; payment processing integrates Razorpay and records captured income in the ledger. The supplied README is empty, so capability coverage comes from the route and frontend indexes. Some frontend pages and backend controllers were not sampled; their internal links are omitted where unsupported.
Main entry points: App.jsx Application routes · server.js HTTP server · middleware Tenant and access checks · schemas.js Request validation
Components 34
Web application
- Application routes
frontend/src/App.jsx - API client
frontend/src/api/axiosInstance.js - Dashboard
frontend/src/pages/Dashboard.jsx
Identity and access
- Session context
frontend/src/context/AuthContext.jsx - Route protection
frontend/src/components/ProtectedRoute.jsx - Login and registration
frontend/src/pages/Login.jsx - Pending approval
frontend/src/pages/PendingApproval.jsx - HTTP server
backend/server.js - Authentication routes
backend/routes/authRoutes.js - Authentication operations
backend/controllers/authController.js - Tenant and access checks
backend/middleware - Request validation
backend/validations/schemas.js
Society administration
- Society management
frontend/src/pages/SocietyManagement.jsx - Committee management
frontend/src/pages/CommitteeManagement.jsx - Resident management
frontend/src/pages/ResidentManagement.jsx - Society routes
backend/routes/societyRoutes.js - Society operations
backend/controllers/societyController.js - Resident routes
backend/routes/userRoutes.js - Resident operations
backend/controllers/userController.js - Committee routes
backend/routes/committeeRoutes.js - Committee operations
backend/controllers/committeeController.js
Community services
- Complaints
frontend/src/pages/Complaints.jsx - Notices
frontend/src/pages/Notices.jsx - Complaint routes
backend/routes/complaintRoutes.js - Complaint operations
backend/controllers/complaintController.js - Notice routes
backend/routes/noticeRoutes.js - Notice operations
backend/controllers/noticeController.js
Billing and treasury
- Payments
frontend/src/pages/Payments.jsx - Treasury ledger
frontend/src/pages/Ledger.jsx - Payment routes
backend/routes/paymentRoutes.js - Billing and payment
backend/controllers/paymentController.js - Razorpay
- Finance routes
backend/routes/financeRoutes.js
Other components
- Society users
Connections 44
- Society users → Application routes: uses
frontend/src/App.jsx - Application routes → Session context: provides session
frontend/src/App.jsx - Application routes → Route protection: guards routes
frontend/src/App.jsx - Application routes → Login and registration: routes to
frontend/src/App.jsx - Application routes → Pending approval: routes to
frontend/src/App.jsx - Application routes → Dashboard: routes to
frontend/src/App.jsx - Application routes → Society management: routes to
frontend/src/App.jsx - Application routes → Committee management: routes to
frontend/src/App.jsx - Application routes → Resident management: routes to
frontend/src/App.jsx - Application routes → Payments: routes to
frontend/src/App.jsx - Application routes → Complaints: routes to
frontend/src/App.jsx - Application routes → Notices: routes to
frontend/src/App.jsx - Application routes → Treasury ledger: routes to
frontend/src/App.jsx - Payments → API client: uses
frontend/src/pages/Payments.jsx - Society management → API client: uses
frontend/src/pages/SocietyManagement.jsx - HTTP server → Authentication routes: mounts
backend/server.js - HTTP server → Society routes: mounts
backend/server.js - HTTP server → Resident routes: mounts
backend/server.js - HTTP server → Committee routes: mounts
backend/server.js - HTTP server → Complaint routes: mounts
backend/server.js - HTTP server → Notice routes: mounts
backend/server.js - HTTP server → Payment routes: mounts
backend/server.js - HTTP server → Finance routes: mounts
backend/server.js - Authentication routes → Authentication operations: dispatches
backend/routes/authRoutes.js - Authentication routes → Tenant and access checks: applies
backend/routes/authRoutes.js - Authentication routes → Request validation: validates with
backend/routes/authRoutes.js - Society routes → Society operations: dispatches
backend/routes/societyRoutes.js - Society routes → Tenant and access checks: applies
backend/routes/societyRoutes.js - Resident routes → Resident operations: dispatches
backend/routes/userRoutes.js - Resident routes → Tenant and access checks: applies
backend/routes/userRoutes.js - Committee routes → Committee operations: dispatches
backend/routes/committeeRoutes.js - Committee routes → Tenant and access checks: applies
backend/routes/committeeRoutes.js - Committee routes → Request validation: validates with
backend/routes/committeeRoutes.js - Complaint routes → Complaint operations: dispatches
backend/routes/complaintRoutes.js - Complaint routes → Tenant and access checks: applies
backend/routes/complaintRoutes.js - Complaint routes → Request validation: validates with
backend/routes/complaintRoutes.js - Notice routes → Notice operations: dispatches
backend/routes/noticeRoutes.js - Notice routes → Tenant and access checks: applies
backend/routes/noticeRoutes.js - Notice routes → Request validation: validates with
backend/routes/noticeRoutes.js - Payment routes → Billing and payment: dispatches
backend/routes/paymentRoutes.js - Payment routes → Tenant and access checks: applies
backend/routes/paymentRoutes.js - Payment routes → Request validation: validates with
backend/routes/paymentRoutes.js - Billing and payment → Razorpay: creates orders
backend/controllers/paymentController.js - Finance routes → Tenant and access checks: applies
backend/routes/financeRoutes.js