How zaramlt59/tmsv2 works
TMS is a government Teacher Management System: staff and administrators use a Vue application to manage teacher and school records, submit and approve transfers, and access reports and workforce analytics. The backend exposes an Express API, applies authentication and role-based access controls, and implements domain operations over MySQL. The map combines documented product capabilities with relationships visible in the supplied excerpts and source index; several feature areas are represented at directory level because their implementation files were not sampled.
Main entry points: App.vue TMS interface · app.ts HTTP API · teacherRoutes.ts Teacher routes · prismaService.ts MySQL database
Components 20
Web application
- TMS interface
frontend/src/App.vue - Session state
frontend/src/stores/auth.ts - Dashboards
frontend/src/views/dashboards - Teacher records UI
frontend/src/views/TeacherList.vue - Transfer workflows UI
frontend/src/views/TransferApplication.vue - Reports UI
frontend/src/views/TransferReports.vue
API and access
- HTTP API
src/app.ts - Authentication
src/middleware/auth.ts - Role access
src/middleware/roleBasedFiltering.ts - Teacher routes
src/routes/teacherRoutes.ts - Transfer routes
src/routes/transferApplicationRoutes.ts - Administrative workflows
src/routes/workflowRoutes.ts
Domain services
- Teacher operations
src/controllers/teacherController.ts - Transfer applications
src/services/transferApplicationService.ts - Approver assignments
src/services/approverAssignmentService.ts - Teacher and school data
src/services/teacherService.ts - Reports and analytics
src/services
Persistence
- MySQL database
src/services/prismaService.ts
Other components
- Staff and administrators
- Email and SMS
Connections 22
- Staff and administrators → TMS interface: uses
- TMS interface → Session state: reads session
frontend/src/App.vue - TMS interface → Dashboards: presents
- TMS interface → Teacher records UI: presents
- TMS interface → Transfer workflows UI: presents
- TMS interface → Reports UI: presents
- TMS interface → HTTP API: calls API
- HTTP API → Authentication: applies
src/app.ts - Authentication → Role access: checks roles
src/middleware/auth.ts - HTTP API → Teacher routes: mounts routes
src/app.ts - Teacher routes → Authentication: authenticates
src/routes/teacherRoutes.ts - Teacher routes → Role access: filters access
src/routes/teacherRoutes.ts - Teacher routes → Teacher operations: dispatches
src/routes/teacherRoutes.ts - Teacher operations → Teacher and school data: uses
src/controllers/teacherController.ts - Teacher and school data → MySQL database: queries
src/services/teacherService.ts - HTTP API → Transfer routes: mounts routes
src/app.ts - Transfer routes → Transfer applications: handles requests
src/services/transferApplicationService.ts - Transfer applications → MySQL database: queries
src/services/transferApplicationService.ts - HTTP API → Administrative workflows: mounts routes
src/app.ts - Approver assignments → MySQL database: queries
src/services/approverAssignmentService.ts - Reports and analytics → MySQL database: reads records
src/services/authService.ts - Transfer applications → Email and SMS: notified by