Follow the following steps to access the application via the deployed endpoint:
- Access the deloyed endpoint at: https://frontend-ragb43dwzq-de.a.run.app/
Use this to start up all the services to run the application locally via Docker:
- Run
docker compose up
in the project directory - Access the front end at: http://localhost:3000/
The subsequent sections are for running the individual services locally i.e not in a docker container.
- In the user-service directory, rename
sample-env.txt
file to.env
. - Create a Cloud DB URL using Mongo Atlas.
- Enter the DB URL created as
DB_CLOUD_URI
in.env
file. - The remaining fields are for the following
- JWT_SECRET : Any string as long as its consistent throughout the four services.
- FRONTEND_URL : URL of Frontend
- FROM_NAME : The name that will be shown on the email if user forgot their password
- FROM_EMAIL : The email address that will be used to send users email if they forgot their password
- FROM_EMAIL_PW : The password of the email address above to log in
- TO_EMAIL : Used as the actual address to send as most of the emails provided are fake.
- Install npm packages using
npm i
. - Run User Service using
npm start
.
- In the matching-service directory, rename
sample-env.txt
file to.env
. - The fields are similar to above.
- Install npm packages using
npm i
. - Run Matching Service using
node index.js
.
- In the collab-service directory, rename
sample-env.txt
file to.env
. - The fields are similar to above.
- Install npm packages using
npm i
. - Run Collab Service using
node index.js
.
- In the question-service directory, rename
sample-env.txt
file to.env
. - The fields are similar to above.
- Install npm packages using
npm i
. - Run Collab Service using
node index.js
.
- In the frontend directory, Install npm packages using
npm i
. - Run Frontend using
npm start
. - Access the frontend at: http://localhost:3000/