How vishnu06032006/student_management_system works
This is a role-based student and staff institutional ERP. Users sign in, enter role-specific dashboards, and perform academic administration or staff/student workflows; the React client sends requests to an Express API backed by MongoDB. The graph preserves the README’s major academic, attendance, examination, communication, reporting, promotion, audit, and backup capabilities. Detailed links for unsampled feature implementations are documented at subsystem level rather than inferred from filenames.
Main entry points: app.js Express API · AppRoutes.jsx Role routes · auth.routes.js Authentication routes · auth.service.js Authentication service
Components 24
Role-based client
- Role routes
client/src/routes/AppRoutes.jsx - Sign-in state
client/src/context/AuthContext.jsx - Student management
client/src/pages/admin/students/StudentList.jsx - Promotion workflow
client/src/pages/admin/promotion/PromotionPage.jsx - Timetable views
client/src/pages/admin/timetable/TimetablePage.jsx - Student OD requests
client/src/pages/student/ODRequests.jsx
API and access
- Express API
server/app.js - Authentication routes
server/routes/auth.routes.js - Authentication service
server/services/auth.service.js - Token and status guard
server/middleware/auth.middleware.js - Enrollment routes
server/routes/enrollment.routes.js
Academic records
- Enrollment controller
server/controllers/enrollment.controller.js - Enrollment service
server/services/enrollment.service.js - Academic structure
server/services/academicYear.service.js - Timetable scheduling
server/services/timetable.service.js - Exams and results
server/services/exam.service.js
Operations and insight
- Attendance and eligibility
server/services/attendance.service.js - Leave and announcements
server/services/announcement.service.js - Reports and analytics
server/services/report.service.js - Activity log
server/utils/activityLogger.js
Persistence and backup
- Enrollment history
server/models/Enrollment.js - Backup jobs
server/jobs/backupJob.js - MongoDB
server/config/db.js
Other components
- Admin, staff, students
Connections 22
- Admin, staff, students → Role routes: use
client/src/routes/AppRoutes.jsx - Role routes → Sign-in state: checks session
client/src/App.jsx - Role routes → Express API: request features
- Express API → Authentication routes: mounts API
server/app.js - Authentication routes → Authentication service: dispatches auth
server/routes/auth.routes.js - Authentication service → Token and status guard: issues tokens
- Express API → Enrollment routes: mounts API
- Enrollment routes → Enrollment controller: routes requests
server/routes/enrollment.routes.js - Enrollment controller → Enrollment service: calls service
server/controllers/enrollment.controller.js - Enrollment service → Enrollment history: reads and writes
server/services/enrollment.service.js - Student management → Express API: manage records
- Promotion workflow → Express API: promote students
- Timetable views → Express API: manage schedules
- Student OD requests → Express API: submit requests
- Express API → Academic structure: serves structure
- Express API → Attendance and eligibility: serves attendance
- Express API → Timetable scheduling: serves schedules
- Express API → Exams and results: serves exams
- Express API → Leave and announcements: serves communication
- Express API → Reports and analytics: serves reports
- Express API → Activity log: records activity
- Backup jobs → MongoDB: backs up data