Finish setting up

This install is not connected to a restaurant yet. Four steps and you are ordering.

Setup checklist

Environment incomplete
  1. 1. Connect Supabase

    Set NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY in .env.local, from Project settings → API.

  2. 2. Add the service role key

    SUPABASE_SERVICE_ROLE_KEY lets the server read and write past row level security. It must never reach the browser.

  3. 3. Generate an encryption key

    Run `npm run gen:secret` and put the result in APP_ENCRYPTION_KEY.

  4. 4. Create the schema and seed data

    Set DATABASE_URL, then run `npm run db:push` followed by `npm run db:seed`.

Quick start

cp .env.example .env.local
npm run gen:secret    # APP_ENCRYPTION_KEY
npm run gen:vapid     # web push keys (optional)

# fill in .env.local, then:
npm run db:push
npm run db:seed
npm run dev

Seed credentials are for development

npm run db:seed creates a super admin from SEED_ADMIN_EMAIL and SEED_ADMIN_PASSWORD. Change that password before putting this anywhere public.