Skip to content

Commit 1d178fe

Browse files
authored
Merge pull request #68 from CS3219-AY2425S1/Nephelite-patch-1
Update README.md
2 parents 5a26a30 + e2db608 commit 1d178fe

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,15 @@ Files to do this in:
1919
3. /backend/user-service
2020
4. /backend/question-service
2121
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.
2329

30+
Consult the readme files in the service if there are further configurations needed.
2431
### Running the Project
2532

2633
To run all services, execute the following command in the root directory:
@@ -36,6 +43,10 @@ Once the containers are up:
3643
- Nginx API Gateway: [http://localhost:80](http://localhost:80)
3744
- Redis: [http://localhost:6379](http://localhost:6379)
3845

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+
3950
### MongoDB Configuration
4051

4152
- MongoDB runs on port `27017` inside a container named `peerprep-mongo-container`.

0 commit comments

Comments
 (0)