-
Make a copy of the
env.samplefile in the root directory of the project and name it.env -
Fill up the
.envfileFields in the
.envfile that you may want to change or fill up:USER_SERVICE_MONGO_ENV: By default this should bePROD, which will allow the user service database to useUSER_SERVICE_MONGO_URI_CLOUDas the cloud URI. You can change it toDEVand run a local MongoDB, then putting the URI in theUSER_SERVICE_MONGO_URI_LOCALfield.USER_SERVICE_MONGO_URI_CLOUD: If you did not change the previous field, you will need to provide an URI to your own cloud MongoDB.USER_SERVICE_JWT_SECRET_KEY: You can put your generated secret key here. Or you can use an example secret key:b00f21108ef28c3984ca9dea05e8bf297a11688779376356e34406543991c0fc36b0ee5a6cf9a30b79e835746088e11932a637553beb82d0f8bc736584697a03MATCHING_SERVICE_POSTGRES_PASSWORD: You can put a new initial postgres password here or leave it as it is. Do not leave it blank or the Postgres container will fail upon startup.
Note:
QUESTION_SERVICE_MONGO_URI_CLOUDis the URI to the cloud database for question bank which is provided by default as it contains prepared question for the question service. Please do not edit this URI. -
Run
./startup.shand you should see the.envfile being copied to all backend service folders. If your computer does not support shell script execution, you can manually copy the.envfile into user-service, matching-service, question-service, editor-service and chat-service folders. -
Run
docker-compose --env-file ./.env up --build -
Wait until all containers are compiled and running, visit
localhost:3000. (The frontend usually take the longest to compile)
-
Notifications
You must be signed in to change notification settings - Fork 1
CS3219-AY2223S1/cs3219-project-ay2223s1-g6
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
cs3219-project-ay2223s1-g6 created by GitHub Classroom
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published