The Code Execution Service offers a user-friendly environment for executing code, utilizing Docker containers to maintain isolation. It supports five programming languages: JavaScript, C, C++, PHP, and Python.
-
Download Docker: Visit Docker's official website and download Docker Desktop suitable for your operating system.
-
Build the Docker Image: Navigate to the project directory in your terminal and execute the following command:
docker build . -t code-execution
-
Start the Service: Once the Docker image is built, start the service by running the following command:
docker run -p 3001:3001 code-execution
This will launch the Code Execution Service on your local machine, accessible at port 3001.