You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://classroom.github.com/a/bzPrOe11)
2
+
2
3
# CS3219 Project (PeerPrep) - AY2425S1
4
+
3
5
## Group: G03
4
6
5
-
### Note:
6
-
- You can choose to develop individual microservices within separate folders within this repository **OR** use individual repositories (all public) for each microservice.
7
-
- In the latter scenario, you should enable sub-modules on this GitHub classroom repository to manage the development/deployment **AND** add your mentor to the individual repositories as a collaborator.
8
-
- The teaching team should be given access to the repositories as we may require viewing the history of the repository in case of any disputes or disagreements.
7
+
### Note:
8
+
9
+
- You can choose to develop individual microservices within separate folders within this repository **OR** use
10
+
individual repositories (all public) for each microservice.
11
+
- In the latter scenario, you should enable sub-modules on this GitHub classroom repository to manage the
12
+
development/deployment **AND** add your mentor to the individual repositories as a collaborator.
13
+
- The teaching team should be given access to the repositories as we may require viewing the history of the repository
To get started, copy the contents of `.env.sample` into a new `.env` file located at the root level of the project.
29
+
To get started, copy the contents of `.env.sample` into a new `.env` file located at the root level of the project.
23
30
24
31
**Step 2: Build the Docker containers**
25
32
@@ -37,25 +44,26 @@ Once the build is complete, you can start the Docker containers.
37
44
docker compose -f compose.yml up -d
38
45
```
39
46
40
-
After spinning up the services, you may access the frontend client at `127.0.0.1:4200`. Specifically, you can navigate to the Question SPA at `127.0.0.1:4200/questions` and the login page at `127.0.0.1/account`.
47
+
After spinning up the services, you may access the frontend client at `127.0.0.1:4200`. Specifically, you can navigate
48
+
to the Question SPA at `127.0.0.1:4200/questions` and the login page at `127.0.0.1/account`.
41
49
42
-
If you would like to spin up the services in development mode, you may use the following command. This enables hot reloading and exposes the ports for all microservices.
50
+
If you would like to spin up the services in development mode, you may use the following command. This enables hot
51
+
reloading and exposes the ports for all microservices.
43
52
44
53
```bash
45
54
docker compose -f compose.yml -f compose.dev.yml up -d
46
55
```
47
56
48
-
| Service | Port |
49
-
|-----------------------|------|
50
-
| Frontend | 4200 |
51
-
| API Gateway | 8080 |
52
-
| Question Service | 8081 |
53
-
| User Service | 8082 |
54
-
| Match Service | 8083 |
55
-
| Collaboration Service | 8084 |
56
-
| Chat Service | 8085 |
57
-
| History Service | 8086 |
58
-
57
+
| Service | Port |
58
+
|------------------------------|------|
59
+
| Frontend | 4200 |
60
+
| API Gateway | 8080 |
61
+
| Question Service | 8081 |
62
+
| User Service | 8082 |
63
+
| Match Service | 8083 |
64
+
| Collaboration & Room Service | 8084 |
65
+
| Chat Service | 8085 |
66
+
| History Service | 8086 |
59
67
60
68
**Step 4: Stop the Docker containers**
61
69
@@ -65,4 +73,6 @@ Once you are done, stop and remove the containers using:
65
73
docker compose down -v
66
74
```
67
75
68
-
Note that this will clear any data stored in volumes associated with the containers. If you would like to keep your data, you can run the command without the `-v` flag, which will remove the containers but retain the data in the volumes for future use.
76
+
Note that this will clear any data stored in volumes associated with the containers. If you would like to keep your
77
+
data, you can run the command without the `-v` flag, which will remove the containers but retain the data in the volumes
0 commit comments