Bytecode Executor MS is an online judge application that allows you to run C++ code in a containerized environment. It provides a secure and isolated way to execute code and assess its correctness against predefined test cases.
- Run C++ code in a containerized environment
- Secure execution with resource limitations
- Retrieve test cases from Firebase Storage using API keys
- Node.js (LTS version recommended)
- Docker (for containerization)
-
Clone the repository:
git clone https://github.com/your-username/bytecode-executor-ms.git cd bytecode-executor-ms
-
Install dependencies
npm install
-
Configure API Keys
PORT= apiKey= authDomain= projectId= storageBucket= messagingSenderId= appId= measurementId= foldername=
-
Run main.js
node main.js
- Build the Docker image
docker build -t bytecode-executor-ms .
- Run the Docker container
docker run -p XXXX:XXXX -d bytecode-executor-ms
- Upload input and output test case file to Firebase Storage
- Use the appropriate API to retrieve the test cases
- Make POST request to the application API with the C++ code and retrieved test cases to execute the code and compare the output