Learning Hub is a full-stack online learning platform built with the MERN stack.
It provides a seamless way for users to explore, purchase, and learn courses, while enabling admins/instructors to create, manage, and sell courses.
- π Authentication & Authorization β Secure signup/login using JWT & bcrypt.
- π€ User Profiles β Update personal info & track course progress.
- π₯ Course Management β Admins can add, edit, publish/unpublish courses.
- π Video Uploads β Cloudinary integration for secure video & image hosting.
- π Payments β Integrated Stripe for secure checkout & course purchases.
- π Dashboard β Manage purchased courses & admin statistics.
- π Search & Filters β Find courses easily with advanced filters.
- π Light/Dark Mode β Built with shadcn/ui for modern UI/UX.
- β‘ Redux Toolkit (RTK Query) β State management & API integration.
Frontend:
Backend:
Database:
Other Integrations:
git clone https://github.com/Sarasmishra/Learning_Hub.git
cd Learning_Hub
# Install frontend dependencies
cd client
npm install
# Install backend dependencies
cd ../server
npm install
Create a .env file inside the server folder and add:
MONGO_URI=your_mongodb_uri
PORT=3005
SALT_ROUND=10
SECRET_KEY=your_secret_key
# Cloudinary setup
CLOUD_API_KEY=your_api_key
CLOUD_API_SECRET=your_api_secret
CLOUD_NAME=your_cloud_name
# Stripe setup
STRIPE_SECRET_KEY=your_secret_key
STRIPE_PUBLISHABLE_KEY=your_publishable_key
WEBHOOK_ENDPOINT_SECRET=your_webhook_secret
# Start backend
cd server
npm run dev
# Start frontend (in another terminal)
cd client
npm start
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/register |
Register a new user |
| POST | /api/auth/login |
Login user & get token |
| GET | /api/courses |
Fetch all published courses |
| POST | /api/courses |
Add a new course (Admin) |
| POST | /api/payment/create-checkout-session |
Create Stripe checkout session |
- β Backend Completed
- β Frontend Completed
- β‘ Currently adding new features and improving UI
-
Frontend (Render) β https://learning-hub-1-hg4b.onrender.com
-
Backend (Render) β https://learning-hub-bzl4.onrender.com
π Thank You
Thank you for your time β¨ If you liked this project, donβt forget to β the repo!