This is a Next.js template simply based on ui.shadcn.com.
You can use this template as a starting point for your next project.
- Next.js@15
- Shadcn UI
- Contentlayer
- Tailwind CSS
- TypeScript
- E2E Testing with Playwright
- Better-Auth for authentication
Biome is used for linting and formatting locally.
This template includes a complete authentication system using Better-Auth, including:
- Email/password authentication
- Social login with multiple providers
- User roles and permissions
- Profile management
For development and testing purposes, this template includes a mock OAuth server that allows you to test the OAuth flow locally without relying on external providers:
-
Start the mock OAuth server:
npm run mock:oauth
-
Use the "Sign In with Local OAuth" button on the sign-in page
-
Test credentials:
- Regular User:
test@example.com/password - Admin User:
admin@example.com/password
- Regular User:
For more details on the mock OAuth server, see the scripts/README.md file.
Build command
npx tsx --tsconfig ./tsconfig.scripts.json ./src/scripts/build-registry.mts && npx next buildBuild command
tsx --tsconfig ./tsconfig.scripts.json ./src/scripts/build-registry.mts && next build