Listoca

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 install

template: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 dev

It 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.

The first start creates the demo accounts.

3. Run the native app

bun run ios        # or: bun run android

The 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:3048

On 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 verify

Format, lint, translations, types, unit tests, database tests (against the running stack) and the builds. See testing.

On this page