The Design System You Need
This is a Next.js project bootstrapped with create-next-app.
- 🔸 Includes all styles
- 🔸 Ready-to-use Tailwind setup
- 🔸 All base components included
- 🔸 All utils included
- 🔸 Inter font setup
- 🔸 Dark mode toggle included
- 🔸 Email + password authentication with Better Auth
- 🔸 Prisma ORM configured with SQLite
This starter ships with Better Auth wired up for email + password flows:
auth.tsdefines the Better Auth instance using the Prisma adapter.app/api/auth/[...all]/route.tsexposes the auth handlers for Next.js App Router routes.- Sign-in and sign-up pages live in
app/sign-in/page.tsxandapp/sign-up/page.tsx, respectively.
The setup supports session management via the Session model and links to additional identity providers through the Account model. Extend auth.ts to add OAuth providers, password reset logic, or custom flows.
Prisma handles all database access with a SQLite datasource (prisma/schema.prisma):
- Generated Prisma Client is output to
lib/generated/prisma. lib/prisma.tsensures a singleton Prisma Client across serverless hot reloads.- The default
.env.localpointsDATABASE_URLtofile:./prisma/sqlite.db; update it if you switch databases.
Use Prisma CLI commands via pnpm prisma for schema updates, migrations, and seeding.
- Install dependencies
pnpm i-
Configure environment variables
Copy
.env→.env.localand adjust secrets as needed. EnsureDATABASE_URLreflects your SQLite file (defaultfile:./prisma/sqlite.db). -
Prepare the database
pnpm prisma db push
pnpm prisma generate- Run the development server
pnpm dev-
Visit the app
Open http://localhost:3000 to access the sign-in and sign-up flows backed by Better Auth and Prisma.