New Project
Back to Templates

Next.js Postgres Auth Starter with Drizzle

Email/pass login with NextAuth.js, Drizzle, and Postgres.

DeployView Demo
opengraph-image

Next.js + PostgreSQL Auth Starter

This is a Next.js starter kit that uses NextAuth.js for simple email + password login, Drizzle as the ORM, and a Neon Postgres database to persist the data.

Deploy Your Own

You can clone & deploy it to Vercel with one click:

Developing Locally

You can clone & create this repo with the following command

npx create-next-app nextjs-typescript-starter --example "https://github.com/vercel/nextjs-postgres-auth-starter"

Getting Started

First, run the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

Learn More

To learn more about Next.js, take a look at the following resources:

  • Next.js Documentation - learn about Next.js features and API.
  • Learn Next.js - an interactive Next.js tutorial.

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

GitHub Repovercel/nextjs-postgres-auth-starter
Use Cases
StarterAuthentication
Stack
Next.jsTailwind
Database
Postgres
Auth
NextAuth.js

Related Templates

Back to Templates
DeployView Demo

Next.js Boilerplate

Get started with Next.js and React in seconds.
Next.js Boilerplate

Blog (with comments)

Next.js blog application with Auth0 and Upstash
Blog (with comments)

Admin Dashboard

Get started building your admin dashboard with Vercel's starter, complete with Tailwind CSS, PostgreSQL, and Auth.
Admin Dashboard