- Next.js 13 (with app router)
- NextAuth.js (with custom roles)
- Prisma (Postgres)
- Create a new
.env.local
file then add the following values to it:
NEXTAUTH_SECRET=your-secret-key
NEXTAUTH_URL=http://localhost:3000
POSTGRES_PRISMA_URL=your-db-url
POSTGRES_URL_NON_POOLING=your-db-url
[email protected]
EMAIL_SERVER=smtp://your-username:[email protected]:587
- Run Prisma to prototype a new schema:
pnpm prisma-db-push
- Start a local dev server:
pnpm install
pnpm dev