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.
- Clone the repository:
git clone https://github.com/moshefortgang/next15-nextauth5-drizzle-shadcn.git cd next15-nextauth5-drizzle-shadcn
- Copy the
.env.example
file and rename it to.env
:cp .env.example .env
- 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
- Apply migrations (if applicable):
pnpm drizzle:push
- Run the app:
pnpm dev
This project uses Jest for unit testing.
To run tests, use the following command:
pnpm test