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 iRun Docker
open -a Dockersudo systemctl start docker
# if using docker desktop:
# systemctl --user start docker-desktopEnv vars
Terminal
cp .env.example .envDefault 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-tokenLocalNet
Create a folder for canton-barebones.
Terminal
mkdir -p .canton-localnet
cd .canton-localnetThen run this command to scaffold it.
Terminal
pnpm exec canton-barebones initEdit canton-barebones.config.json: change validators.appUser.ui and sv.scanUI to true.
Start canton-barebones from .canton-localnet
Terminal
pnpm exec canton-barebones startDAR 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-*.darWallet Gateway
Start the Wallet Gateway, which is the wallet the dApp connects to.
Terminal
pnpm run wallet-gatewayBootstrap
Needs LocalNet up and running.
Terminal
pnpm run bootstrapDemo dApp
Start the Vesting demo app.
Terminal
# runs on http://localhost:3012 by default
pnpm run app:dev