Skip to content

A Next.js Authentication starter template. Includes Drizzle, MySql, TanStack Query, TailwindCSS, shadcn/ui, zod and React Hook Form.

Notifications You must be signed in to change notification settings

faisalfjri/next-auth-drizzle

Repository files navigation

Next.js + Drizzle Auth Starter

A Next.js Authentication starter template. Includes Drizzle, MySql, TanStack Query, TailwindCSS, shadcn/ui, zod and React Hook Form.

Getting Started

copy the .env.example file to .env

MYSQL_HOST=localhost
MYSQL_USER=root
MYSQL_PASSWORD=123456
MYSQL_DATABASE=next-drizzle

SESSION_SECRET_KEY=your-secret-key

Install dependencies

pnpm install

Generate the Drizzle

pnpm db:generate

Migrate Database with Drizzle

pnpm db:migrate

Run the development server:

pnpm dev

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

Reference

Learn More

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

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

About

A Next.js Authentication starter template. Includes Drizzle, MySql, TanStack Query, TailwindCSS, shadcn/ui, zod and React Hook Form.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published