🚀 A starter kit for building modern web applications with Next.js 15, Better Auth, Prisma, and shadcn/ui.
- ✅ Next.js 15 with App Router
- ✅ Better Auth for authentication
- ✅ Prisma for database management
- ✅ shadcn/ui for UI components
- ✅ Dashboard for authenticated users
- ✅ TypeScript support
-
Clone the repository:
git clone https://github.com/Achour/nextjs-better-auth.git cd nextjs-better-auth
-
Install dependencies:
npm install
-
Set up environment variables:
cp .env.example .env
Fill in the necessary values in the
.env
file. -
Set up the database:
npx prisma migrate dev
-
Start the development server:
npm run dev
- Run
npm run dev
to start the development server. - Use
npx prisma studio
to manage your database visually. - Customize authentication using Better Auth settings.
- Next.js 15 - React framework
- Better Auth - Authentication
- Prisma - Database ORM
- shadcn/ui - UI components
- TypeScript - Type safety
Made with ❤️ by Achour Meguenni