Skip to content

IamNotShady/nextjs-dashboard

Repository files navigation

Next.js Dashboard

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.

Live Demo

URL: https://nextjs-dashboard-kappa-six-34.vercel.app/

Log in with the demo account:

  • Email: user@nextmail.com
  • Password: 123456

Features

  • 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

Tech Stack

Getting Started

Prerequisites

  • Node.js 18+
  • A PostgreSQL database
  • pnpm (recommended)

Installation

pnpm install

Environment Variables

Create a .env file in the project root:

POSTGRES_URL=your_postgres_connection_string
AUTH_SECRET=your_auth_secret

Development

pnpm dev

Open http://localhost:3000 in your browser.

Scripts

Command Description
pnpm dev Start the development server (Turbopack)
pnpm build Build for production
pnpm start Start the production server
pnpm lint Run ESLint

Project Structure

app/
├── dashboard/    # Dashboard pages (overview, invoices, customers)
├── login/        # Login page
├── ui/           # Reusable UI components
├── lib/          # Data fetching, actions, and definitions
└── layout.tsx    # Root layout

License

This project is for learning purposes, based on the Next.js Learn course.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages