Learnt is a powerful learning management system (LMS) web application built using the MERN stack (MongoDB, Express, React, Node.js). It provides a dynamic and intuitive platform for learners and tutors to connect, collaborate, and explore a wide range of courses.
- Intuitive Course Creation: Easily create and upload courses using our user-friendly course creation tools.
- Global Reach: Connect with learners from around the world and make a positive impact on their learning journey.
- Robust Analytics: Track course performance with detailed analytics to optimize your teaching and learning outcomes.
- Dedicated Support: Our dedicated support team is available to assist you at every step of your journey.
To run Learnt locally, follow these steps:
- Clone the repository:
git clone https://github.com/Rafhathdana/learnt
- Install dependencies:
cd learnt && npm install
- Create a logs folder in the root directory:
mkdir logs
- Set up environment variables: Create a
.env
file based on the provided.env.example
. - Start the server:
npm run dev
- Open the app in your browser:
http://localhost:3000
- Sign up as a tutor to create and manage your courses.
- Explore the course categories to find courses of interest.
- Enroll in courses, track your progress, and engage with other learners.
- Stay updated with newsletters, latest course releases, and announcements.
List of available routes:
Auth routes:
POST /api/auth/signup
- register
POST /api/auth/signin
- login
GET /api/auth/token
- refresh auth tokens
GET /api/auth/user-restore
- restore user details from access token
DELETE /api/auth/logout
- Clear access and refresh token\
POST /api/auth/token/signup
- register tutor
POST /api/auth/token/signin
- tutor login \access token
DELETE /api/auth/tutor/logout
- Clear access and refresh token\
Course routes:
POST /api/tutor/courses/create
- create a new course by logged in tutor
GET /api/tutor/courses
- get all courses by logged in tutor
GET /api/tutor/courses/:id
- get specific course currenly logged in tutor
GET /api/user/courses?query
- get all courses
GET /api/user/courses/enroll
- get all courses enrolled by the current user
POST /api/user/courses/enroll/:id
- get specific course details with total students enrolled\
Lesson routes:
POST /api/tutor/lessons
- add a new lesson to the provided course
POST /api/tutor/lessons
- adds a new lesson to the course
GET /api/user/lessons
- get lesson in a specific course\
Tutor routes:
POST /api/tutor/details/top
- returns the top 5 tutors\
User routes:
GET /api/user/details
- create user details
POST /api/user/details
- update user details
GET /api/user/details/enrolled/:id/check
- check if a user is enrolled for specific course\
Order routes:
GET /api/user/orders
- get all orders by user
POST /api/user/orders/create
- create new order
POST /api/user/payment/verfiy
- verify the payment created\
Admin routes:
GET /api/admin/users
- get all users details
POST /api/admin/users/block
- block specific user
POST /api/admin/users/unblock
- unblock specific user
GET /api/admin/tutors
- get all tutors details
POST /api/admin/tutors/block
- block specific tutor
POST /api/admin/tutors/unblock
- unblock specific tutor
GET /api/admin/category
- get all categories
POST /api/admin/category
- create a new category\