How shabhai-md-asadullah-5/eduwatch works
EduWatch is a student academic-performance and early-warning application. Faculty and students use the browser interface to access student records, demo risk indicators and interventions; the server exposes API routes backed by MongoDB models. The graph includes the documented dashboard, student-management, search/filter, login and intervention capabilities. Backend calls and route registration are supported by excerpts; browser-to-API wiring and the database connection internals are not shown, so those links are omitted or marked unverified.
Main entry points: server.js Express server · authController.js Login service · studentRoutes.js Student routes · Student.js Student records
Components 20
Browser experience
- Welcome page
public/index.html - Dashboard UI
public/js/app.js - Login UI
public/js/auth.js - Student views
public/js/students.js - Intervention views
public/js/interventions.js - UI helpers
public/js/ui.js
API and routing
- Express server
server.js - Auth routes
routes/authRoutes.js - Student routes
routes/studentRoutes.js - Intervention routes
routes/interventionRoutes.js
Academic services
- Login service
controllers/authController.js - Student service
controllers/studentController.js - Intervention service
controllers/interventionController.js - Risk rules
utils/riskCalculator.js
Persistence
- Student records
models/Student.js - Faculty records
models/Faculty.js - Intervention records
models/Intervention.js
Other components
- Faculty
- Student
- MongoDB
Connections 25
- Express server → Welcome page: serves static files
server.js - Express server → Auth routes: mounts routes
server.js - Express server → Student routes: mounts routes
server.js - Express server → Intervention routes: mounts routes
server.js - Auth routes → Login service: dispatches to
routes/authRoutes.js - Student routes → Student service: dispatches to
routes/studentRoutes.js - Intervention routes → Intervention service: dispatches to
routes/interventionRoutes.js - Student service → Student records: reads and writes
controllers/studentController.js - Student service → Risk rules: calculates risk
controllers/studentController.js - Intervention service → Student records: checks student
controllers/interventionController.js - Intervention service → Intervention records: reads and writes
controllers/interventionController.js - Login service → Student records: looks up student
controllers/authController.js - Login service → Faculty records: looks up faculty
controllers/authController.js - Login service → Intervention records: loads interventions
controllers/authController.js - Login service → Risk rules: gets risk reasons
controllers/authController.js - Express server → MongoDB: connects through config
server.js - Student records → MongoDB: persists records
- Faculty records → MongoDB: persists records
- Intervention records → MongoDB: persists records
- Faculty → Welcome page: uses login
- Student → Welcome page: uses login
- Login UI → Auth routes: submits credentials
- Dashboard UI → Student routes: requests dashboard data
- Student views → Student routes: manages students
- Intervention views → Intervention routes: manages interventions