Skip to main content

create-rell-dapp

Usage: chr create-rell-dapp [OPTIONS] [NAME]

Generates a template project

Template projects:
Minimal - Minimal working example including sample queries/operations and
tests.
Plain - A plain skeleton with empty main and test files.
Plain-Multi - A plain skeleton with empty main and test files using multiple
modules.

╭─ Options ───────────────────────────────────────────────────────────────────╮
│ -d, --base-dir=PATH Directory to generate template project in (default: │
│ /usr/app)
--template=(plain|plain-multi|minimal)
│ Project template (default: MINIMAL)
│ -h, --help Show this message and exit
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Arguments ─────────────────────────────────────────────────────────────────╮
│ NAME Dapp name (default: my-rell-dapp)
╰─────────────────────────────────────────────────────────────────────────────╯

You can use the create-rell-dapp command (chr create-rell-dapp) to create a new Rell structured "Hello World" project. It creates a project config file (chromia.yml), a main module (main.rell) in the src/ folder, and test files in the src/test/ folder in your working directory.

chr create-rell-dapp

The project structure is as follows:

|--chromia.yml
|--_src
|--main.rell
|--_test
|--arithmetic_test.rell
|--data_test.rell