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:startSupabase runs on ports 4220–4229. Supabase Studio is at http://localhost:4223.
Create the schema and seed it
pnpm supabase:web:reset
pnpm db:seedreset applies every migration from scratch. db:seed writes the Bright Smile Dental workspace, its people and 120 days of data.
Start the app
pnpm localOpen http://localhost:4200/app and sign in:
| Password | |
|---|---|
dana@brightsmile.example | callwise-local |
Dana is the owner. Use Supabase Studio to look at tables, or to sign in as another seeded person.
Stopping
pnpm supabase:web:stopDifferences from demo mode
| Demo mode | Local database mode | |
|---|---|---|
| Sign-in | None | Supabase Auth |
| Data | In memory, reset on restart | Postgres, kept until you reset |
| Access rules | Checked in the app | Checked in the app and enforced by Postgres |
| AI | Built-in rules | Built-in rules, or Claude with ANTHROPIC_API_KEY set |
| Phone, SMS, calendar | Simulated | Simulated |