How ahmedakhtar-07/lms works
This is a lightweight web LMS for instructor-led courses and student learning. The principal flow is: instructors create courses, modules, materials and quizzes; students browse and enroll, study modules, submit quizzes, and review progress; instructors review enrollment and performance, while eligible students claim certificates. The Express server serves the frontend and mounts the API routes, which use a shared MySQL pool and JWT middleware. The README documents the full feature set, but frontend-to-API wiring is not shown in the supplied source evidence, so those links are omitted.
Main entry points: server.js Express server · db.js MySQL pool · auth.js JWT authorization · courses.js Course management
Components 23
Web interface
- Student pages
frontend/js/student-dashboard.js - Course browsing
frontend/js/courses.js - Module learning
frontend/js/course-modules.js - Quiz screens
frontend/js/quiz-view.js - Instructor tools
frontend/js/instructor-dashboard.js - Certificate view
frontend/js/certificate.js - API client
frontend/js/api.js
Identity
- Registration and login
backend/routes/auth.js - JWT authorization
backend/middleware/auth.js
Learning workflows
- Course management
backend/routes/courses.js - Enrollment management
backend/routes/enrollments.js - Modules and materials
backend/routes/modules.js - Material management
backend/routes/materials.js - Quizzes and grading
backend/routes/quizzes.js - Quiz attempts
backend/routes/attempts.js - Progress dashboards
backend/routes/dashboard.js - Certificates
backend/routes/certificates.js
Application runtime
- Express server
backend/server.js - MySQL pool
backend/db.js - Uploaded materials
backend/uploads
Other components
- Students
- Instructors
- MySQL database
Connections 32
- Students → Student pages: uses
README.md - Students → Course browsing: browses
README.md - Students → Module learning: studies
README.md - Students → Quiz screens: attempts
README.md - Students → Certificate view: views
README.md - Instructors → Instructor tools: manages
README.md - Express server → Registration and login: mounts
backend/server.js - Express server → Course management: mounts
backend/server.js - Express server → Enrollment management: mounts
backend/server.js - Express server → Modules and materials: mounts
backend/server.js - Express server → Material management: mounts
backend/server.js - Express server → Quizzes and grading: mounts
backend/server.js - Express server → Progress dashboards: mounts
backend/server.js - Express server → Certificates: mounts
backend/server.js - Express server → Student pages: serves static files
backend/server.js - Express server → Uploaded materials: serves files
backend/server.js - Course management → MySQL pool: queries
backend/routes/courses.js - Enrollment management → MySQL pool: queries
backend/routes/enrollments.js - Modules and materials → MySQL pool: queries
backend/routes/modules.js - Material management → MySQL pool: queries
backend/routes/materials.js - Quizzes and grading → MySQL pool: queries
backend/routes/quizzes.js - Progress dashboards → MySQL pool: queries
backend/routes/dashboard.js - Certificates → MySQL pool: queries
backend/routes/certificates.js - Registration and login → MySQL pool: queries
backend/routes/auth.js - MySQL pool → MySQL database: connects to
backend/db.js - Course management → JWT authorization: uses authorization
backend/routes/courses.js - Enrollment management → JWT authorization: uses authorization
backend/routes/enrollments.js - Modules and materials → JWT authorization: uses authorization
backend/routes/modules.js - Material management → JWT authorization: uses authorization
backend/routes/materials.js - Quizzes and grading → JWT authorization: uses authorization
backend/routes/quizzes.js - Progress dashboards → JWT authorization: uses authorization
backend/routes/dashboard.js - Certificates → JWT authorization: uses authorization
backend/routes/certificates.js