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
+49-47Lines changed: 49 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 `Collaboration\config\config.js` file as below:
Testing is done on the initialization steps and the `getCollaborationHistory` function.
159
172
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.
163
-
164
-
2. Initiate the collaboration service in first window by:
173
+
1. Test the service using terminal commands:
165
174
166
175
```
167
-
cd peer-prep\src\backend\collaboration-service
168
-
npm start
169
-
```
170
-
171
-
3. Test the service in the other window using terminal commands:
172
-
173
-
```
174
-
cd peer-prep\src\backend\collaboration-service
176
+
cd Collaboration-service
175
177
npm test
176
178
```
177
179
178
-
4. Quit the server after finished testing using `Ctrl+C`.
180
+
2. Quit the server after finished testing using `Ctrl+C`.
179
181
180
182
181
183
#### Running in Docker
182
184
183
185
**Note**:
184
-
185
-
> Please delete the containers for other microservices.
186
+
Please ensure that there are no active container of the required services.
186
187
187
188
1. Navigate to peerprep directory.
188
189
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:
190
+
2. Comment local database address and uncomment the docker address for the service in the `Collaboration-service\config\config.js` file as below:
0 commit comments