How upendradhamala/school-management-system works
School Management System is an admin-facing MERN application for managing students, teachers, and non-teaching staff, with attendance, admit cards, fee collection, and salary/income reporting. The main workflow is an administrator signing in, opening a protected frontend screen, and having its actions call backend API routes that read or update MongoDB-backed records. The graph also includes authentication, dashboard summaries, and shared frontend state. Some feature screens and route implementations were not sampled; their presence and routing are documented, but uncertain internal calls are omitted.
Main entry points: teacherRoutes.js Teacher routes · App.js Screen router · server.js API server · studentRoutes.js Student routes
Components 25
Frontend
- Screen router
frontend/src/App.js - Admin login
frontend/src/screens/Login.js - Student screens
frontend/src/screens - Teacher and staff screens
frontend/src/screens - Finance screens
frontend/src/screens - Student API actions
frontend/src/actions/studentActions.js - Student state
frontend/src/reducers/studentReducers.js - Redux store
frontend/src/store.js - Dashboard and reports
frontend/src/screens
Identity and API
- Login and profile API
backend/routes/adminRoutes.js - Token authorization
backend/middleware/authMiddleware.js - API server
backend/server.js
Student Management
- Student routes
backend/routes/studentRoutes.js - Student records
backend/models/studentModel.js - Student attendance
backend/models/studentAttendanceModel.js - Admit card views
frontend/src/screens
Staff Management
- Teacher routes
backend/routes/teacherRoutes.js - Teacher records
backend/models/teacherModel.js - Staff routes
backend/routes/staffRoutes.js - Staff records
backend/models/nonTeachingStaffModel.js
Finance and Dashboard
- Student fees
backend/models/studentFeesModel.js - Teacher salary
backend/models/teacherSalaryModel.js - Staff salary
backend/models/nonTeachingStaffSalary.js - Dashboard totals
backend/models/dashboardModel.js
Other components
- School administrator
Connections 33
- School administrator → Admin login: signs in
- School administrator → Screen router: opens screens
frontend/src/App.js - Screen router → Admin login: routes to
frontend/src/App.js - Screen router → Student screens: routes to
frontend/src/App.js - Screen router → Teacher and staff screens: routes to
frontend/src/App.js - Screen router → Finance screens: routes to
frontend/src/App.js - Screen router → Admit card views: routes to
frontend/src/App.js - Admin login → Login and profile API: requests login
- Login and profile API → Token authorization: protects profile
backend/routes/adminRoutes.js - Token authorization → School administrator: resolves admin
backend/middleware/authMiddleware.js - API server → Login and profile API: mounts
backend/server.js - API server → Student routes: mounts
backend/server.js - API server → Teacher routes: mounts
backend/server.js - API server → Staff routes: mounts
backend/server.js - API server → Dashboard totals: reads dashboard
backend/server.js - Student screens → Student API actions: uses actions
frontend/src/screens/StudentFees.js - Student API actions → Student routes: requests student data
frontend/src/actions/studentActions.js - Student API actions → Student state: dispatches actions
frontend/src/actions/studentActions.js - Student state → Redux store: registered in
frontend/src/store.js - Student routes → Student records: reads and writes
backend/routes/studentRoutes.js - Student routes → Student attendance: records attendance
backend/routes/studentRoutes.js - Student routes → Student fees: records fees
backend/routes/studentRoutes.js - Student routes → Dashboard totals: updates totals
backend/routes/studentRoutes.js - Teacher routes → Teacher records: reads and writes
backend/routes/teacherRoutes.js - Teacher routes → Teacher salary: records salary
backend/routes/teacherRoutes.js - Teacher routes → Student fees: reads income
backend/routes/teacherRoutes.js - Teacher routes → Staff salary: reads staff pay
backend/routes/teacherRoutes.js - Staff routes → Staff records: reads and writes
backend/routes/staffRoutes.js - Staff routes → Staff salary: records salary
backend/routes/staffRoutes.js - Staff routes → Dashboard totals: updates totals
backend/routes/staffRoutes.js - Teacher routes → Dashboard totals: updates totals
backend/routes/teacherRoutes.js - Finance screens → Teacher routes: requests reports
- Dashboard and reports → API server: requests dashboard