Skip to main content

Rell web IDE

This topic covers how to run Rell web IDE in a web browser.

tip

Rell Web IDE is available at https://rellide-staging.chromia.dev/.

When you open the IDE, you see an interface as follows.

Click Create Project button.

You see a modal element where you can specify the name of the module and the language used (in this example: Rell).

For your convenience, you can include templates and the test code.

Click on the Create button.

You'll see the following screen with the pre-filled code.

Browser

To the left bar is the Browser. You can use it to work with several examples.

Editor

The Editor contains the source code template inside the central element on the right.

Buttons

On top of the Editor is a button to start a node (the green Play icon); wait to press that one. There is also a button to run tests (the grey Bug icon).

Hello World!

As a minimal first app, you can make a Hello World example focusing on Ukraine.

You see the following code in the module.rell file:

entity city { key name; }

operation insert_city (name) {
create city (name);
}

It's a small registry of cities.

Don't worry about the detail of this code yet; we'll come to it in a bit. You need to confirm that the code template is working correctly.

To run the code, you need a JavaScript test. If you switch to the Hello.js test file, you'll see it's filled with some tests written in JavaScript:

const tx = gtx.newTransaction([user.pubKey]);

tx.addOperation("insert_city", "Kiev");

tx.sign(user.privKey, user.pubKey);

return tx.postAndWaitConfirmation();

Click the Run tests icon, and a green message appears.

Congratulations! After all this work, we suggest you put relational blockchain skills on your CV.