CS3219 Project By Team 32.
Program initialisation can be done either via Docker local deployment of manually.
- Open a terminal in this directory, and run the following command:
docker compose -f "docker-compose.yml" up -d --build - Wait for all Docker images to run.
- Access the service via
http://localhost:3000.
- Rename
.env.samplefile to.env. - Create a Cloud DB URL using Mongo Atlas.
- Enter the DB URL created as
DB_CLOUD_URIin.envfile. - Enter your secret string of choice created as
SECRETSin.envfile. - Install npm packages using
npm i. - Run the service using
npm start.
- Rename
.env.samplefile to.env. - Create a Cloud DB URL using Mongo Atlas.
- Enter the DB URL created as
DB_CLOUD_URIin.envfile. - Install npm packages using
npm i. - Run the service using
npm start.
- Rename
.env.samplefile to.env. - Create a Cloud DB URL using Mongo Atlas.
- Enter the DB URL created as
DB_CLOUD_URIin.envfile. - Install npm packages using
npm i. - Populate the question database with preset data using
npm run populate-db - Run the service using
npm start.
- Rename
.env.samplefile to.env. - Create a Cloud DB URL using Mongo Atlas.
- Enter the DB URL created as
DB_CLOUD_URIin.envfile. - Install npm packages using
npm i. - Run the service using
npm start.
- Rename
.env.samplefile to.env. - Create a Cloud DB URL using Mongo Atlas.
- Enter the DB URL created as
DB_CLOUD_URIin.envfile. - Install npm packages using
npm i. - Run the service using
npm start.
- Install npm packages using
npm i --force. - Run the frontend using
npm i start. - Access the service via
http://localhost:3000. Note for (2), if facing issues still, usenpm run start-force.