Skip to content

masum184e/nextjs-starter-template-typescript-prisma-next-auth

Repository files navigation

🚀 Next.js 16 Starter Kit — Auth.js (NextAuth v5) + Prisma + Shadcn UI

A modern, full-stack starter kit for building production-ready Next.js 16 applications with:

  • 🧩 Auth.js (NextAuth v5) for authentication
  • 🪄 Prisma ORM for database access
  • 💅 shadcn/ui for beautiful, accessible components
  • App Router & TypeScript support

📦 Tech Stack

Layer Tool
Framework Next.js 16
UI Components shadcn/ui
Authentication Auth.js (NextAuth v5)
Database ORM Prisma
Adapter @auth/prisma-adapter
Language TypeScript
Styling Tailwind CSS

🛠️ Setup Guide

1️⃣ Clone the Repository

git clone https://github.com/masum184e/nextjs-starter-template-typescript-prisma-next-auth.git
cd nextjs-starter-template-typescript-prisma-next-auth

2️⃣ Install Dependencies

Since Next.js 16 isn’t yet listed in Auth.js peer deps, use:

npm install --legacy-peer-deps

3 Run PostgreSQL in Docker

docker run -d --name postgres-db -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=mydb -p 5432:5432 postgres:16

3️⃣ Setup Environment Variables

Create a .env file in your project root:

DATABASE_URL=postgresql://postgres:postgres@localhost:5432/mydb?schema=public

GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret

NEXTAUTH_SECRET=your_random_secret
NEXTAUTH_URL=http://localhost:3000