Course Bundler -
Scalable EdTech Backend Platform | Subscription-Based Course System | Node.js, Express, MongoDB, Razorpay | JWT Auth, Role-Based Access, Admin Dashboard | Production Deployed
CourseBundler -- Backend ๐
A production-ready backend platform for creating, managing, and monetizing online courses.
This application allows content creators to publish courses and earn through a monthly subscription model, while students can subscribe, access lectures, and manage their learning journey.
Live Deployment: https://coursebundler-backend-er26.onrender.com
๐ Overview
CourseBundler is a subscription-based course platform backend built with a scalable architecture.
It supports:
- User authentication & authorization
- Admin content management
- Course & lecture management
- Subscription-based access control
- Razorpay payment integration
- Playlist system
- Contact & course request management
- Admin dashboard statistics
๐๏ธ Tech Stack
- Node.js
- Express.js
- MongoDB
- JWT Authentication
- Razorpay Payment Gateway
- Multer (File Uploads)
- Cloud Storage (Media Handling)
- MVC Architecture
๐ Folder Structure
config/
constants/
controllers/
lib/
middlewares/
models/
routes/
utils/
app.js
server.js
vercel.json
Architecture follows clean separation of concerns:
- Controllers โ Business logic\
- Models โ Database schemas\
- Routes โ API endpoints\
- Middlewares โ Authentication, authorization, validation\
- Utils โ Helper functions
๐ Authentication & User Routes
POST /register
POST /login
GET /logout
GET /me
DELETE /me
PUT /changepassword
PUT /updateprofile
PUT /updateprofilepicture
POST /forgetpassword
PUT /resetpassword/:resetPasswordToken
Playlist Management:
POST /addToPlaylist
DELETE /removeFromPlaylist
๐ Admin Routes
GET /admin/users
PUT /admin/user/:userId
DELETE /admin/user/:userId
GET /admin/contacts
GET /admin/requests
GET /admin/stats
๐ Course Routes
GET /all
POST /create
GET /:courseId
POST /:courseId
DELETE /:courseId
DELETE /lecture/:courseId
Features:
- Course creation with thumbnail upload\
- Add lectures (max 100MB video upload)\
- Subscriber-only access to lectures\
- Course deletion & lecture management
๐ณ Payment & Subscription Routes
GET /subscribe
POST /paymentverification
GET /razorpaykey
DELETE /subscribe/cancel
Features:
- Razorpay subscription integration\
- Secure payment verification\
- Subscription cancellation\
- Subscriber-based content authorization
๐ฉ Additional Features
Contact System:
POST /contact
POST /contact/:contactId
DELETE /contact/:contactId
Course Requests:
POST /courserequest
PUT /courserequest/:requestId
DELETE /courserequest/:requestId
๐ Role-Based Access Control
Roles:
- User\
- Admin\
- Subscriber
Middleware ensures:
- JWT Authentication\
- Role Authorization\
- Subscriber-only content access
๐ Admin Dashboard
Includes:
- Total users\
- Active subscriptions\
- Revenue insights\
- Platform activity metrics
๐ฏ Key Highlights
- Subscription-based monetization model\
- Secure authentication & authorization\
- Scalable backend architecture\
- Payment gateway integration\
- Media upload handling\
- Clean MVC structure\
- Production deployment ready
๐ Ideal For
- EdTech platforms\
- Course creators\
- Subscription-based SaaS platforms\
- Backend portfolio showcase
๐จโ๐ป Author
Manish Patidar LinkedIn: https://www.linkedin.com/in/manish-patidar-726670213/