Useing Docker Compose to run this project
git clone https://github.com/UntitleCMS/CodeExecutorService.git
cd CodeExecutorService
docker compose up
Port 8080
is for http
and 4433
is for https
- Useing SignalR connect to
ip:4433/iodeliver
for input output transportation - Send Code with
POST
method to/Run
and add query stingconnectionID
for input output transmission from1.
fro example/Run?connectionID=[connectionID]
- Your input to program can pass by invoke
userinput
to server - Your will resive output on
processoutput
sequenceDiagram
Client->+CodeExecutorService: connect to websocket
CodeExecutorService-->>Client: connection id
Client->>+CodeExecutorService: runcode data = sourcecode, connection id
CodeExecutorService->>+CompilerContainer: run sourcecode
Client->>CodeExecutorService: input data
CodeExecutorService->>CompilerContainer: input data
CompilerContainer-->>CodeExecutorService: output data
CodeExecutorService-->>Client: output data
CompilerContainer-->>-CodeExecutorService: exit code and meta data
CodeExecutorService-->>-Client: exit code and running data
CodeExecutorService->-Client: disconnect to websocket