The easiest way to get started with Torq is by installing in your local machine.
Development system must have docker engine installed and running.
Setting up local environment is extremely easy and straight forward. Follow the below step and you will be ready to contribute
- Clone the code locally using
git clone https://github.com/torqbit/torq
- Switch to the code folder
cd torq
- Edit the
docker-compose.yml
file to include the Google & Github client credentials, and the email id that will be the admin for the platform. - Now run the command
docker-compose up
to launch the web app and the MySQL server.
You are ready to play around the platform. Do not forget to refresh the browser (in case id does not auto-reload)
Thats it!
- Manage Courses: Create courses with video lessons.
- Video Streaming: Stream your course videos, which are powered by Bunny.net
- Tracking Learning Progress: Monitor learning progress with detailed analytics, enabling learners and instructors to assess skill development and mastery.
- Course Discussion: Foster collaboration and engagement through course-specific discussion forums, facilitating knowledge sharing and peer interaction.
- Alert Comment Notification: Enable timely communication by alerting users to new comments and replies to queries, enabling greater engagment.
First need to add .env file with some credentials:
# Next ENV
NODE_ENV=development
NEXT_PUBLIC_SECRET=uPijyPl163ihk570sksueTQrNMnKW4
NEXTAUTH_URL=http://localhost:3000
JWT_SECRET = uPijyPl163ihk570eXbQrNMnKW4
NEXT_PUBLIC_APP_ENV=development
# Admin details
[email protected]
# DB Credentials
DATABASE_URL="mysql://torqbit:[email protected]/torqdb"
# Google Auth Credentials
GOOGLE_ID=******************.apps.googleusercontent.com
GOOGLE_SECRET=******************
# GitHub Auth Credentials
GITHUB_ID=******************
GITHUB_SECRET=******************
Using npm:
$ npm install
Using yarn:
$ yarn install
Then, you can run locally in development mode with live reload:
Using npm:
$ npm dev
Using yarn:
$ yarn dev