This repository contains a web application built with Next.js, showcasing a responsive dashboard with data visualization, authentication, and real-time updates. The project demonstrates implementation of Next.js App Router, server components, and data fetching patterns.
This dashboard application focuses on three key aspects:
- Financial Data Management - Tracking invoices, customers, and revenue
- User Authentication - Secure login with role-based access control
- Responsive UI - Fully responsive design using Tailwind CSS
The project includes:
-
Dashboard Pages:
dashboard/page.tsx- Main dashboard with revenue metrics and latest invoicesdashboard/invoices/page.tsx- Invoice management with search and paginationdashboard/customers/page.tsx- Customer directory with search functionality
-
Authentication System:
- Role-based access control
- Secure login with credentials
- Protected routes
-
Data Visualization organized by:
- Revenue charts with time-based filtering
- Customer activity tracking
- Invoice status monitoring
- Revenue overview with charts
- Latest invoices list
- Customer activity tracking
- Search functionality
- Invoice creation and editing
- Customer information management
- Revenue tracking and visualization
- Responsive design for all devices
- Skeleton loading states
- Server-side rendering for performance
- Implemented Next.js App Router for improved routing
- Utilized React Server Components for enhanced performance
- Applied Tailwind CSS for responsive design
- Integrated authentication with NextAuth.js
- Implemented database queries with server actions
├── app/ # Main application code
│ ├── dashboard/ # Dashboard pages
│ │ ├── customers/ # Customers page
│ │ ├── invoices/ # Invoices pages
│ │ └── page.tsx # Main dashboard page
│ ├── lib/ # Utility functions and data fetching
│ ├── ui/ # UI components
│ └── layout.tsx # Root layout
├── public/ # Static assets
├── auth.ts # Authentication configuration
├── middleware.ts # Request middleware
└── next.config.ts # Next.js configuration
- Next.js - React framework with server components
- React - UI library
- TypeScript - Type-safe JavaScript
- Tailwind CSS - Utility-first CSS framework
- NextAuth.js - Authentication for Next.js
- Vercel - Deployment platform
The project includes visualizations of:
- Revenue trends over time
- Invoice status distribution
- Customer activity metrics
- Payment status tracking
- Clone this repository
- Install dependencies:
npm installorpnpm install - Set up environment variables (see
.env.example) - Run the development server:
npm run devorpnpm dev - Open http://localhost:3000 in your browser
This application is deployed on Vercel. Visit https://next-js-dashboard-git-main-kubabobs-projects.vercel.app/ to see the live version.
To test the application, you can use these credentials:
- Email: user@nextmail.com
- Password: 123456
This project is available under the MIT License.
Special thanks to the Next.js team for their excellent documentation and examples that helped in building this project.