Skip to content

janavigopu/Budget-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’° Budget Tracker App

Track your income & expenses with a clean Java + JDBC console app!


✨ Overview

A minimalist Budget Tracker application built with pure Java and JDBC.
No frameworks, just clean and simple code to help you practice Java, database connectivity, and structured programming.

πŸ’‘ Perfect for beginners who want to understand Java-MySQL integration from scratch.


πŸš€ Features

βœ… Add & View Expenses
βœ… Add & View Income
βœ… Generate Budget Reports (Income, Expenses, Balance)
βœ… Console-based user interface
βœ… Uses MySQL + JDBC (no frameworks!)


πŸ›  Tech Stack

Tech Description
🧠 Java Core logic and object handling
πŸ›’ MySQL Database storage for income/expenses
πŸ”Œ JDBC Java Database Connectivity
πŸ’» Console Interactive CLI menu

🧾 Database Schema

πŸ“‚ expenses Table

CREATE TABLE income (
  id INT AUTO_INCREMENT PRIMARY KEY,
  source VARCHAR(100),
  amount DOUBLE,
  date DATE
);

CREATE TABLE expenses (
  id INT AUTO_INCREMENT PRIMARY KEY,
  category VARCHAR(100),
  amount DOUBLE,
  date DATE
);

πŸ§ͺ Sample Output

===== Budget Tracker =====

  1. Add Expense
  2. View Expenses
  3. Add Income
  4. View Income
  5. Generate Report
  6. Exit

Enter your choice: 5

=== Budget Report ===

Total Income: $5000.00

Total Expenses: $1500.00

Net Balance: $3500.00


🧰 How to Run

  1. Clone this repo: git clone https://github.com/janavigopu/BudgetTracker.git
  2. Open in Eclipse or your favorite IDE
  3. Update DB credentials in Database.java:
private static final String USER = "your_mysql_user";

private static final String PASSWORD = "your_mysql_password";
  1. Create DB tables using the SQL provided above or in setup.sql.
  2. Run Main.java and start tracking!

πŸ’‘ Future Ideas

πŸ—‘οΈ Delete & Update income/expenses

πŸ“… Monthly filters for reports

πŸ“Š Export to CSV for offline tracking

πŸ–₯️ GUI version using JavaFX or Swing


🀝 Contribution

Found a bug? Got an idea? Feel free to fork and open a PR!

Let’s build better budgeting together πŸ’ͺ


πŸ“¬ Contact

Made with β˜• by Janavi G

πŸ”— LinkedIn

🌐 GitHub

πŸ“§ Mail


πŸ“„ License

MIT License Β© 2025 β€” Free to use & modify!

About

🎯 A simple Java + JDBC based Budget Tracker to manage income, expenses, and generate reports β€” no frameworks, just clean code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages