A simple dockerized Nodejs Express backend to compile programs written C, C++, python3.
This is a really simple base version. Scaled version using k8 with a really efficient architecture is coming soon. 😄
- NodeJS
- Docker
- Start the docker engine
- Clone the repo
git clone https://github.com/akhilmhdh/ide.git cd ide
- Start the application using docker-compose
docker-compose -f Dockerfile.dev up
- Visit
http://localhost:8000
docker-compose -f Dockerfile.test up
- Endpoint: POST /code/compile
- Request body format JSON
Key | Value | Required |
---|---|---|
script | base64 encoded program code | True |
lang | c, c++, python3 | True |
input | base64 encoded program input | False |
Multiple needed programs can also be added furthur by changing the dockerfile and adding code running command in codeRunner class
Distributed under the MIT License. See LICENSE
for more information.