How debasmita-rana/learnly.ai-ai-powered-e-learning-management-system works
Learnly.AI is a role-based e-learning platform. Users register or sign in, browse courses, enroll and learn through lessons, quizzes, assignments, and progress tracking; instructors and admins manage course content and review submissions. The frontend routes these experiences to an Express API, whose controllers implement the domain actions and persist records in MongoDB. The README also documents Groq-powered tutoring, summaries and quiz generation, plus cart and Razorpay checkout. Several frontend/API links and unsampled features are shown from README or routing evidence rather than inspected component implementations.
Main entry points: server.js HTTP API server · App.jsx Page router · db.js MongoDB · authMiddleware.js Authentication
Components 27
Learner and instructor UI
- Page router
Frontend/src/App.jsx - Account and profile
Frontend/src/components/Register.jsx - Course catalog
Frontend/src/components/Courses.jsx - Course management
Frontend/src/components/AddCourses.jsx - Lessons and enrollment
Frontend/src/components/MyCourses.jsx - Progress view
Frontend/src/components/Progress.jsx - Quiz experience
Frontend/src/components/QuizPage.jsx - Assignment workflow
Frontend/src/components/AssignmentPage.jsx - AI tutor
Frontend/src/components/AITutor.jsx - Cart and checkout
Frontend/src/components/Cart.jsx
API and access
- HTTP API server
Backend/server.js - Authentication
Backend/middleware/authMiddleware.js - Role authorization
Backend/middleware/roleMiddleware.js - Account endpoints
Backend/controllers/authController.js
Learning domain
- Course endpoints
Backend/controllers/courseController.js - Lesson endpoints
Backend/controllers/lessonController.js - Enrollment
Backend/controllers/enrollmentController.js - Progress tracking
Backend/controllers/progressController.js - Quiz and results
Backend/controllers/quizController.js - Assignments
Backend/controllers/assignmentController.js
Commerce
- Cart management
Backend/controllers/cartController.js - Payment and orders
Backend/controllers/paymentController.js
AI assistance
- Groq AI service
- AI capabilities
Backend/controllers/aiController.js
Other components
- Platform user
- MongoDB
Backend/config/db.js - Razorpay
Connections 44
- Platform user → Page router: uses
Frontend/src/App.jsx - Page router → Account and profile: routes to
Frontend/src/App.jsx - Page router → Course catalog: routes to
Frontend/src/App.jsx - Page router → Course management: routes to
Frontend/src/App.jsx - Page router → Lessons and enrollment: routes to
Frontend/src/App.jsx - Page router → Progress view: routes to
Frontend/src/App.jsx - Page router → Quiz experience: routes to
Frontend/src/App.jsx - Page router → Assignment workflow: routes to
Frontend/src/App.jsx - Page router → AI tutor: routes to
Frontend/src/App.jsx - Page router → Cart and checkout: routes to
Frontend/src/App.jsx - HTTP API server → Account endpoints: mounts routes
Backend/server.js - HTTP API server → Course endpoints: mounts routes
Backend/server.js - HTTP API server → Lesson endpoints: mounts routes
Backend/server.js - HTTP API server → Enrollment: mounts routes
Backend/server.js - HTTP API server → Progress tracking: mounts routes
Backend/server.js - HTTP API server → Quiz and results: mounts routes
Backend/server.js - HTTP API server → Assignments: mounts routes
Backend/server.js - HTTP API server → AI capabilities: mounts routes
Backend/server.js - HTTP API server → Cart management: mounts routes
Backend/server.js - HTTP API server → Payment and orders: mounts routes
Backend/server.js - Platform user → HTTP API server: calls API
README.md - Account endpoints → Authentication: protects routes
Backend/routes/authRoutes.js - Course endpoints → Authentication: protects routes
Backend/routes/courseRoutes.js - Lesson endpoints → Authentication: protects routes
Backend/routes/lessonRoutes.js - Enrollment → Authentication: protects routes
Backend/routes/enrollmentRoutes.js - Quiz and results → Authentication: protects routes
Backend/routes/quizRoutes.js - Assignments → Authentication: protects routes
Backend/routes/assignmentRoutes.js - Authentication → Role authorization: checks role
- Enrollment → MongoDB: reads and writes
Backend/controllers/enrollmentController.js - Quiz and results → MongoDB: reads and writes
Backend/controllers/quizController.js - Course endpoints → MongoDB: reads and writes
Backend/controllers/courseController.js - Lesson endpoints → MongoDB: reads and writes
Backend/controllers/lessonController.js - Assignments → MongoDB: reads and writes
Backend/controllers/assignmentController.js - Cart management → MongoDB: reads and writes
Backend/controllers/cartController.js - Payment and orders → MongoDB: records orders
Backend/controllers/paymentController.js - Progress tracking → MongoDB: tracks progress
- AI capabilities → Groq AI service: requests generation
Backend/controllers/aiController.js - Cart and checkout → Payment and orders: initiates purchase
README.md - Payment and orders → Razorpay: processes payment
README.md - Course catalog → Course endpoints: loads catalog
README.md - Lessons and enrollment → Enrollment: enrolls
- Quiz experience → Quiz and results: submits answers
README.md - Assignment workflow → Assignments: submits work
README.md - AI tutor → AI capabilities: asks tutor
README.md