This project is a web-based personal finance manager dashboard built using Next.js and Vercel PostgreSQL. The dashboard aggregates essential financial data to help users track metrics like profits, sales, and customer activity, and it provides easy-to-read visualizations to support data-driven decision-making.
View the live application here
Total Profit & Sales: View cumulative financial data, including total profits and sales. Monthly Sales Breakdown: See month-wise sales trends in a bar graph. Customer Insights: Track total customer count and view recent customer transactions. Recent Sales: A list of the latest transactions for quick reference.
The project uses four main tables in the Vercel PostgreSQL database:
Customers
CustomerID (Primary Key): Unique identifier for each customer.
CustomerName, Segment, Country, City, State, PostalCode.
Orders
Order_ID (Primary Key): Unique identifier for each order.
Order_Date, Ship_Date, Ship_Mode, Customer_ID (Foreign Key referencing Customers).
Products
Product_ID (Primary Key): Unique identifier for each product.
Category, Sub_Category, Product_Name.
Sales
Composite primary key: Order_ID, Product_ID.
Sales, Quantity, Discount, Profit.
Foreign keys: Order_ID (references Orders), Product_ID (references Products).
These instructions will help you set up and run the project locally.
Node.js: Version 14 or higher PostgreSQL: Version compatible with Vercel PostgreSQL
Clone the Repository
git clone https://github.com/kautilyadevaraj/DBMS_mini_project.git
cd finance-manager-dashboard
npm install
Create a PostgreSQL database and add the four tables using the provided schema. Update the database connection information in your environment file .env.local.
npm run dev
Open http://localhost:3000 to view the dashboard in your browser.
Dashboard Overview: The main dashboard displays total profits, sales, and customers. Visualizations: Monthly sales are shown in a bar graph for easy trend analysis. Recent Sales: Access a list of recent transactions, providing quick insights into recent customer activity.
Frontend: Next.js, React, Tailwind CSS Backend: Vercel PostgreSQL Database: PostgreSQL
Contributions are welcome! Please open an issue or submit a pull request.