How spectropytechlab/learning-management-system works
This is a React/TypeScript and Express learning-management system. The principal learner flow is entering a protected student area, accessing course content or exams, and receiving course progress or exam results; administrators and educators also manage courses, enrollment, questions, curriculum, and teaching sessions. The graph emphasizes the documented route/service structure and the sampled runtime calls. Several large feature services were not excerpted, so their internal links are omitted rather than inferred.
Main entry points: server.js Express API · AppRoutes.tsx Protected routes · App.tsx Web application · enrollment.routes.js Enrollment routes
Components 25
Learner and staff app
- Web application
frontend/src/App.tsx - Protected routes
frontend/src/app/routes/AppRoutes.tsx - Student course view
frontend/src/pages/course/student/StudentCourseView.tsx - Exam runtime
frontend/src/features/exam-runtime/useExamRuntime.ts - Course authoring
frontend/src/features/courses/components/editor/CourseContentManager.tsx - Question bank
frontend/src/features/question-bank/components/QuestionBankShell.tsx - Teaching sessions UI
frontend/src/pages/teaching-sessions/TeachingSessionsListPage.tsx
API and access
- Express API
backend/server.js - Authentication
backend/middleware/auth.js - Enrollment routes
backend/routes/enrollment.routes.js - Database access
backend/repositories/db.repository.js - PostgreSQL
backend/config/db.js - Supabase services
backend/config/supabaseClient.js
Learning content
- Enrollment service
backend/services/enrollment.service.js - Course content
backend/services/clientContent.service.js - Curriculum
backend/services/curriculum.service.js
Assessment
- Question services
backend/services/questions.service.js - Exam services
backend/services/exams.service.js
Platform operations
- Teaching-session routes
backend/routes/teachingSessions.routes.js - Teaching sessions
backend/services/teachingSessions.service.js - Organization hierarchy
backend/services/hierarchy.service.js - Module entitlements
backend/middleware/moduleEntitlements.js
Other components
- Learner
- Educator
- Administrator
Connections 26
- Learner → Web application: uses
- Educator → Web application: uses
- Administrator → Web application: uses
- Web application → Protected routes: renders routes
frontend/src/App.tsx - Protected routes → Student course view: routes to
frontend/src/app/routes/AppRoutes.tsx - Protected routes → Exam runtime: routes to
- Protected routes → Course authoring: routes to
frontend/src/app/routes/AppRoutes.tsx - Protected routes → Question bank: routes to
frontend/src/app/routes/AppRoutes.tsx - Protected routes → Teaching sessions UI: routes to
- Protected routes → Express API: requests API
- Express API → Enrollment routes: mounts routes
backend/server.js - Enrollment routes → Authentication: authenticates
backend/routes/enrollment.routes.js - Enrollment routes → Enrollment service: dispatches to
backend/routes/enrollment.routes.js - Enrollment service → Course content: uses content service
backend/services/enrollment.service.js - Enrollment service → Database access: queries
backend/services/enrollment.service.js - Database access → PostgreSQL: queries
backend/repositories/db.repository.js - Express API → Teaching-session routes: mounts routes
backend/server.js - Teaching-session routes → Authentication: authenticates
backend/routes/teachingSessions.routes.js - Teaching-session routes → Teaching sessions: dispatches to
backend/routes/teachingSessions.routes.js - Teaching sessions → Database access: reads and writes
backend/services/teachingSessions.service.js - Teaching sessions → Supabase services: uses storage
backend/services/teachingSessions.service.js - Express API → Curriculum: serves curriculum routes
- Express API → Exam services: serves exam routes
- Express API → Question services: serves question routes
- Express API → Organization hierarchy: serves organization routes
- Express API → Module entitlements: uses access middleware