This is a demo application based on the official Next.js dashboard example, extended with modern tooling and key features for a full-stack app.
- Next.js App Router (app directory)
- Better Auth for user authentication
- Prisma ORM for database management
- PostgreSQL as the relational database
- Full Sign Up / Login flow
- OAuth login with GitHub and Google
- Stripe integration for paid subscriptions
- Responsive and accessible UI
- Server Actions (
useActionState
) for form handling
You can use either pnpm
or npm
:
pnpm i
pnpm dev
Create a .env file in the root with the following varibles in the ``.env.sample```
The Prisma schema is located in prisma/schema.prisma.
To generate the Prisma client:
pnpm run prisma:generate