Learning Management System REST API: Node.js, Express, MongoDB (Mongoose). Includes courses, modules, lessons, assignments, quizzes, enrollments, reviews, JWT auth, and Swagger UI at /api-docs.
npm install
cp .env.example .env # set MONGODB_URI, JWT_SECRET
npm run dev- Health:
GET /health - Docs:
GET /api-docs
All technical docs live in docs/:
Configure MONGODB_URI (Atlas recommended), JWT_SECRET, and CORS_ORIGIN in Vercel. See docs/deployment-vercel.md.
| Script | Purpose |
|---|---|
npm start |
Startup checks + server |
npm run dev |
Development (nodemon) |
npm run seed |
Seed database |
npm run reset-password |
Reset a user password in DB (dev/support): npm run reset-password -- email pass |
npm test |
Tests |
MIT