CallwiseDocs

Local database mode

Run the app against a local Supabase with real sign-in and row level security.

In local database mode the app reads and writes a Postgres database through Supabase, with sign-in and the security rules enforced by the database. The data is seeded from the same generator the demo uses.

You need Docker running.

Start Supabase

pnpm supabase:web:start

Supabase runs on ports 4220–4229. Supabase Studio is at http://localhost:4223.

Create the schema and seed it

pnpm supabase:web:reset
pnpm db:seed

reset applies every migration from scratch. db:seed writes the Bright Smile Dental workspace, its people and 120 days of data.

Start the app

pnpm local

Open http://localhost:4200/app and sign in:

EmailPassword
dana@brightsmile.examplecallwise-local

Dana is the owner. Use Supabase Studio to look at tables, or to sign in as another seeded person.

Stopping

pnpm supabase:web:stop

Differences from demo mode

Demo modeLocal database mode
Sign-inNoneSupabase Auth
DataIn memory, reset on restartPostgres, kept until you reset
Access rulesChecked in the appChecked in the app and enforced by Postgres
AIBuilt-in rulesBuilt-in rules, or Claude with ANTHROPIC_API_KEY set
Phone, SMS, calendarSimulatedSimulated

On this page