Skip to content

UntitleCMS/CodeExecutorService

Repository files navigation

CodeExecutorService

How to run

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

How to connect and run code frome client

  1. Useing SignalR connect to ip:4433/iodeliver for input output transportation
  2. Send Code with POST method to /Run and add query sting connectionID for input output transmission from 1. fro example /Run?connectionID=[connectionID]
  3. Your input to program can pass by invoke userinput to server
  4. Your will resive output on processoutput

Sequence Diagram

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
Loading

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published