Skip to content

Commit 2eac2d9

Browse files
committed
Update readme
1 parent c628207 commit 2eac2d9

File tree

6 files changed

+22
-24
lines changed

6 files changed

+22
-24
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ docker-compose down
2828

2929
- User Service: http://localhost:3001
3030
- Question Service: http://localhost:3000
31+
- Matching Service: http://localhost:3002
3132
- Frontend: http://localhost:5173

backend/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
2. Set-up Firebase.
88

9+
3. Follow the instructions [here](https://nodejs.org/en/download/package-manager) to set up Node v20.
10+
911
## Setting-up local MongoDB (only if you are using Docker)
1012

1113
1. In the `backend` directory, create a copy of the `.env.sample` file and name it `.env`.

backend/matching-service/README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
1-
# Matching Service
1+
# Matching Service Guide
2+
3+
> Please ensure that you have completed the backend set-up [here](../README.md) before proceeding.
24
35
## Setting-up Matching Service
46

57
1. In the `matching-service` directory, create a copy of the `.env.sample` file and name it `.env`. If you are looking to run matching service with the other services using docker-compose, comment out the variable `RABBITMQ_ADDR` under use case (1) in the .env file. Otherwise, if you are looking to run matching service individually, comment out the variables `RABBITMQ_DEFAULT_USER`, `RABBITMQ_DEFAULT_PASS` and `RABBITMQ_ADDR` under use case (2) in the .env file.
68

7-
2. If you are running matching service together with other services using docker-compose, to set up credentials for RabbitMq, update the RabbitMq variables in the `.env` file. Update `RABBITMQ_DEFAULT_USER` and `RABBITMQ_DEFAULT_PASS` to what you want, then update `RABBITMQ_ADDR` to be `amqp://<RABBITMQ_DEFAULT_USER>:<RABBITMQ_DEFAULT_PASS>@rabbitmq:5672`.
8-
You can access RabbitMq management user interface locally with the username in `RABBITMQ_DEFAULT_USER` and password in `RABBITMQ_DEFAULT_PASS` at http://localhost:15672.
9+
2. If you are running matching service together with other services using docker-compose, to set up credentials for RabbitMq, update the RabbitMq variables in the `.env` file. Update `RABBITMQ_DEFAULT_USER` and `RABBITMQ_DEFAULT_PASS` to what you want, then update `RABBITMQ_ADDR` to be `amqp://<RABBITMQ_DEFAULT_USER>:<RABBITMQ_DEFAULT_PASS>@rabbitmq:5672`. You can access RabbitMq management user interface locally with the username in `RABBITMQ_DEFAULT_USER` and password in `RABBITMQ_DEFAULT_PASS` at http://localhost:15672.
910

1011
3. If you are running matching service individually, you do not need to make any changes to `RABBITMQ_ADDR`. You can access RabbitMq management user interface locally with the username `guest` and password `guest` at http://localhost:15672.
1112

1213
## Running Matching Service Individually with Docker
1314

14-
1. Set up and run RabbitMq locally on your computer with the command `docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:4.0-management`.
15-
16-
2. Follow the instructions [here](https://nodejs.org/en/download/package-manager) to set up Node v20.
15+
1. Set up and run RabbitMq locally on your computer with the command `docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:4.0-management`. If you encounter connection errors, please wait for a few minutes as RabbitMq may take some time to start up.
1716

18-
3. Open Command Line/Terminal and navigate into the `matching-service` directory.
17+
2. Open Command Line/Terminal and navigate into the `matching-service` directory.
1918

20-
4. Run the command: `npm install`. This will install all the necessary dependencies.
19+
3. Run the command: `npm install`. This will install all the necessary dependencies.
2120

22-
5. Run the command `npm start` to start the Matching Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
21+
4. Run the command `npm start` to start the Matching Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
2322

2423
## After running
2524

backend/question-service/README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Question Service
1+
# Question Service Guide
22

3-
> If you have not set-up either a local or cloud MongoDB, as well as Firebase, visit [this](../README.md) before proceeding.
3+
> Please ensure that you have completed the backend set-up [here](../README.md) before proceeding.
44
55
## Setting-up Question Service
66

@@ -12,13 +12,11 @@
1212

1313
## Running Question Service without Docker
1414

15-
1. Follow the instructions [here](https://nodejs.org/en/download/package-manager) to set up Node v20.
15+
1. Open Command Line/Terminal and navigate into the `question-service` directory.
1616

17-
2. Open Command Line/Terminal and navigate into the `question-service` directory.
17+
2. Run the command: `npm install`. This will install all the necessary dependencies.
1818

19-
3. Run the command: `npm install`. This will install all the necessary dependencies.
20-
21-
4. Run the command `npm start` to start the Question Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
19+
3. Run the command `npm start` to start the Question Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
2220

2321
## Seeding questions into MongoDB
2422

backend/user-service/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# User Service Guide
22

3-
> If you have not set-up either a local or cloud MongoDB, as well as Firebase, visit [this](../README.md) before proceeding.
3+
> Please ensure that you have completed the backend set-up [here](../README.md) before proceeding.
44
55
## Setting-up User Service
66

@@ -14,13 +14,11 @@
1414

1515
## Running User Service without Docker
1616

17-
1. Follow the instructions [here](https://nodejs.org/en/download/package-manager) to set up Node v20.
17+
1. Open Command Line/Terminal and navigate into the `user-service` directory.
1818

19-
2. Open Command Line/Terminal and navigate into the `user-service` directory.
19+
2. Run the command: `npm install`. This will install all the necessary dependencies.
2020

21-
3. Run the command: `npm install`. This will install all the necessary dependencies.
22-
23-
4. Run the command `npm start` to start the User Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
21+
3. Run the command `npm start` to start the User Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
2422

2523
## After running
2624

frontend/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PeerPrep Frontend
1+
# Frontend Guide
22

33
## Running Frontend
44

@@ -8,4 +8,4 @@
88

99
3. Run `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
1010

11-
4. The application is available at http://localhost:5173.
11+
4. The application is available at http://localhost:5173. If you would like to run the application on a different URL, please update the `ORIGINS` variable in the various `.env` files located in the backend directory.

0 commit comments

Comments
 (0)