Your First App
Scaffold, run, and deploy a Bkper platform app in minutes. This is a thin walkthrough — deep reference for each topic lives in the other App docs.
This tutorial walks you through building and deploying a Bkper app from scratch. For the deep reference on any topic — architecture, configuration, development, events, or deployment — follow the links in each step.
Prerequisites
Development Setup — the CLI installed and authenticated.
Walkthrough
-
Scaffold from the template
Terminal window bkper app init my-appcd my-appThe CLI sets your app ID, package name, URLs, and event-handler loop guards automatically. See App Configuration for the full
bkper.yamlreference. -
Start developing
Terminal window npm run devThis runs the Vite client dev server and the local worker runtime with automatic webhook tunneling. See Development Experience for details.
-
Open the app
Visit http://localhost:5173. Select a book to see account balances. No OAuth setup required — the platform handles authentication.
-
Trigger an event
Go to any Bkper book and check (reconcile) a transaction. Your local event handler receives the webhook via the tunnel and creates a 20% draft transaction. See Event Handlers for the full event model.
-
Make a change
Edit the handler in
packages/events/src/handlers/transaction-checked.tsand save. The worker reloads automatically. Check another transaction to see your change. -
Customize your listing
Update
bkper.yamlwith your app’s description, owner details, and repository URL. Replace the placeholder logos inpackages/web/client/public/images/. See App Listing for publishing details. -
Update the README
Edit
README.mdfor end users — what the app does and how to use it. Keep developer docs inAGENTS.md. -
Deploy
Terminal window npm run buildbkper app syncbkper app deployYour app is live at
https://my-app.bkper.app. See Building & Deploying for preview environments, secrets, and KV.
What you built
| You wrote | Platform handled |
|---|---|
| ~30 lines of UI | OAuth, consent screen, token refresh |
| ~40 lines of event logic | Hosting, SSL, edge routing |
bkper.yaml | Webhook tunnels, KV, type generation |
Next steps
- App Architecture — Understand the three-package pattern
- App Configuration — Full
bkper.yamlreference - Event Handlers — All event types and patterns
- Building & Deploying — Preview environments and secrets