Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Boilerplate for a Next.js 15 app with NextAuth.js authentication and Prisma Postgres CRUD.
Next.js & Prisma Postgres Auth Starter is a boilerplate that pairs Next.js 15, NextAuth.js v4, and Prisma Postgres so you can launch a full-stack app with authentication and database CRUD out of the box.
This boilerplate bundles Next.js 15 (with App Router, Server Actions, and API Routes), NextAuth.js v4 for authentication, and Prisma Postgres plus Prisma ORM for data access. It produces a working demo app where users can log in, sign up, and perform create, view, and delete operations on blog posts stored in a Prisma Postgres database. The project is designed to be deployed to Vercel and is maintained by Prisma's team.
AUTH_SECRET environment variable, generated with npx auth secret.DATABASE_URL that uses the prisma+postgres protocol.npx prisma migrate dev --name init to create and apply the initial schema.npx prisma db seed populates initial data so demo routes work immediately.After cloning the repository, run npm install, then npx prisma init --db to create a Prisma Postgres instance and retrieve its DATABASE_URL. Set the DATABASE_URL and AUTH_SECRET in a .env file, run npx prisma migrate dev --name init to create tables, npx prisma db seed to add sample data, and npm run dev to start the development server at http://localhost:3000.
