14 unstable releases (4 breaking)

new 0.2001.3 Apr 11, 2024
0.2000.0 Jan 15, 2024
0.1000.0 Jan 15, 2024
0.1.7 Feb 16, 2023
0.0.2 Oct 29, 2022

#1530 in Magic Beans

Download history 17/week @ 2024-01-12 7/week @ 2024-02-23 3/week @ 2024-03-01 5/week @ 2024-03-29 70/week @ 2024-04-05

75 downloads per month

CAL-1.0 and AGPL-3.0 WITH mif-exception

670KB
15K SLoC

Rust 9K SLoC // 0.0% comments Handlebars 6.5K SLoC Shell 126 SLoC // 0.0% comments

Holochain Scaffolding CLI

CLI to easily generate and edit holochain apps.

Obtaining the scaffolding tool through holonix

The easiest way to start using the scaffolding tool is through holonix:

nix run github:holochain/holochain#hc-scaffold -- --version

Should print the version of the scaffolding tool.

Usage

Refer to the holochain developer instructions to know how you can use the scaffolding tool to create your own apps.

These are the commands that you can run with the scaffolding tool inside of a holonix develop shell:

# Scaffold an example app
hc scaffold example

# Scaffold an empty web-app
hc scaffold web-app forum

cd forum

# Scaffold a dna inside the newly scaffolded app
hc scaffold dna forum

# Scaffold a zome inside the newly scaffolded dna
hc scaffold zome posts

# Scaffold an entry-type inside the newly scaffolded zome
hc scaffold entry-type post

# Scaffold a collection for the newly scaffolded entry-type
hc scaffold collection global all_posts

# Scaffold a new link-type
hc scaffold link-type

Documentation

See the docs.rs documentation to learn how to use and create custom templates.

Manual installation

Install the CLI globally with this command.

cargo install holochain_scaffolding_cli

Dependencies

~111MB
~2M SLoC