Skip to content

The web API server that runs program codes in an isolated environment using Docker.

Notifications You must be signed in to change notification settings

dotneet/codeapi

Repository files navigation

Usage

Prepare a docker image.

./build-image.sh

Edit settings.

cp .env-example .env
vim .env

Run the server.

go run main.go

Example of a request:

curl -X POST -H "Content-Type: application/json" -d @- http://localhost:8080/api/run
{"code": "print('Hello World!')"}
^D

About

The web API server that runs program codes in an isolated environment using Docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published