🚀 Simple Next.js 13 App Router starter kit that uses NextAuth.js for auth, Prisma as the ORM, and Vercel Postgres as a database. 🚀
https://github.com/coding-to-music/auth-postgres-prisma-nextjs
https://auth-postgres-prisma-nextjs.vercel.app
From / By https://vercel.com/templates/next.js/prisma-postgres-auth-starter
https://github.com/vercel/nextjs-postgres-auth-starter
https://nextjs-postgres-auth.vercel.app/
nvm use 18
see .env-example
# Used by Prisma:
# url = env("POSTGRES_PRISMA_URL") // uses connection pooling
# directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection
# shadowDatabaseUrl = env("POSTGRES_URL_NON_POOLING") // used for migrations
# Create a Postgres database on Vercel: https://vercel.com/postgres
POSTGRES_PRISMA_URL=
POSTGRES_URL_NON_POOLING=
# Generate one here: https://generate-secret.vercel.app/32 (only required for localhost)
NEXTAUTH_SECRET=
git init
git add .
git remote remove origin
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:coding-to-music/auth-postgres-prisma-nextjs.git
git push -u origin main
This is a Next.js starter kit that uses Next-Auth for simple email + password login
Prisma as the ORM, and a Vercel Postgres database to persist the data.
You can clone & deploy it to Vercel with one click:
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"
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
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!