How ace2920006/basic-attendance works
This is a multi-role educational attendance management system: teachers record class attendance, students and parents review attendance and related information, and administrators manage institutional data and oversight. The React client provides role-specific workflows and calls an Express API backed by MongoDB. The repository also documents QR/GPS and anti-proxy checks, offline synchronization, leave review, forecasting, analytics, notifications, and academic-year management. Some connections below are documented capabilities rather than verified calls because most client pages and server routes were not excerpted.
Main entry points: app.js Express API · api.js API client · attendanceController.js Attendance handling · leaveController.js Leave workflow
Components 22
Role-Based Client
- Web application
client/src/App.jsx - API client
client/src/services/api.js - Teacher workflows
client/src/pages/teacher/TakeAttendance.jsx - Student portal
client/src/pages/student/StudentDashboard.jsx - Parent portal
client/src/pages/parent/ParentDashboard.jsx - Admin console
client/src/pages/admin/AdminAcademicEngine.jsx - Offline sync
client/src/context/OfflineSyncContext.jsx
Attendance Operations
- Attendance handling
server/src/controllers/attendanceController.js - Attendance records
server/src/models/Attendance.js - Proxy verification
server/src/utils/antiProxyEngine.js - Leave workflow
server/src/controllers/leaveController.js - Leave records
server/src/models/Leave.js
Academic Management
- Academic hierarchy
server/src/controllers/academicController.js - Year and semester UI
client/src/pages/admin/AdminAcademicEngine.jsx - Timetables
server/src/controllers/timetableController.js
Insights and Oversight
- Attendance forecasting
server/src/utils/forecastingEngine.js - Executive analytics
server/src/utils/adminIntelligenceEngine.js - Reports and charts
server/src/controllers/reportController.js
API and Services
- Express API
server/src/app.js - Authentication
server/src/controllers/authController.js - Notifications
server/src/services/notificationService.js
Other components
- Institution users
Connections 26
- Institution users → Web application: use
README.md - Web application → API client: requests
- Teacher workflows → API client: submits attendance
- Student portal → API client: requests portal data
- Parent portal → API client: requests portal data
- Admin console → API client: manages records
client/src/pages/admin/AdminAcademicEngine.jsx - Year and semester UI → API client: creates academic year
client/src/pages/admin/AdminAcademicEngine.jsx - Offline sync → API client: syncs attendance
client/src/context/OfflineSyncContext.jsx - API client → Express API: calls API
- Express API → Authentication: routes authentication
- Express API → Attendance handling: routes attendance
server/src/app.js - Express API → Leave workflow: routes leave
server/src/app.js - Express API → Academic hierarchy: routes academic
server/src/app.js - Express API → Timetables: routes timetable
server/src/app.js - Attendance handling → Attendance records: writes and reads
server/src/controllers/attendanceController.js - Attendance handling → Proxy verification: evaluates scans
server/src/controllers/attendanceController.js - Attendance handling → Notifications: dispatches alerts
server/src/controllers/attendanceController.js - Leave workflow → Leave records: writes and reads
server/src/controllers/leaveController.js - Leave workflow → Notifications: dispatches updates
server/src/controllers/leaveController.js - Year and semester UI → Academic hierarchy: creates academic year
client/src/pages/admin/AdminAcademicEngine.jsx - Academic hierarchy → Express API: serves hierarchy
- Student portal → Attendance forecasting: shows predictions
- Executive analytics → Attendance records: reads attendance
server/src/utils/adminIntelligenceEngine.js - Express API → Executive analytics: serves analytics
- Express API → Reports and charts: serves reports
- Timetables → Institution users: supports scheduling