remote-code-execution-engine
remote-code-execution-engine copied to clipboard
Remote Code Execution Engine (Click for blog)
This API runs your code for you in a secure environment.The user can limit the memory and execution time.Currently this api supports 4 languages. Visit my blog - for a detailed walkthrough.
- C
- C++
- Python3
- Java
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
- docker
- docker-compose
Installation
- Clone the repo
git clone https://github.com/budukhyash/remote-code-execution-engine
- Run in the cloned directory
docker-compose up --build
- This will start 4 services (publisher,worker,reddis-server and a rabbitMQ instance). The server will be listening on port 7000.
Documentation
- Api Docs - with examples using various languages.
Built With
- Express - The web framework used
- RabbitMQ - Task queue
- Redis - Used for caching the results.
- nodejs - Used as the js runtime.
Acknowledgments
- https://www.youtube.com/user/GISIGeometry
- https://blog.remoteinterview.io/how-we-used-docker-to-compile-and-run-untrusted-code-2fafbffe2ad5