- Ensure that Docker desktop application is running.
- Go to the root directory of the repository.
- Run the following command:
#build and run each microservice using docker-compose docker-compose up --build -d
- After the docker containers are up, navigate to
localhost:3000
on your web browser and start using the application.
- Run the following command:
# tear down containers docker-compose down
To switch from dockerized version to local development,
-
Go to the root directory of the repository.
-
Run the following command:
cd matching-service
-
Open
configs.js
and setisDocker
toggle to false. -
Run the following command to go back to the root directory:
cd..
-
Ensure that you are in the root directory before opening a new terminal and run the following command:
cd user-service npm run dev
-
Repeat Step 5 for the other microservices
matching-service
,question-service
,chat-service
, andhistory-service
. -
Lastly, to get the frontend working, run the following command from root directory:
cd frontend npm start
-
Navigate to
localhost:3000
on your web browser and start using the application.