This project is an E-Learning platform that allows users to create, purchase, and enroll in courses. It includes both a backend and a frontend.
Check out the live site here.
- User authentication and authorization
- Course creation and management
- Lecture creation and management
- Course purchase and payment integration
- Course progress tracking
- Admin dashboard for managing courses and lectures
- Dark mode support
Frontend:
- React
- Redux Toolkit
- Tailwind CSS
- Vite
- React Router
- Radix UI
- Lucide Icons
Backend:
- Node.js
- Express
- MongoDB
- Mongoose
- Cloudinary (for media uploads)
- Razorpay (for payment integration)
- Zod (for schema validation)
- Node.js
- MongoDB
-
Clone the repository:
git clone https://github.com/lokeshjatoth/E-Learning.git cd E-Learning/backend -
Install dependencies:
npm install
-
Create a
.envfile in the backend directory and add the following environment variables:PORT=3000 MONGODB_URI=your_mongodb_uri CLOUD_NAME=your_cloudinary_cloud_name API_KEY=your_cloudinary_api_key API_SECRET=your_cloudinary_api_secret RAZORPAY_KEY_ID=your_razorpay_key_id RAZORPAY_SECRET_KEY=your_razorpay_secret_key ORIGIN_URL=http://localhost:5173
-
Start the backend server:
npm run dev
-
Navigate to the frontend directory:
cd ../frontend -
Install dependencies:
npm install
-
Create a
.envfile in the frontend directory and add the following environment variables:VITE_BASE_URL=http://localhost:3000
-
Start the frontend development server:
npm run dev
- Open your browser and navigate to
http://localhost:5173. - Register a new user or log in with an existing account.
- Create, purchase, and enroll in courses.