A web-based Personal Expense Tracker built using HTML, CSS, JavaScript, FastAPI, and Matplotlib.
This application helps users manage their expenses efficiently by adding, viewing, deleting expenses, and visualizing spending patterns through graphs.
- Add new expenses with:
- Title
- Amount
- Category
- View all added expenses
- Delete expenses instantly
- Generate expense visualization graph
- Analyze spending patterns using charts
- Responsive and clean UI
- HTML5
- CSS3
- JavaScript
- FastAPI
- Python
- Matplotlib (
matplotlib.pyplot)
expense-tracker/
│
├── main.py # FastAPI backend
├── index.html # Frontend HTML
├── style.css # Styling
├── script.js # Frontend JavaScript
├── graph.py # Expense graph generation
└── README.md # Project documentationgit clone https://github.com/your-username/expense-tracker.git
cd expense-trackerpip install fastapi uvicorn matplotlibuvicorn main:app --reload- Open the frontend in browser.
- Add your expenses with title, amount, and category.
- View all expenses in the dashboard.
- Delete unwanted entries.
- Generate graph to visualize expense distribution.
The application uses Matplotlib to generate graphical representations of expenses.
- Expense comparison chart
- Spending pattern analysis
- Category-wise expense visualization
GET /expensesPOST /expensesDELETE /expenses/{expense_id}- Monthly/Yearly analytics dashboard
- Database integration (SQLite/MySQL)
- User authentication
- Export graphs as PDF/PNG
- Budget prediction using AI/ML
Developed by Your Name
This project is open-source and free to use.