How mohamedelashrysec/depi_devops_lms works
This is a role-based tutoring and learning platform: users authenticate, then students, instructors, parents, and administrators use dashboards for sessions, coursework, progress, communication, and engagement. The backend separates HTTP routing/controllers from domain services and MongoDB models. The excerpts support several internal service-to-model relationships; many other capabilities are visible in the file tree but were not sampled, so those are represented at subsystem level without speculative call chains.
Main entry points: App.jsx Web app and routes · sessionService.js Session management · StudentInstructorAssignmentService.js Instructor assignments · App.js HTTP application
Components 28
Web application
- Web app and routes
FrontEnd/src/App.jsx - Authentication state
FrontEnd/src/context/AuthContext.jsx - Session dashboard
FrontEnd/src/pages/Dashboard/SessionsPage.jsx - Task dashboard
FrontEnd/src/pages/Dashboard/TasksPage.jsx
API layer
- HTTP application
Backend/App.js - Authentication routes
Backend/Routes/authRouts.js - Session routes
Backend/Routes/SessionRouter.js - Review routes
Backend/Routes/SessionReviewRouter.js - Authentication controller
Backend/Controllers/AuthController.js - Session controller
Backend/Controllers/SessionController.js - Review controller
Backend/Controllers/SessionReviewController.js
Learning workflows
- Authentication service
Backend/Services/AuthServices.js - Session management
Backend/Services/sessionService.js - Student profiles
Backend/Services/studentProfileServices.js - Instructor assignments
Backend/Services/StudentInstructorAssignmentService.js - Session reviews
Backend/Services/SessionReviewService.js - Curriculum, exams, tasks
Backend/Services
Engagement and communication
- Messaging and notifications
Backend/Services - Gamification and rankings
Backend/Services/GamificationService.js
Persistence and utilities
- User records
Backend/Models/user.js - Student profiles
Backend/Models/studentProfile.js - Session records
Backend/Models/Session.js - Review records
Backend/Models/SessionReview.js - Refresh tokens
Backend/Models/Token.js - Schedule entries
Backend/Models/ScheduleEntry.js - Auth utilities
Backend/Utilities/JwtHelper.js - Query shaping
Backend/Utilities/ApiFeatures.js
Other components
- Learners and staff
Connections 31
- Learners and staff → Web app and routes: use dashboards
FrontEnd/src/App.jsx - Web app and routes → Authentication state: provides auth
FrontEnd/src/App.jsx - Web app and routes → Session dashboard: routes to
FrontEnd/src/App.jsx - Web app and routes → Task dashboard: routes to
FrontEnd/src/App.jsx - Web app and routes → HTTP application: requests data
- HTTP application → Authentication routes: mounts routes
Backend/App.js - HTTP application → Session routes: mounts routes
Backend/App.js - HTTP application → Review routes: mounts routes
Backend/App.js - Authentication routes → Authentication controller: dispatches to
- Session routes → Session controller: dispatches to
Backend/Routes/SessionRouter.js - Review routes → Review controller: dispatches to
Backend/Routes/SessionReviewRouter.js - Authentication controller → Authentication service: calls
Backend/Controllers/AuthController.js - Authentication controller → Messaging and notifications: notifies admins
Backend/Controllers/AuthController.js - Session controller → Session management: calls
Backend/Controllers/SessionController.js - Review controller → Session reviews: calls
Backend/Controllers/SessionReviewController.js - Authentication service → User records: reads and writes
Backend/Services/AuthServices.js - Authentication service → Refresh tokens: stores tokens
Backend/Services/AuthServices.js - Authentication service → Auth utilities: generates tokens
Backend/Services/AuthServices.js - Session management → Session records: reads and writes
Backend/Services/sessionService.js - Session management → Instructor assignments: checks assignments
Backend/Services/sessionService.js - Session management → Gamification and rankings: awards attendance XP
Backend/Services/sessionService.js - Session management → Student profiles: uses profile services
Backend/Services/sessionService.js - Session records → Schedule entries: creates schedule entry
Backend/Models/Session.js - Session records → Gamification and rankings: awards attendance XP
Backend/Models/Session.js - Session reviews → Review records: reads and writes
Backend/Services/SessionReviewService.js - Session reviews → Instructor assignments: checks assignments
Backend/Services/SessionReviewService.js - Session reviews → Query shaping: shapes queries
Backend/Services/SessionReviewService.js - Student profiles → Student profiles: reads and writes
Backend/Services/studentProfileServices.js - Student profiles → Instructor assignments: uses assignment services
Backend/Services/studentProfileServices.js - Instructor assignments → Student profiles: reads profiles
Backend/Services/StudentInstructorAssignmentService.js - Instructor assignments → User records: reads users
Backend/Services/StudentInstructorAssignmentService.js