Skip to content
Logo

Install and run the stack, step by step

Clone the repo

Terminal
git clone git@github.com:BootNodeDev/canton-dappbooster.git <project-name>

Install

Terminal
pnpm i

Run Docker

open -a Docker

Env vars

Terminal
cp .env.example .env

Default values should be enough, except for CANTON_BACKEND_TOKEN which must be generated.

To generate it run this command and then add the token to .env

Terminal
pnpm run mint-token

LocalNet

Create a folder for canton-barebones.

Terminal
mkdir -p .canton-localnet
cd .canton-localnet

Then run this command to scaffold it.

Terminal
pnpm exec canton-barebones init

Edit canton-barebones.config.json: change validators.appUser.ui and sv.scanUI to true.

Start canton-barebones from .canton-localnet

Terminal
pnpm exec canton-barebones start

DAR build and deploy

deploy-dar requires LocalNet up and running.

Terminal
pnpm run build-dar
# use the appropriate version for amulet-vesting-*.dar
pnpm run deploy-dar -- dapp/daml/.daml/dist/amulet-vesting-*.dar

Wallet Gateway

Start the Wallet Gateway, which is the wallet the dApp connects to.

Terminal
pnpm run wallet-gateway

Bootstrap

Needs LocalNet up and running.

Terminal
pnpm run bootstrap

Demo dApp

Start the Vesting demo app.

Terminal
# runs on http://localhost:3012 by default
pnpm run app:dev