How lxakshaseth/smart-lms works
Smart-LMS is a full-stack learning platform. Students enter through the React app, authenticate, then use study, AI tutoring, exams, planning, collaboration, and engineering-learning tools; backend APIs produce learning content, saved work, and progress. The graph preserves the major README domains and documented runtime boundaries. Several feature routes and controller implementations are unsampled, so their internal calls are not asserted; dashed links mark documented or unverified integrations.
Main entry points: routes.tsx Feature routes · api.ts API client · server.js HTTP and socket server · ai.controller.js AI and OCR handlers
Components 33
Student experience
- React application
frontend/src/app/App.tsx - Feature routes
frontend/src/app/routes.tsx - Authentication UI
frontend/src/app/components/auth/Login.tsx - Session context
frontend/src/app/context/AuthContext.tsx - API client
frontend/src/app/lib/api.ts
Study and exams
- AI tutor
frontend/src/app/components/tutor/AITutor.tsx - Study mode
frontend/src/app/components/study/StudyMode.tsx - Study uploads
frontend/src/app/components/upload/UploadMaterial.tsx - Notes and sharing
frontend/src/app/components/notes/Notes.tsx - Exam tools
frontend/src/app/components/exam-tools/ExamSpecialTools.tsx - Practical lab
frontend/src/app/components/exam-tools/VirtualPracticalLab.tsx - Quizzes
frontend/src/app/components/quiz/Quiz.tsx - CodePilot suite
frontend/src/app/components/codepilot/CodePilotContainer.tsx - Study planner
frontend/src/app/components/planner/Planner.tsx - Video learning
frontend/src/app/components/youtube/YouTube.tsx
Progress and community
- Brain puzzles
frontend/src/app/components/critical/CriticalThinking.tsx - Social collaboration
frontend/src/app/components/friends/Friends.tsx - Learning dashboard
frontend/src/app/components/dashboard/Dashboard.tsx
API and services
- HTTP and socket server
backend/src/server.js - JWT protection
backend/src/middleware/auth.middleware.js - AI and OCR handlers
backend/src/controllers/ai.controller.js - CodePilot handlers
backend/src/controllers/codepilot.controller.js - Group handlers
backend/src/controllers/group.controller.js - Video service
backend/src/services/youtube.service.js - Mock test API
backend/src/routes/mock.routes.js - Notes API
backend/src/routes/notes.routes.js - Planner handlers
backend/src/controllers/planner.controller.js
Persistent state
- MongoDB
backend/src/config/db.js - User and progress
backend/src/models/user.model.js - Notes
backend/src/models/note.model.js - Planner state
backend/src/models/planner.model.js - Social messages and groups
backend/src/models/group.model.js
Other components
- Student
Connections 36
- Student → React application: uses
- React application → Feature routes: loads router
frontend/src/app/App.tsx - Feature routes → Authentication UI: routes to
frontend/src/app/routes.tsx - Feature routes → AI tutor: routes to
frontend/src/app/routes.tsx - Feature routes → Study mode: routes to
frontend/src/app/routes.tsx - Feature routes → Study uploads: routes to
frontend/src/app/routes.tsx - Feature routes → Notes and sharing: routes to
frontend/src/app/routes.tsx - Feature routes → Exam tools: routes to
frontend/src/app/routes.tsx - Feature routes → Practical lab: routes to
frontend/src/app/routes.tsx - Feature routes → Quizzes: routes to
frontend/src/app/routes.tsx - Feature routes → CodePilot suite: routes to
frontend/src/app/routes.tsx - Feature routes → Study planner: routes to
frontend/src/app/routes.tsx - Feature routes → Brain puzzles: routes to
frontend/src/app/routes.tsx - Feature routes → Social collaboration: routes to
frontend/src/app/routes.tsx - Feature routes → Video learning: routes to
frontend/src/app/routes.tsx - Feature routes → Learning dashboard: routes to
frontend/src/app/routes.tsx - Authentication UI → Session context: authenticates via
- Session context → API client: requests session
frontend/src/app/context/AuthContext.tsx - AI tutor → API client: requests AI help
frontend/src/app/lib/api.ts - Notes and sharing → API client: requests notes
frontend/src/app/lib/api.ts - Social collaboration → API client: requests collaboration
frontend/src/app/lib/api.ts - Practical lab → API client: requests services
frontend/src/app/lib/api.ts - API client → HTTP and socket server: sends API requests
- HTTP and socket server → JWT protection: protects endpoints
- HTTP and socket server → MongoDB: connects database
backend/src/server.js - AI and OCR handlers → User and progress: updates progress
backend/src/controllers/ai.controller.js - AI and OCR handlers → Notes: saves study notes
backend/src/controllers/ai.controller.js - CodePilot handlers → User and progress: reads learner
backend/src/controllers/codepilot.controller.js - Group handlers → Social messages and groups: reads and writes
backend/src/controllers/group.controller.js - Group handlers → User and progress: looks up members
backend/src/controllers/group.controller.js - Notes API → Notes: creates notes
backend/src/routes/notes.routes.js - Notes API → Social messages and groups: reads attachments
backend/src/routes/notes.routes.js - Mock test API → Planner state: updates mastery
backend/src/routes/mock.routes.js - Planner handlers → Planner state: manages schedule
- Video learning → Video service: fetches videos
- Mock test API → AI and OCR handlers: generates questions
backend/src/routes/mock.routes.js