A financial dashboard application built with the Next.js App Router. It lets you manage invoices and customers, view revenue charts, and sign in with authentication. This project is based on the official Next.js App Router Course.
URL: https://nextjs-dashboard-kappa-six-34.vercel.app/
Log in with the demo account:
- Email:
user@nextmail.com - Password:
123456
- Dashboard overview with revenue chart, latest invoices, and summary cards
- Invoices management with create, edit, delete, search, and pagination
- Customers listing
- Authentication powered by NextAuth.js
- Server Components & Server Actions for data fetching and mutations
- Responsive UI styled with Tailwind CSS
- Next.js (App Router)
- React & TypeScript
- Tailwind CSS
- PostgreSQL via the
postgresclient - NextAuth.js for authentication
- Zod for validation
- Node.js 18+
- A PostgreSQL database
- pnpm (recommended)
pnpm installCreate a .env file in the project root:
POSTGRES_URL=your_postgres_connection_string
AUTH_SECRET=your_auth_secretpnpm devOpen http://localhost:3000 in your browser.
| Command | Description |
|---|---|
pnpm dev |
Start the development server (Turbopack) |
pnpm build |
Build for production |
pnpm start |
Start the production server |
pnpm lint |
Run ESLint |
app/
├── dashboard/ # Dashboard pages (overview, invoices, customers)
├── login/ # Login page
├── ui/ # Reusable UI components
├── lib/ # Data fetching, actions, and definitions
└── layout.tsx # Root layout
This project is for learning purposes, based on the Next.js Learn course.