{"id":18756875,"url":"https://github.com/aiursoftweb/cpprunner","last_synced_at":"2025-04-13T02:05:13.579Z","repository":{"id":213789229,"uuid":"734415266","full_name":"AiursoftWeb/CppRunner","owner":"AiursoftWeb","description":"CppRunner is a simple Web app that can run code for you. It's based on .NET and Docker. With CppRunner, you can start testing a piece of code in seconds without setting up your environment. Now supports 15 languages. Mirror of: https://gitlab.aiursoft.cn/aiursoft/CppRunner","archived":false,"fork":false,"pushed_at":"2024-10-24T07:00:19.000Z","size":466,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-25T03:19:21.968Z","etag":null,"topics":["coding","csharp","debugging","docker","lab","web"],"latest_commit_sha":null,"homepage":"https://cpprunner.aiursoft.cn/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AiursoftWeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-21T16:11:40.000Z","updated_at":"2024-10-24T07:00:23.000Z","dependencies_parsed_at":"2024-06-13T09:42:12.084Z","dependency_job_id":"f4b8d008-98e5-4afa-8269-c53b9623dd44","html_url":"https://github.com/AiursoftWeb/CppRunner","commit_stats":null,"previous_names":["aiursoftweb/cpprunner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiursoftWeb%2FCppRunner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiursoftWeb%2FCppRunner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiursoftWeb%2FCppRunner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AiursoftWeb%2FCppRunner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AiursoftWeb","download_url":"https://codeload.github.com/AiursoftWeb/CppRunner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223560570,"owners_count":17165483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coding","csharp","debugging","docker","lab","web"],"created_at":"2024-11-07T17:38:25.752Z","updated_at":"2025-04-13T02:05:13.573Z","avatar_url":"https://github.com/AiursoftWeb.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CppRunner\n\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitlab.aiursoft.cn/aiursoft/cpprunner/-/blob/master/LICENSE)\n[![Pipeline stat](https://gitlab.aiursoft.cn/aiursoft/cpprunner/badges/master/pipeline.svg)](https://gitlab.aiursoft.cn/aiursoft/cpprunner/-/pipelines)\n[![Test Coverage](https://gitlab.aiursoft.cn/aiursoft/cpprunner/badges/master/coverage.svg)](https://gitlab.aiursoft.cn/aiursoft/cpprunner/-/pipelines)\n[![ManHours](https://manhours.aiursoft.cn/r/gitlab.aiursoft.cn/aiursoft/cpprunner.svg)](https://gitlab.aiursoft.cn/aiursoft/cpprunner/-/commits/master?ref_type=heads)\n[![Website](https://img.shields.io/website?url=https%3A%2F%2Fcpprunner.aiursoft.cn%2F)](https://cpprunner.aiursoft.cn)\n[![Docker](https://img.shields.io/docker/pulls/aiursoft/cpprunner.svg)](https://hub.docker.com/r/aiursoft/cpprunner)\n\nCppRunner is a simple Web app that can run code for you. It's based on .NET and Docker. With CppRunner, you can start testing a piece of code in seconds without setting up your environment. Now supports 15 languages.\n\n![overview](./screenshot.png)\n\n## Try\n\nTry a running CppRunner [here](https://cpprunner.aiursoft.cn).\n\n## Run in Ubuntu\n\nThe following script will install\\update this app on your Ubuntu server. Supports Ubuntu 22.04.\n\nOn your Ubuntu server, run the following command:\n\n```bash\ncurl -sL https://gitlab.aiursoft.cn/aiursoft/cpprunner/-/raw/master/install.sh | sudo bash\n```\n\nOf course it is suggested that append a custom port number to the command:\n\n```bash\ncurl -sL https://gitlab.aiursoft.cn/aiursoft/cpprunner/-/raw/master/install.sh | sudo bash -s 8080\n```\n\nIt will install the app as a systemd service, and start it automatically. Binary files will be located at `/opt/apps`. Service files will be located at `/etc/systemd/system`.\n\n## Run manually\n\nRequirements about how to run\n\n1. Install [Docker](https://www.docker.com/)\n2. Run `sudo docker build -t cpprunner .` in the project path to build the image from source.\n3. Run `sudo docker run -it -p 5000:5000 -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock cpprunner` in the project path.\n4. Open `http://localhost:5000` in your browser to test the app.\n\n## Run in Docker\n\nFirst, install Docker [here](https://docs.docker.com/get-docker/).\n\nThen run the following commands in a Linux shell:\n\n```bash\nimage=aiursoft/cpprunner\nappName=cpprunner\nsudo docker pull $image\nsudo docker run -d --name $appName --restart unless-stopped -p 5000:5000 -v /var/www/$appName:/data -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock $image\n```\n\nThat will start a web server at `http://localhost:5000` and you can test the app.\n\nThe docker image has the following context:\n\n| Properties  | Value                                  |\n|-------------|----------------------------------------|\n| Image       | aiursoft/cpprunner                     |\n| Ports       | 5000                                   |\n| Binary path | /app                                   |\n| Data path   | /data                                  |\n| Config path | /data/appsettings.json                 |\n| Passthrough | /var/run/docker.sock (For Docker)      |\n| Passthrough | /tmp (For saving code with Docker)     |\n\n## Run in Microsoft Visual Studio\n\n1. Open the `.sln` file in the project path.\n2. Press `F5` to run the app.\n\n## How to contribute\n\nThere are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.\n\nEven if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.\n\nWe're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiursoftweb%2Fcpprunner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiursoftweb%2Fcpprunner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiursoftweb%2Fcpprunner/lists"}