Skip to content

Full-stack web app template using Next.js 15, React 19, NextAuth 5, Drizzle ORM, Shadcn/UI, PostgreSQL, and Jest. Built with TypeScript for modern, scalable, and type-safe development.

Notifications You must be signed in to change notification settings

moshefortgang/nextjs-nextauth-drizzle-shadcn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js 15 + NextAuth 5 + Drizzle + Shadcn/UI + Jest

A modern stack for building full-stack web applications with:

  • Next.js for performance and scalability.
  • React for a powerful and flexible UI framework.
  • Auth.js for authentication.
  • PostgreSQL for reliable and scalable database solutions.
  • Drizzle ORM for type-safe database management.
  • Shadcn/UI for beautiful, customizable components.
  • Jest A testing framework for ensuring your app works as expected.

Getting Started

  1. Clone the repository:
    git clone https://github.com/moshefortgang/next15-nextauth5-drizzle-shadcn.git
    cd next15-nextauth5-drizzle-shadcn
    
  2. Copy the .env.example file and rename it to .env:
    cp .env.example .env
    
  3. Configure the .env file with your values:
    Open the .env file and fill in the following variables:
    # Create a Postgres database on Vercel: https://vercel.com/postgres
    POSTGRES_URL=your_postgresql_database_url
    
    # Generate one here: https://generate-secret.vercel.app/32 (only required for localhost)
    AUTH_SECRET=your_secret_key
    
    AUTH_GOOGLE_ID=your_google_client_id
    AUTH_GOOGLE_SECRET=your_google_client_secret
    
  4. Apply migrations (if applicable):
    pnpm drizzle:push
    
  5. Run the app:
    pnpm dev
    

Running Tests:

This project uses Jest for unit testing.

To run tests, use the following command:

pnpm test

About

Full-stack web app template using Next.js 15, React 19, NextAuth 5, Drizzle ORM, Shadcn/UI, PostgreSQL, and Jest. Built with TypeScript for modern, scalable, and type-safe development.

Topics

Resources

Stars

Watchers

Forks