Web interface to play with the Rholang language.
Just want to play around with Rholang? Simply go to rchain.cloud.
If you want to help develop rchain.cloud, or run your own instance, follow these instructions:
- Ensure Docker and Node.JS (version 8 or above) are installed on your machine.
- Clone the Github repo to your desired location using
git clone https://github.com/th3build/rchain.cloud
. - Install NPM dependencies:
npm install
- Run it:
PORT=8080 npm start
There's always stuff that you can help develop.
Mayor features that are planned:
- Snippet sharing through unique URLs
- Support 'extended Rholang syntax' (
import
/export
)
You can send a POST request to http://rchain.cloud/
to seed the editor with certain content. The POST body should be form-encoded, and can contain the following parameters:
content
: the code you want to show in the editorversion
: the Docker image tag you want to use to run your code (only supportslatest
at the moment)
This functionality allows you to create a 'Run on RChain.cloud' button. Usually this is done using a hidden HTML form:
<form target="_blank" method="POST" action="http://rchain.cloud/">
<input type="hidden" name="content" value="Your code here!" />
<input type="hidden" name="version" value="latest" />
<input type="submit" value="Run on RChain.cloud" />
</form>