10000 GitHub - hari134/coderun: API to run and evaluate code in isolated docker containers
[go: up one dir, main page]

Skip to content

hari134/coderun

Repository files navigation

CodeRun

GitHub License License

GitHub Stars GitHub stars

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.

Features

  • 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.

Usage

Submit Code

  • 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": ""
}

Supported Languages

  • Python
  • JavaScript
  • Java
  • C++

Demo

Demo link - http://54.226.233.162:8080/index.html

Installation and Setup

  1. Clone this repository:
git clone https://github.com/gitninja02/coderun.git
cd coderun
  1. Install dependencies:
mvn install
  1. Start the server:
mvn spring-boot:run

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.

Create a new branch for your feature/fix:

git checkout -b feature-new-feature
  1. Commit your changes and push to your forked repository.

  2. Submit a pull request detailing your changes.

License

This project is licensed under the MIT License.

By Hari Vishwanath

About

API to run and evaluate code in isolated docker containers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0