"---Always Work Hard and Trust the Process---"
- Builtin validation
- Custom validation
- Third party validation libraries ( Validator / Zod / Joi)
- POST
/users/create-student→ Create a new student - POST
/users/create-faculty→ Create a new faculty - POST
/users/create-admin→ Create a new admin
- GET
/students→ Get all students - GET
/students/:id→ Get student by ID - PATCH
/students/:id→ Update student details - DELETE
/students/:id→ Delete student - GET
/students/my-profile→ Get logged-in student profile
- GET
/faculties→ Get all faculties - GET
/faculties/:id→ Get faculty by ID - PATCH
/faculties/:id→ Update faculty details - DELETE
/faculties/:id→ Delete faculty - GET
/faculties/my-profile→ Get logged-in faculty profile
- GET
/admins→ Get all admins - GET
/admins/:id→ Get admin by ID - PATCH
/admins/:id→ Update admin details - DELETE
/admins/:id→ Delete admin - GET
/admins/my-profile→ Get logged-in admin profile
- POST
/auth/login→ Login with email & password - POST
/auth/refresh-token→ Get a new access token - PATCH
/auth/change-password→ Change password - POST
/auth/forget-password→ Request password reset - POST
/auth/reset-password→ Reset password with token
- JWT Tokens
- Access Token (short-lived)
- Refresh Token (long-lived)
- Role-based Access
- Student, Faculty, Admin
- Middleware Protection
- Ensures only authorized users access protected routes
-
Clone the repository
git clone https://github.com/ashiq72/lms-server.git cd lms-server -
Blog for this repository
https://nextdotblog.blogspot.com/2025/09/lms-server.html