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/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