We recommend using our production environment for testing. You can find the production environment at https://peerprep.sivarn.com.
A set of email/password with admin privileges will be uploaded to Canvas through Sharing Assignment Private Info assignment cred.md file.
Clone the repository to your local machine: git clone [email protected]:CS3219-AY2324S1/ay2324s1-course-assessment-g21.git
Then in the project root folder, update the submodules: git submodule update --init
Note that usually these values are kept secret, but since all of these keys have been made for test environments, we are not concerned about security. We have committed the following test-env files in assignment submissions for your convenience.
./.env
./frontend/.env
./firebase-auth/service-account.json
If you face any issues / if you have non-standard installations or config for any service, please modify these files appropriately.
-
In the root folder, run
docker compose -f docker-compose.yml up -d
. If you run into any errors with starting up the executor service, be sure to update the git submodules as described above. -
Application should be running at http://localhost.
Note that the admin portal is not accessible until you grant yourself admin privileges. You may carry out the steps here to grant yourself admin access.
Run the following commands in the terminal one after another:
docker exec -it peerprep-postgres bash
psql -U peerprep
UPDATE profiles SET role='admin';
This will give every user admin privileges. Note that this is only for testing purposes.
The questions repository will be empty when you first start the application. You will need to populate it with questions before you can start matching.
To do so, you can grant yourself admin priveleges as described above, and then go to the admin portal at http://localhost/admin/question. You can then add questions to the database.