CodeRun is a versatile tool that allows users to submit code snippets in various programming languages and receive real-time execution results. It's designed for scenarios where quick code validation, testing, or learning is needed without setting up a local development environment. This project leverages the power of concurrent execution to ensure fast and efficient code processing.
- Multi-Language Support : Execute code in a wide range of programming languages.
- Concurrent Execution: Process multiple code submissions simultaneously for optimal performance.
- Real-Time Results: Get instant feedback on code execution, including output and errors.
- Microservice Archtiecture: Separation on concerns of executor and api gateway. Also makes horizontal scaling easy.
- Easy Integration : Simple API endpoints make integration into applications and services seamless.
- Make a POST request to the '/execute' endpoint with the following JSON payload:
{
"language": "python",
"code": "print('Hello, world!')"
}- Receive Response: The API will respond with the execution results, including output and errors:
{
"stdout": "Hello, world!\n",
"stderr": ""
}- Python
- JavaScript
- Java
- C++
Demo link - http://54.226.233.162:8080/index.html
- Clone this repository:
git clone https://github.com/gitninja02/coderun.git
cd coderun- Install dependencies:
mvn install- Start the server:
mvn spring-boot:runContributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
Create a new branch for your feature/fix:
git checkout -b feature-new-feature-
Commit your changes and push to your forked repository.
-
Submit a pull request detailing your changes.
This project is licensed under the MIT License.
By Hari Vishwanath