Base app architecture:
Route groups for customer, staff and owner.
* Reusable design system with around 20 UI components.
* Complete Prisma schema.
* Authentication with email/password and Google.
* Role and permission model.
* Protected routes.
* Clean separation between features, services, components and shared utilities.
14 lines
565 B
Bash
14 lines
565 B
Bash
# Database (PostgreSQL). Prisma schema avoids Postgres-only features so this
|
|
# can be pointed at MySQL later with a provider change + `prisma migrate`.
|
|
DATABASE_URL="postgresql://user:password@localhost:5432/nextchair?schema=public"
|
|
|
|
# Auth.js (NextAuth v5). Generate with: npx auth secret
|
|
AUTH_SECRET="replace-me-with-a-32-byte-random-string"
|
|
|
|
# Google OAuth — https://console.cloud.google.com/apis/credentials
|
|
AUTH_GOOGLE_ID=""
|
|
AUTH_GOOGLE_SECRET=""
|
|
|
|
# Base URL of the app (used for callback URLs, email links, etc.)
|
|
NEXT_PUBLIC_APP_URL="http://localhost:3000"
|