openrepl![Gitter](https://camo.githubusercontent.com/fa1ffba48d1784180f1a25f5b4d8f963206c685b1487f76ceb570658f59ccad6/68747470733a2f2f6261646765732e6769747465722e696d2f6f70656e7265706c2f6f70656e7265706c2e737667)
OpenRepl REPL is an online REPL where you can run code in a variety of programming languages on the web.
How to use
Towards the write is an editor. There, you can write code. Press run to run this code, and a terminal will pop up below the editor running your code. Press "Switch Language" to change to a different programming language.
There is also an interactive terminal in the selected programming language on the right.
Deploying
To deploy a copy of the site, you will need a working Docker install with Docker Compose. Run the following command in the repo root to deploy:
make && docker-compose up -d
To update, simply rerun this command in the updated repo.
To tear down the deployment, you can run this command in the repo root:
docker-compose down
Editor keybinding
- Ctrl/Cmd-S - save
- Ctrl/Cmd-R - run
- Ctrl/Cmd-F - find
Adding examples
To add an example, add a source code file to server/examples/examples
or a subdirectory of this.
To tag this example, add another file with the same name and the secondary extension .tags
.
Each line in a .tags
file will be interpreted as a seperate tag.
Blank lines in a .tags
file will be ignored.
After the examples have been added, redeploy the REPL.