First follow the instructions in our GitBook to install:
- cargo
- brew
- jq
- sfoundryup to install:
- sanvil
- sforge
First install bun:
curl -fsSL https://bun.sh/install | bashThen from project root, run:
bun installNote: Run all bun install commands from root. The only node_modules/ with your JS packages should be the one at root. vite will create temp files in packages/web/node_modules, but that's all that should live there
Start sanvil, storing blockchain state to a local JSON:
mkdir -p ~/.anvil && sanvil --state ~/.anvilCopy over the .env.anvil to .env for deploying to anvil:
cp .env.anvil .envDeploy the contract:
bun contract:deployStart local development server:
bun web:devStart backend:
cargo run --bin server