How lathiya50/learning-management-system works
Project type and purpose
• This is a full-stack Learning Management System (LMS) named “E-learning” built with Next.js (frontend) and Node.js/Express (backend).
• Its purpose is to enable course creation, user management, enrollment, real-time notifications, analytics, and administration.
File structure
A. Frontend (client/)
• Next.js v13 app directory (app/) for routing and UI pages
• pages/api/ for serverless endpoints (NextAuth)
• Redux Toolkit under client/redux/features for global state (auth, courses, analytics, etc.)
• TailwindCSS + CSS modules for styling
• Socket.io-client for real-time updates
• Utility hooks (useProtected, adminProtected) and components organized by feature (Auth, Admin, Course, Profile, etc.)
B. Backend
• server.ts: Bootstrap Express server and attach Socket.io
• socketServer.ts: Stand-alone WebSocket setup
• routes/*.route.ts → controllers/*.controller.ts → services/*.service.ts → models/*.model.ts
• Middleware (auth, error handlers)
• util/db.ts & util/redis.ts: MongoDB and Redis connections
• mails/*.ejs & utils/sendMail.ts for email templates
• payment, OAuth, JWT, and Cloudinary integrations
README insights
• Tech Stack: Next.js, Redux, Tailwind, Node.js, Express, MongoDB, Redis, Socket.io, Cloudinary, JWT, OAuth
• Features: Authentication, Course Management, Analytics, Real-time Notifications, Payment Processing
Detail
• Architectural elements: API layer, WebSocket server, caching, external integrations
• Don’t over-modularize: group by logical layer rather than every single file