Note
This is the instructions to set up and run the PeerPrep services for local development/testing for Assignments grading
- Ensure you have Docker installed on your machine. If not, follow this link to install Docker Desktop.
- Ensure you have followed the instructions in the Set up section bellow before proceeding further
Please proceed to download secrets files submitted on Canvas to set up environment variables for the services.
- Create a
.env
file in the root directory of theassignment/question-service
folder - Copy the contents of the question-service-env file from into the
.env
file - Your file should look like this:
MONGODB_URL=
JWT_SECRET=
- Create a
.env
file in the root directory of theassignment/user-service
folder - Copy the contents of the user-service-env file from into the
.env
file - Your file should look like this:
SUPABASE_URL=
SUPABASE_KEY=
JWT_SECRET=
Important
For any missing environment variables, please contact the team to retrieve the secrets
- Create a
.env
file in the root directory of theproject/question-service
folder - Copy the contents of the question-service-env file from into the
.env
file - Your file should look like this:
SUPABASE_URL=
SUPABASE_KEY=
JWT_SECRET=
- Create a
.env
file in the root directory of theproject/user-service
folder - Copy the contents of the user-service-env file from into the
.env
file - Your file should look like this:
SUPABASE_URL=
SUPABASE_KEY=
JWT_SECRET=
Important
For any missing environment variables, please contact the team to retrieve the secrets
-
In the root of the
project
folder, rundocker-compose up -d --build
-
Visit the following endpoints for respective services:
- Frontend: http://localhost:3000
- Question service: http://localhost:8888
- User service: http://localhost:5100
- Matching service: http://localhost:8080
- Collaboration service: http://localhost:8181
-
To stop the services, run
docker-compose down
(This step is crucial to ensure that the services are stopped properly when installing new dependencies)