The Learning Center is a web-based platform designed to host and manage educational labs. It provides a user-friendly interface for learners to browse, interact with, and complete labs while enabling administrators to create and manage labs using a simple Git-based workflow.
To set up and run the project, follow these steps:
Run the following command to clone the project repository:
git clone https://github.com/Dhaval2908/RockLearn
After cloning the repository, navigate to the project folder:
cd RockLearn
Navigate to the Frontend
folder and install the required dependencies:
cd Frontend
npm install
Navigate to the Backend
folder and install the required dependencies:
cd Backend
npm install
Inside the Backend
folder, create a .env
file and add the following variables:
DB_LINK=your-mongodb-connection-string
BRANCH=main
GITHUB_UNAME=your-github-username
GITHUB_TOKEN=your-github-token
GITHUB_USERNAME=your-github-username
GITHUB_API_URL=https://api.github.com
JWT_SECRET=your-jwt-secret
JWT_EXPIRE=1d
JWT_COOKIE_EXPIRES=7
GMAIL_USER=your-gmail-address
GMAIL_PASS=your-gmail-password
CLIENT_LINK=http://localhost:5173
Navigate to the Frontend
folder (if not already there) and start the frontend server:
cd Frontend
npm run dev
Navigate to the Backend
folder (if not already there) and start the backend server:
cd Backend
node index.js
Once both the frontend and backend servers are running, open your browser and navigate to the frontend URL (default: http://localhost:5173
) to access the Learning Center.
- Frontend: ReactJS, Material-UI, Tailwind CSS
- Backend: Node.js, Express.js
- Database: MongoDB
- Authentication: JSON Web Tokens (JWT)
- Version Control: Git, GitHub
- Fork the repository and create a new branch for your feature or bug fix.
- Commit your changes and submit a pull request with a detailed description of your updates.
This project is licensed under the MIT License.
For further information or questions, contact the project team at [[email protected]].