@@ -19,8 +19,15 @@ Files to do this in:
19
19
3 . /backend/user-service
20
20
4 . /backend/question-service
21
21
5 . /backend/matching-service
22
- Consult the readme files in the service if there are further configurations needed.
22
+ Then, run ` node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" ` twice to generate
23
+ your 2 JWT token secrets. For the first one, paste it into the JWT_ACCESS_TOKEN_SECRET variable of
24
+ the .env files in question-service and user-service. Then, copy the second into the
25
+ JWT_REFRESH_TOKEN_SECRET of the .env file in user-service.
26
+
27
+ Further note: The DB_CLOUD_URI .env variable in user-service doesn't need to be filled in. A local
28
+ database will be created in the mongoDB service.
23
29
30
+ Consult the readme files in the service if there are further configurations needed.
24
31
### Running the Project
25
32
26
33
To run all services, execute the following command in the root directory:
@@ -36,6 +43,10 @@ Once the containers are up:
36
43
- Nginx API Gateway: [ http://localhost:80 ] ( http://localhost:80 )
37
44
- Redis: [ http://localhost:6379 ] ( http://localhost:6379 )
38
45
46
+ Note that even after docker says that everything is up and running, there is a risk that they aren't when you load the frontend.
47
+ In this event, wait for about a minute before trying again. If that still doesn't work and there are network errors, try
48
+ rebuilding the services by running ` docker-compose up --build ` again.
49
+
39
50
### MongoDB Configuration
40
51
41
52
- MongoDB runs on port ` 27017 ` inside a container named ` peerprep-mongo-container ` .
0 commit comments