Online Learning Platform with GPT Intergration in Mern Stack (Full-stack Project)
This project is an Online Learning Platform using full-stack MERN application, consisting of a React frontend and a Node.js backend with Express.
The frontend of this project is built with React and can be hosted on platforms like GitHub Pages, Netlify, or Vercel.
- Node.js (v14 or later)
- npm (v6 or later)
- Clone the Repository:
git clone https://github.com/Shahana-rifkhan/Online-Learning-Platform.git cd Online-Learning-Platform
-
Navigate to the Frontend Directory:
cd client
-
Install Dependencies:
npm install
-
Set Up Environment Variables:
- Create a
.env
file in theclient
directory. - Add any necessary environment variables (e.g., API endpoints).
- Create a
-
Start the Development Server:
npm start
The React app will be available at http://localhost:3000.
-
GitHub Pages:
- Ensure
gh-pages
is installed and configured. - Deploy with:
npm run deploy
- Ensure
-
Netlify / Vercel:
- Connect your GitHub repository and follow their deployment guides.
The backend of this project is built with Node.js and Express.
- Node.js (v14 or later)
- npm (v6 or later)
- MongoDB (local or cloud)
-
Navigate to the Backend Directory:
cd server
-
Install Dependencies:
npm install
-
Set Up Environment Variables:
- Create a
.env
file in theserver
directory. - Add the necessary environment variables:
MONGODB_URI=your_mongodb_uri PORT=5000
- Create a
-
Start the Server:
npm start
The Node.js server will be available at http://localhost:5000.
-
Glitch:
- Create a new Glitch project and upload your server files.
- Configure environment variables using Glitch’s settings.
-
Heroku / Render:
- Follow their guides for deploying Node.js applications.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature/YourFeature
- Commit your changes:
git commit -am 'Add new feature'
- Push to the branch:
git push origin feature/YourFeature
- Create a new Pull Request.