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
Copy file name to clipboardExpand all lines: CollaborationService/README.md
+54-47Lines changed: 54 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
### Features
4
4
5
5
- startCollaboration : server socket events
6
-
-getQuestionById
6
+
-getCollaborationHistory
7
7
8
8
### Table of Contents:
9
9
@@ -23,26 +23,27 @@
23
23
24
24
#### Listening port
25
25
26
-
http://localhost:3002
26
+
http://localhost:3005
27
27
28
28
29
29
#### Start the microservice on local machine by:
30
30
31
-
1. Navigate to peerprep directory.
31
+
1. Navigate to Collaboration directory.
32
32
33
-
2. Uncomment localhost addresses and comment the docker addresses for the services in the `peer-prep\src\backend\collaboration-service\config\config.js` file as below:
33
+
2. Uncomment localhost addresses and comment the docker addresses for the services in the `CollaborationService\config\config.js` file as below:
> For other test, please refer to the project report appendix.
154
170
155
171
156
172
#### Jest testing
157
173
158
174
**Note**:
175
+
Testing is done on the initialization steps and the `getCollaborationHistory` function.
159
176
160
-
> Collections setup is required as above section, modifications to database data are expected.
161
-
162
-
1. Two terminal windows are required for Jest testing.
177
+
1. Test the service using terminal commands:
163
178
164
-
2. Initiate the collaboration service in first window by:
165
-
166
-
```
167
-
cd peer-prep\src\backend\collaboration-service
168
-
npm start
169
179
```
170
-
171
-
3. Test the service in the other window using terminal commands:
172
-
173
-
```
174
-
cd peer-prep\src\backend\collaboration-service
180
+
cd CollaborationService
175
181
npm test
176
182
```
177
183
178
-
4. Quit the server after finished testing using `Ctrl+C`.
184
+
2. Quit the server after finished testing using `Ctrl+C`.
179
185
180
186
181
187
#### Running in Docker
182
188
183
189
**Note**:
184
190
185
-
> Please delete the containers for other microservices.
191
+
> Please ensure that there are no active container of the required services.
186
192
187
-
1. Navigate to peerprep directory.
193
+
1. Navigate to CollaborationService directory.
188
194
189
-
2. Comment local database address and uncomment the docker address for the service in the `peer-prep\src\backend\collaboration-service\config\config.js` file as below:
195
+
2. Comment local database address and uncomment the docker address for the service in the `CollaborationService\config\config.js` file as below:
0 commit comments