This is the GithubRepository for PeerPrep, a web-based platform for users to collaborate on practicing Leetcode-style interview questions.
Navigate to the
Releases
on the right and select Project
. Open the Assets tab and click on Source
code (zip) to download the release
- NodeJS
- Python3
- Docker
- Makefile (or Make for Windows)
- Anaconda (or any Python environment management system)
- Ensure that Docker is running on your machine.
- Ensure ports 80, 3000, 3030, 5001, 5050, 5432, 6379, 8000, 9000 and 27017 are available on your machine.
Navigate into the ay2324s1-course-assessment-g19
directory from the downloaded
release.
cd ay2324s1-course-assessment-g19
Run the following command to install all dependencies for the relevant modules.
make install
conda activate user-api
pip install -r ./user-api/requirements.txt
If you do not have Makefile, then run the following commands in the command line
cd client/ && npm install
cd ../assistant-api/ && npm install
cd ../code-api/ && npm install
cd ../collaboration-api/ && npm install
cd ../question-api/ && npm install
cd ../user-api/
conda create --name user-api python=3.9
conda activate user-api
pip install -r ./user-api/requirements.txt
Run the following command to build and run the Docker containers for the relevant modules.
make dev
If you do not have Makefile, then run the following command
docker-compose up
You can access the application @ http://localhost:80
You may sign in with an Admin account, use password 032190, and navigate to the
Questions tab on the sidebar. From there, you have access to a
Prepopulate Questions (For Testing)
button to prepopulate your local database
with questions.