How omkarmadchetti5758/mysocietysuitebe works
This is a multi-tenant society-management API. The principal workflow is a client request entering the Express application, passing through versioned routes and authentication, resolving society-scoped identity and permissions, then invoking a domain capability backed by the control-plane or operations database. The tree also shows financial management, community operations, reporting, AI assistance, and platform administration. Evidence is limited to the supplied source index and excerpts; unsampled feature internals and some route-to-service wiring are represented only where supported or left unconnected.
Main entry points: index.js Versioned routes · auth.service.js Authentication · server.js HTTP server · app.js Express application
Components 24
API runtime
- HTTP server
src/server.js - Express application
src/app.js - Versioned routes
src/routes/v1/index.js - Operations database
src/config/operationsDb.js
Identity and access
- Auth routes
src/modules/auth/auth.routes.js - Authentication
src/modules/auth/auth.service.js - Permission resolution
src/common/permissionResolver.js - Master database
src/config/masterDb.js - OTP delivery
src/modules/otp/otp.service.js
Society operations
- Society administration
src/modules/society - Residents and homes
src/modules/resident - Visitors and access
src/modules/visitor - Amenities and bookings
src/modules/amenity - Complaints and notices
src/modules/complaint - Staff operations
src/modules/staff
Finance and billing
- Billing and payments
src/modules/billing - Ledger and reconciliation
src/modules/ledger - Financial reports
src/modules/report
Platform capabilities
- Dashboard
src/modules/dashboard - AI assistant
src/modules/aiAssistant - Document management
src/modules/document - Object storage
src/services/storage.service.js - Email delivery
src/services/email.service.js
Other components
- API client
Connections 19
- API client → HTTP server: sends request
src/server.js - HTTP server → Express application: serves
src/server.js - Express application → Versioned routes: mounts routes
src/app.js - Versioned routes → Auth routes: registers
src/routes/v1/index.js - Auth routes → Authentication: dispatches
- Authentication → Permission resolution: resolves access
src/modules/auth/auth.service.js - Authentication → Master database: reads identity
src/modules/auth/auth.service.js - Authentication → Operations database: reads user
src/modules/auth/auth.service.js - HTTP server → Master database: connects
src/server.js - HTTP server → Operations database: connects
src/server.js - Authentication → Email delivery: sends invitations
src/modules/auth/auth.service.js - Authentication → OTP delivery: uses OTP
src/modules/auth/auth.service.js - Versioned routes → Society administration: registers routes
src/routes/v1/index.js - Versioned routes → Residents and homes: registers routes
src/routes/v1/index.js - Versioned routes → Staff operations: registers routes
src/routes/v1/index.js - Versioned routes → Amenities and bookings: registers routes
src/routes/v1/index.js - Complaints and notices → Object storage: stores attachments
src/modules/complaint/complaint.controller.js - Document management → Object storage: stores files
src/modules/document/document.controller.js - Billing and payments → Ledger and reconciliation: posts entries