Note that our code may contain many unused components and modules. This is because said components and modules are used in the project but their associated pages and code which utilise them were stripped out for the assignment submission.
Make sure that the following are installed on your device:
We recommend purging all Docker images before and after deployment to prevent image conflicts with our project code and other assignment code.
docker image rm ghcr.io/cs3219-ay2324s1-g04/peerprep_user_service_database_initialiser
docker image rm ghcr.io/cs3219-ay2324s1-g04/peerprep_user_service_api
docker image rm ghcr.io/cs3219-ay2324s1-g04/peerprep_question_service_scheduled_question_deleter
docker image rm ghcr.io/cs3219-ay2324s1-g04/peerprep_question_service_database_initialiser
docker image rm ghcr.io/cs3219-ay2324s1-g04/peerprep_question_service_api
-
Clone this repository.
git clone --recurse-submodules git@github.com:CS3219-AY2324S1/ay2324s1-course-assessment-g04.git
-
Navigate to the
assignment_3_and_4
directory. -
Check that the following sub-directories are not empty.
user_service
question_service
webpage_service
-
Should any of the directories be empty, pull the Git submodules.
git submodule update --init
-
Build the Docker images using the
docker.sh
script../build_images.sh
-
Deploy Docker containers using the
docker.sh
script../docker.sh up
-
Install dependencies for the Webpage Service.
cd webpage_service npm install cd ..
-
Deploy the Webpage Service.
cd webpage_service npm run dev
-
Access the app from your browser at: http://localhost:5173
-
Stop the Webpage Service in the terminal which is running Webpage Service's
npm run dev
command. You can do so by using the ctrl+c keyboard shortcut or by closing the terminal. -
Delete Docker containers using the
docker.sh
script../docker.sh down