A modern dashboard starter kit built with Next.js 15, Better Auth, and shadcn/ui components.
- ✅ Next.js 15 with App Router
- ✅ Better Auth for authentication (email/password + Google OAuth)
- ✅ Dark/Light Mode with system preference detection
- ✅ shadcn/ui components with Tailwind CSS
- ✅ Drizzle ORM with PostgreSQL
- ✅ Responsive Design with mobile-first approach
- ✅ TypeScript for type safety
-
Clone the repository
-
Install dependencies:
npm install # or bun install -
Set up environment variables:
cp .env.example .env.local
-
Configure your database and auth providers in
.env.local -
Run database migrations:
npm run db:push
-
Start the development server:
npm run dev # or bun dev
src/
├── app/ # Next.js App Router pages
│ ├── (auth)/ # Authentication pages
│ ├── dashboard/ # Dashboard pages
│ └── layout.tsx # Root layout
├── components/ # Reusable components
│ ├── ui/ # shadcn/ui components
│ └── marketing-page/ # Landing page components
├── features/ # Feature-specific code
│ └── auth/ # Authentication features
├── lib/ # Utility functions and configurations
└── db/ # Database schema and configuration
The starter kit includes:
- Email/password authentication
- Google OAuth integration
- Session management
- Protected routes
Uses Drizzle ORM with PostgreSQL. The schema includes:
- User management
- Session handling
- Account linking
This is a clean starter kit ready for your customizations:
- Add your own dashboard pages
- Extend the database schema
- Customize the UI components
- Add new features and functionality
MIT