Installation
Create your project from the template and run it locally.
Prerequisites
- Bun 1.4 or newer
- Docker for the local Supabase stack and PowerSync
- The Supabase CLI
- For the native app: Xcode or Android Studio. The app needs a development build; Expo Go can't load its native modules (the local database, purchases, sign-in with Apple).
1. Create your project
git clone <template-repo> acme && cd acme
bun install
bun run template:init acme --display-name "Acme"
bun installtemplate:init renames the project and asks which parts to keep: the web app and its companion,
payments and web billing, the no-account mode, push notifications, uploads, AI chat, feature
flags, the contact form, analytics providers and the docs.
2. Start everything
bun run devIt starts the local Supabase stack (Postgres, Auth, Storage, Edge Functions, a mail inbox), the
PowerSync service, a watcher that rebuilds the Edge Functions, and the web apps. In a terminal
it opens mprocs: pick a process on the left to see its output, powersync for the sync
service's log.
| App | URL |
|---|---|
| Web app | http://localhost:3021 |
| Marketing site | http://localhost:3022 |
| Docs | http://localhost:3024 |
| Mail inbox | http://localhost:3044 |
| Supabase Studio | http://localhost:3043 |
The first start creates the demo accounts.
3. Run the native app
bun run ios # or: bun run androidThe first build takes a while (pod install needs LANG=en_US.UTF-8; the Android build needs
JDK 17 as JAVA_HOME). The iOS simulator reaches your machine's localhost. The Android emulator
has a localhost of its own; forward the stack's ports into it once per emulator start:
adb reverse tcp:3041 tcp:3041 && adb reverse tcp:3048 tcp:3048On a phone, set EXPO_PUBLIC_SUPABASE_URL and EXPO_PUBLIC_POWERSYNC_URL in
apps/native/.env to your machine's LAN address.
The app opens without an account. Sign in from the drawer to sync.
4. Check it
bun run verifyFormat, lint, translations, types, unit tests, database tests (against the running stack) and the builds. See testing.