An open API service indexing awesome lists of open source software.

https://github.com/axelker/next-js-dashboard-better-auth-stripe

This is a demo application based on the official Next.js dashboard example, extended with modern tooling , BeeterAuth authentication, stripe subscription and key features for a full-stack app.
https://github.com/axelker/next-js-dashboard-better-auth-stripe

betterauth neon nextjs postgresql prisma saas-boilerplate stripe vercel

Last synced: 6 months ago
JSON representation

This is a demo application based on the official Next.js dashboard example, extended with modern tooling , BeeterAuth authentication, stripe subscription and key features for a full-stack app.

Awesome Lists containing this project

README

          

# Next.js Demo Dashboard App

![App Screenshot](docs/dashboard.png)

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.

[Demo](https://next-js-dashboard-learn-pied.vercel.app/signup)
## Features

- **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

---

## Getting Started

### Install dependencies

You can use either `pnpm` or `npm`:

```bash
pnpm i
```

### Development server
```bash
pnpm dev
```

## Configuration
### Environment Variables
Create a .env file in the root with the following varibles in the ``.env.sample```

## Prisma ORM
The Prisma schema is located in prisma/schema.prisma.

To generate the Prisma client:

```bash
pnpm run prisma:generate
```