Deploy Anywhere

About CppRunner

CppRunner is a code runner on the web. It is designed to run C++ code snippets and provide a simple interface for users to test their code online.

Recommended
Run in Docker

First, install Docker. Then run the following commands in a Linux shell:

image=aiursoft/cpprunner
appName=cpprunner
docker pull $image
docker run -d --name $appName -v /var/run/docker.sock:/var/run/docker.sock --restart unless-stopped -p 5000:5000 -v /var/www/$appName:/data -v /tmp:/tmp $image

That will start a web server at http://localhost:5000 and you can test the app.

The default username is: admin@default.com, and the default password is: admin123.

Container Context
Property Value
Image aiursoft/cpprunner
Ports 5000
Binary path /app
Data path /data
Config path /data/appsettings.json
Run in Ubuntu

The following script will install/update this app on your Ubuntu server. Supports Ubuntu 25.04.

curl -sL https://gitlab.aiursoft.com/aiursoft/cppRunner/-/raw/master/install.sh | sudo bash

Or with a custom port:

... | sudo bash -s 8080
Systemd /opt/apps
Contribute

We're interested in your feedback! You can submit a suggestion or feature request through the issue tracker.

Report Issue Pull Request
Development & Manual Run
Prerequisites
Run Manually
  1. Execute `npm install` at `wwwroot` folder.
  2. Execute `dotnet run` to run the app.
  3. Visit http://localhost:5000.
Run in Visual Studio
  1. Open the `.sln` file.
  2. Press `F5` to run the app.
Always create a personal fork before submitting PRs.