Sign inSign up

pr4j3sh/codengine

By pr4j3sh

•Updated over 1 year ago

Multiple programming languages code compilation server.

Image
Languages & frameworks
Web servers
0

297

pr4j3sh/codengine repository overview

⁠codengine

codengine is a unified platform for compiling and executing code written in multiple programming languages. It leverages the codengine-core⁠ container to provide a seamless environment for developers.

⁠Supported Languages

  • JavaScript
  • TypeScript
  • Python
  • Java
  • Perl
  • Ruby
  • Rust
  • Lua
  • C++
  • C

⁠Usage

⁠Run Codengine
docker run -p 5000:5000 pr4j3sh/codengine:v1.0.6
⁠Execute Code Using curl
curl -X POST http://127.0.0.1:5000/api/output/js \
-H "Content-Type: application/json" \
-d '{"code": "console.log(\"hello\")"}'

⁠API Endpoints

Use the following API endpoints to compile and execute code. Each endpoint expects a JSON payload with the raw code:

⁠Endpoints
  • POST /api/output/java
  • POST /api/output/cpp
  • POST /api/output/lua
  • POST /api/output/js
  • POST /api/output/ts
  • POST /api/output/py
  • POST /api/output/pl
  • POST /api/output/rb
  • POST /api/output/rs
  • POST /api/output/c
⁠JSON Payload
{
  "code": ""
}

⁠References

Tag summary

Content type

Image

Digest

sha256:1802c14fd…

Size

869.7 MB

Last updated

over 1 year ago

docker pull pr4j3sh/codengine:v1.0.6