This is a boilerplate project for building a Next.js application with NextAuth, Prisma, and Tailwind CSS. It provides a starting point for building authenticated applications
- NextAuth for authentication and authorization
- Prisma for database access and management
- Tailwind CSS for styling
- PNPM for package management
- Clone the repository:
git clone https://github.com/safarrr/nextwithnextauth.git
- Clone the repository:
cd nextwithnextauth
- Install the dependencies using PNPM:
if you want to use npm please read this
pnpm install
-
Rename the .env.example file to .env.
-
Run the database migrations
pnpm prisma migrate dev --name init
- Start the development server
pnpm dev
- NextAuth: You can configure authentication providers and options in the
src/lib/auth.ts
file.
To learn more about the tools and technologies used in this boilerplate, please refer to their official documentation: