Admin · locked

Connect the database to open the admin

The DR K-Beauty Essentials admin manages products, offers, and guides. It is locked until the Postgres database is connected and you sign in as an admin.

To enable it

  1. Point DATABASE_URL at your Postgres database (e.g. postgres://oppagift:password@localhost:5432/oppagift).
  2. Run pnpm db:setup once to create the schema and seed the sample catalog.
  3. Set ADMIN_PASSWORD and ADMIN_SESSION_SECRET so you can sign in and save changes.

To preview the admin locally without saving, set ADMIN_PREVIEW=true in .env.local. Never enable preview mode in production.