Expense Manager Website
A simple and interactive web-based application to manage daily expenses, track spending patterns, and visualize financial data using charts.
- Features
- 🔐 User Registration & Login System
- 💰 Add, Update, Delete Expenses
- 📊 Monthly Expense Visualization (Bar Chart)
- 🥧 Budget vs Spending Analysis (Donut Chart)
- 📁 Data stored securely using MySQL
- ⚡ Dynamic data fetching using JavaScript (Fetch API)
- 🔒 Basic password security using MD5 (can be improved)
- 🛠️ Technologies Used
- HTML
- CSS
- JavaScript
- PHP
- MySQL
- Chart.js (for data visualization)
- 📂 Project Structure
Expense-Manager/ │── index.php │── dashboard.php │── login.php │── register.php │── logout.php │── db.php │── api.php │── assets/ │ ├── css/ │ ├── js/ │── screenshots/
4. How It Works
1. User registers and logs into the system.
2. User can add daily expenses with amount and category.
3. Data is stored in MySQL database.
4. PHP APIs fetch data from database.
5. JavaScript (Fetch API) dynamically loads data.
6. Chart.js displays:
* Monthly expenses (Bar Chart)
* Budget vs Spending (Donut Chart)
# API Endpoints
* `api.php?type=monthly` → Returns monthly expense data
* `api.php?type=budget` → Returns budget vs spent data
---
# Security
* Passwords are stored using **MD5 hashing**
* ⚠️ Note: MD5 is not secure for production
* ✅ Recommended improvement: Use `password_hash()` with **bcrypt**
---
5. Future Improvements
* Use bcrypt for password security
* Add category-wise expense tracking
* Add export (PDF/Excel) feature
* Improve UI/UX design
* Add mobile responsiveness