PruvaDocs

Local database mode

Run the app on a local Supabase with row-level security and sign in as the seeded users.

Local database mode runs the app against a real Postgres with every access rule switched on. Use it to see what each role can and cannot do.

You also need Docker, because Supabase runs its services in containers. Supabase uses ports 4420 to 4429.

Start Supabase

pnpm db:start

Apply the migrations

pnpm db:reset

This creates the schema, the row-level security policies and the guard triggers.

Load the demo fleet

pnpm db:seed

The seed uses the same generator as demo mode, so the numbers match.

Start the app

pnpm local

The app runs on http://localhost:4400 with DEMO_MODE=false.

Sign in

Every seeded user has the password pruva-local. These accounts exist only on your local database.

EmailPersonRoleWhat to try
maren@aurora-marine.exampleMaren Holt, fleet managerownerEverything, including billing
kaan@aurora-marine.exampleKaan Erdem, superintendentadminNotify crew, manage members
ravi@aurora-marine.exampleRavi Menon, chief engineermemberAcknowledge alerts, but not notify crew
sofia@aurora-marine.exampleSofia Lindqvist, emissions officermemberSubmit reports
tom@northquay.exampleTom Achebe, underwritermemberSees only the vessels shared with the insurer

Stop Supabase with pnpm db:stop when you are done.

On this page