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:
- Rholang/RNode version selector
- Snippet sharing through unique URLs
- Smart contract examples
- Running a contract on multiple nodes
- Support 'extended Rholang syntax' (
import
/export
)
A related tool called rholangweb is in development as well by some of the core RChain team.
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 (defaults tolatest
)
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>
GET http://rchain.cloud/v1/versions
This endpoint returns a JSON array containing all the available versions you can use to run your code. Note that these are currently equal to the Docker Hub image tags for the rchain/rnode
image.