Acme Dashboard is a responsive web application built with Next.js and TypeScript, providing comprehensive features for managing customers, invoices, and tracking revenue. It leverages Tailwind CSS for styling and Vercel Postgres for data storage. The application includes secure user authentication managed by NextAuth.
- User Authentication: Secure login system using NextAuth with credentials provider.
- Dashboard Overview: View key metrics such as total invoices, customers, and revenue.
- Customer Management: View and manage customer information.
- Invoice Management: Create, edit, and manage invoices with status tracking.
- Revenue Visualization: Interactive charts to monitor monthly revenue.
- Responsive Design: Optimized for both desktop and mobile devices.
- Skeleton Loading: Enhanced user experience with loading placeholders.
- Next.js - React framework for server-rendered applications.
- TypeScript - Typed superset of JavaScript.
- Tailwind CSS - Utility-first CSS framework.
- NextAuth - Authentication for Next.js applications.
- Vercel Postgres - Managed PostgreSQL database.
- Heroicons - Beautiful SVG icons.
-
Clone the Repository
git clone https://github.com/yourusername/acme-dashboard.git cd acme-dashboard
-
Install Dependencies
pnpm install # or npm install # or yarn install
-
Set Up Environment Variables
Create a
.env.local
file in the root directory and add the following:DATABASE_URL=your_vercel_postgres_connection_string NEXTAUTH_SECRET=your_nextauth_secret
-
Run Database Migrations and Seed Data
pnpm run seed # or npm run seed # or yarn seed
-
Start the Development Server
pnpm dev # or npm run dev # or yarn dev
Open http://localhost:3000 in your browser to view the application.
-
Login
Navigate to
/login
and use the following credentials:Email: [email protected] Password: 123456
-
Dashboard
Access the dashboard at
/dashboard
to view an overview of invoices, customers, and revenue. -
Manage Customers
Go to
/dashboard/customers
to view and manage customer data. -
Manage Invoices
Visit
/dashboard/invoices
to view, create, and edit invoices.
Contributions are welcome! Please open an issue or submit a pull request for any changes or improvements.
This project is licensed under the MIT License.