Scaffold a new Mero app from a starter template
npm install @calimero-network/create-mero-appScaffold a Calimero KV Store demo app with an interactive template selector, by cloning a starter repo and copying its files (Git artifacts excluded).
Using npx (recommended):
``bash`
npx create-mero-app@latest example-app
You will be prompted to select a backend template (default: Rust):
`text`
Select backend template
❯ Rust (kv-store)
JavaScript (kv-store-js)
To skip the prompt, pass --template:
`bash`
npx create-mero-app@latest example-app --template rust
npx create-mero-app@latest example-app --template javascript
From a local checkout:
`bash`
pnpm --filter create-mero-app build
node create-mero-app/dist/cli.mjs example-app
This will:
- Clone the selected template repo to a temp directory:
- Rust: https://github.com/calimero-network/kv-storehttps://github.com/calimero-network/kv-store-js
- JavaScript: my-kv-store
- Copy contents into (excluding .git, .github, .gitignore, .gitattributes, .gitmodules, node_modules)package.json
- Set the generated name to my-kv-store if present
bash
cd my-kv-store
pnpm install
cd logic && chmod +x ./build.sh && ./build.sh
cd ../app && pnpm build && pnpm dev
``