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: backend/README.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,23 @@
2
2
3
3
> Before proceeding to each microservice for more instructions:
4
4
5
-
1. Set up cloud MongoDB if not using docker. We recommend this if you are just testing out each microservice separately to avoid needing to manually set up multiple instances of local MongoDB. Else, if you are using docker-compose.yml to run PeerPrep, check out the READMEs in the different backend microservices to set up the env for the local MongoDB instances.
5
+
1. Set up cloud MongoDB if you are not using Docker. We recommend this if you are just testing out each microservice separately to avoid needing to manually set up multiple instances of local MongoDB. Otherwise, if you are using `docker-compose.yml` to run PeerPrep, check out the READMEs in the different backend microservices to set up the `.env` files for the local MongoDB instances.
6
6
7
7
2. Set up Firebase.
8
8
9
-
3. Follow the instructions [here](https://nodejs.org/en/download/package-manager) to set up Node v20.
9
+
3. For the microservices that use Redis, to view the contents stored:
10
+
11
+
1. Go to [http://localhost:5540](http://localhost:5540).
12
+
13
+
2. Click on "Add Redis Database".
14
+
15
+
3. Enter `host.docker.internal` as the Host.
16
+
17
+
4. Enter the port used by the respective service:
18
+
- User Service: `6379`
19
+
- Collab Service: `6380`
20
+
21
+
4. Follow the instructions [here](https://nodejs.org/en/download/package-manager) to set up Node v20.
Copy file name to clipboardExpand all lines: backend/code-execution-service/README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,22 @@
6
6
7
7
2. Sign up for a free OneCompiler API [here](https://rapidapi.com/onecompiler-onecompiler-default/api/onecompiler-apis).
8
8
9
-
3. Update `ONE_COMPILER_KEY` in `.env`with the the value of `x-rapidapi-key`.
9
+
3. Update `ONE_COMPILER_KEY` in the `.env`file with the value of `x-rapidapi-key`.
10
10
11
-
## Running Code Execution Service without Docker
11
+
## Running Code Execution Service Locally
12
12
13
13
1. Open Command Line/Terminal and navigate into the `code-execution-service` directory.
14
14
15
15
2. Run the command: `npm install`. This will install all the necessary dependencies.
16
16
17
17
3. Run the command `npm start` to start the Code Execution Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
18
18
19
+
## Running Code Execution Service with Docker
20
+
21
+
1. Open the Command Line/Terminal.
22
+
23
+
2. Run the command `docker compose run code-execution-service` to start up the Code Execution Service and its dependencies.
24
+
19
25
## After running
20
26
21
27
1. To view Code Execution Service documentation, go to http://localhost:3004/docs.
0 commit comments