The LMS (Learning Management System) API is a backend service designed to manage courses, user authentication, and user profiles for an online learning platform.
- User Authentication
- Course Management
- Course Enrollment
- Course Filtering
- Pagination
- Endpoint:
POST /api/auth/register
- Endpoint:
POST /api/auth/login
- Endpoint:
POST /api/auth/upload
- Endpoint:
POST /api/auth/forgot-password
- Endpoint:
GET /api/users/profile
- Endpoint:
PUT /api/users/update
- Endpoint:
POST /api/courses/new
- Endpoint:
PUT /api/courses/update/:id
- Endpoint:
DELETE /api/courses/delete/:id
- Endpoint:
GET /api/courses/all
- Endpoint:
GET /api/courses/course/details/:id
- Endpoint:
GET /api/courses/filter
- Endpoint:
POST /api/courses/enroll
- Endpoint:
GET /api/courses/enrolled
- Clone the repository
- Install dependencies:
npm install
- Create a
.env
file and add the following environment variables:
JWT_SECRET=your_jwt_secret
PGDATABASE = your_postgres_database
PGUSER = your_postgres_user
PGPASSWORD = your_postgres_password
ENDPOINT_ID = your_endpoint_id
RESEND_API = your_resend_api
CLOUDINARY_CLOUD_NAME = your_cloudinary_cloud_name
CLOUDINARY_SECRET = your_cloudinary_secret
CLOUDINARY_KEY = your_cloudinary_key
EMAIL_ADDRESS = your_email_address
- Run the server:
npm start
- Access the API at
http://localhost:5000
{
"message": "I hope you found this helpful!",
"author": "rishabhguptajs",
"github": "github.com/rishabhguptajs"
}