How praveen0e/nodue-platform works
This appears to be a role-based academic administration and student-clearance system. Users work through role-specific web pages; the backend exposes authenticated APIs for administration, advising, department oversight, staff, and students. Approval decisions and clearance-related functions are prominent domain stages, alongside staffing, class/subject, fee, and student-status management. The source index and excerpts support the backend route and controller structure, but frontend-to-backend request wiring and several service internals were not sampled; those connections are therefore omitted or marked unverified.
Main entry points: app.ts API assembly · database.ts Relational database · staff.controller.ts Staff operations · department.routes.ts Department and classroom APIs
Components 23
Role-based web app
- Role workspaces
frontend/src/app - Frontend API clients
frontend/src/lib
API runtime
- HTTP server
backend/src/server.ts - API assembly
backend/src/app.ts
Identity and access
- Authentication
backend/src/modules/auth/auth.service.ts - Auth endpoints
backend/src/modules/auth/auth.routes.ts - Request access checks
backend/src/middleware/authenticate.ts - Role authorization
backend/src/middleware/authorize.ts - Resource scoping
backend/src/middleware/resourceScope.ts
Academic operations
- Administration
backend/src/modules/admin/admin.controller.ts - Department oversight
backend/src/modules/hod/hod.controller.ts - Advisor operations
backend/src/modules/advisor/advisor.controller.ts - Staff operations
backend/src/modules/staff/staff.controller.ts - Student self-service
backend/src/modules/student/student.controller.ts - Approval engine
backend/src/modules/approval-engine/approval-engine.service.ts - Department and classroom APIs
backend/src/modules/departments/department.routes.ts - Classroom APIs
backend/src/modules/classrooms/classroom.routes.ts - Audit access
backend/src/modules/audit/audit.routes.ts
Runtime services
- Relational database
backend/src/plugins/database.ts - Cache and rate-limit store
backend/src/plugins/redis.ts - CSV processing
backend/src/utils/csvParser.ts - Metrics
backend/src/utils/metrics.ts
Other components
- Institution users
Connections 32
- Institution users → Role workspaces: use
- Role workspaces → Frontend API clients: request data
- Frontend API clients → API assembly: call API
- HTTP server → API assembly: registers routes
- API assembly → Auth endpoints: registers
backend/src/app.ts - API assembly → Administration: registers routes
backend/src/app.ts - API assembly → Department oversight: registers routes
backend/src/app.ts - API assembly → Advisor operations: registers routes
backend/src/app.ts - API assembly → Staff operations: registers routes
backend/src/app.ts - API assembly → Student self-service: registers routes
backend/src/app.ts - API assembly → Department and classroom APIs: registers routes
backend/src/app.ts - API assembly → Classroom APIs: registers routes
backend/src/app.ts - API assembly → Audit access: registers routes
backend/src/app.ts - Auth endpoints → Authentication: dispatches
backend/src/modules/auth/auth.service.ts - Staff operations → Request access checks: guards routes
backend/src/modules/staff/staff.routes.ts - Staff operations → Role authorization: guards routes
backend/src/modules/staff/staff.routes.ts - Student self-service → Request access checks: guards routes
backend/src/modules/student/student.routes.ts - Student self-service → Role authorization: guards routes
backend/src/modules/student/student.routes.ts - Department and classroom APIs → Resource scoping: checks scope
backend/src/modules/departments/department.routes.ts - Administration → CSV processing: uses parser
backend/src/modules/admin/admin.controller.ts - Advisor operations → Approval engine: decides requests
- Staff operations → Approval engine: decides requests
- Approval engine → Relational database: reads and writes
backend/src/modules/approval-engine/approval-engine.service.ts - Approval engine → Audit access: records audit
backend/src/modules/approval-engine/approval-engine.service.ts - Authentication → Relational database: reads and writes
backend/src/modules/auth/auth.service.ts - Authentication → Cache and rate-limit store: checks lockout
backend/src/modules/auth/auth.service.ts - Request access checks → Relational database: checks user
backend/src/middleware/authenticate.ts - Request access checks → Cache and rate-limit store: checks cache
backend/src/middleware/authenticate.ts - Department and classroom APIs → Relational database: reads records
backend/src/modules/departments/department.routes.ts - Department and classroom APIs → Cache and rate-limit store: caches listing
backend/src/modules/departments/department.routes.ts - API assembly → Metrics: exposes metrics
backend/src/app.ts - Relational database → Metrics: records slow queries
backend/src/plugins/database.ts