How abhishek8827/tvsm_erp_and_fms works
TVSM is a school ERP for student admissions and records, fee collection and accounting, certificates, and administration. Staff sign in, enter the role-appropriate workspace, and use its pages to perform school and finance operations through the API, which persists tenant-scoped data in MongoDB. The graph emphasizes fee workflows where source excerpts show the calls; other major route families are retained from the API registration and repository tree. Several feature implementations were not sampled, so their internal links are omitted rather than inferred.
Main entry points: app.js Express API routing · client.js API client · App.jsx Role-based workspace · feesDatabase.js Fee database routes
Components 20
Web workspace
- Role-based workspace
apps/web/src/App.jsx - Navigation shell
apps/web/src/layout/AppShell.jsx - API client
apps/web/src/api/client.js - Fee collection
apps/web/src/pages/CollectFee.jsx - Fee records
apps/web/src/pages/FeesDatabase.jsx - Certificate workflows
apps/web/src/pages/certificates/Tc.jsx
Identity and access
- Web authentication
apps/web/src/auth/AuthContext.jsx - Authentication routes
apps/api/src/routes/auth.js - Firebase identity
apps/api/src/auth/firebase.js
API and domain services
- Express API routing
apps/api/src/app.js - MongoDB persistence
apps/api/src/db.js - Certificate routes
apps/api/src/routes/certificates.js - Admissions and student records
apps/api/src/routes/admissions.js
Finance and records
- Fee database routes
apps/api/src/routes/feesDatabase.js - Fee database calculations
apps/api/src/services/feesDatabase.js - Money operations
apps/api/src/services/moneyStore.js - Cashbook and day close
apps/api/src/routes/cashbook.js - Reports and exports
apps/api/src/routes/reports.js
Shared rules
- Shared fee and money rules
packages/shared/src/money.js
Other components
- School staff
Connections 20
- School staff → Role-based workspace: uses
- Role-based workspace → Web authentication: checks session
apps/web/src/App.jsx - Role-based workspace → Navigation shell: renders workspace
apps/web/src/App.jsx - Navigation shell → School staff: offers navigation
apps/web/src/layout/AppShell.jsx - Web authentication → API client: loads session
apps/web/src/auth/AuthContext.jsx - Fee collection → API client: requests fee operations
apps/web/src/pages/CollectFee.jsx - Fee records → API client: requests fee records
apps/web/src/pages/FeesDatabase.jsx - Certificate workflows → API client: requests certificates
apps/web/src/pages/certificates/Tc.jsx - API client → Express API routing: sends HTTP requests
- Express API routing → Authentication routes: mounts routes
apps/api/src/app.js - Express API routing → Fee database routes: mounts routes
apps/api/src/app.js - Express API routing → Certificate routes: mounts routes
apps/api/src/app.js - Express API routing → Admissions and student records: mounts routes
apps/api/src/app.js - Express API routing → Cashbook and day close: mounts routes
apps/api/src/app.js - Express API routing → Reports and exports: mounts routes
apps/api/src/app.js - Fee database routes → Fee database calculations: builds fee rows
apps/api/src/routes/feesDatabase.js - Fee database calculations → Shared fee and money rules: computes dues
apps/api/src/services/feesDatabase.js - Authentication routes → Firebase identity: verifies identity
- Express API routing → MongoDB persistence: uses database
- Fee database routes → Money operations: uses finance stores