As the deployed microservices are not registered with a Public Certificate Authority, they are currently running using Self-Signed Certificates. For the application to work, please follow the steps below.
- Access the respective microservices via the urls below:
- User Service:
https://userservice-prod.eba-zwpkkbny.ap-southeast-1.elasticbeanstalk.com/api/user
or click here. - Question Service:
https://questionservice-prod.eba-ug263jf3.ap-southeast-1.elasticbeanstalk.com/api/question
or click here. - Matching Service:
https://matchingservice-prod.eba-2etwbb9w.ap-southeast-1.elasticbeanstalk.com/api/match
or click here. - History Service:
https://historyservice-prod.eba-hvcsiqpb.ap-southeast-1.elasticbeanstalk.com/api/history
or click here. - Twilio Service:
https://twilioservice-prod.eba-vfd4pt2p.ap-southeast-1.elasticbeanstalk.com/
or click here.
- Your browser should display a warning about the site, as shown in the image below.
- Click on
Show advanced
, and select the option to proceed to the url. This would cause the browser to accept the self-signed certificate. - Repeat steps (2) and (3) for the remaining microservices.
- Once done, access the deployed application at
https://www.cs3219-peerprep-g39.com
or click here. The application should work as normal.
- Clone the repository to your local device. Please ensure that the
.env
files are cloned. - Open up the project in your IDE, or traverse to the root directory of the project.
- Run
cd frontend
from the root directory. - Run
npm i
in thefrontend
folder. - Run
npm run dev
. This command will boot all the services and frontend concurrently.
Should the steps above not work, boot the services separately as illustrated in the section below
- Open up a new terminal in the root directory.
- Run
cd user-service
from the root directory. - Install npm packages using
npm i
. - Run User Service using
npm start
. - The service should be running on http://localhost:8000
- Open up a new terminal in the root directory.
- Run
cd matching-service
from the root directory. - Install npm packages using
npm i
. - Run Matching Service using
npm start
. - The service should be running on http://localhost:8001
- Open up a new terminal in the root directory.
- Run
cd question-service
from the root directory. - Install npm packages using
npm i
. - Run Question Service using
npm start
. - The service should be running on http://localhost:8002
- Open up a new terminal in the root directory.
- Run
cd history-service
from the root directory. - Install npm packages using
npm i
. - Run History Service using
npm start
. - The service should be running on http://localhost:8003
- Open up a new terminal in the root directory.
- Run
cd frontend
from the root directory. - Install npm packages using
npm i
. - Run frontend using
npm start
. - The application should be started on http://localhost:3000
- Open up a new terminal in the root directory.
- Run
cd frontend/Twilio
from the root folder. - Run
npm start
. - The service should be started on http://localhost:3001