Skip to content

A Streamlit-powered personal expense tracker with a MySQL backend, featuring interactive charts, stats, and a clean UI to help you manage your spending.

Notifications You must be signed in to change notification settings

Harinineon/ExpenseTracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💸 Expense Tracker (Streamlit + MySQL)

A multipage expense tracking web app built with Streamlit and MySQL.
Easily track your expenses, analyze spending patterns, and visualize data with interactive charts.

🚀 Features

  • ✅ Add, search, and view expenses
  • ✅ Interactive charts (Pie, Bar, Line)
  • ✅ Expense statistics & metrics
  • ✅ MySQL database backend
  • ✅ Streamlit multipage UI

📂 Project Structure

ExpenseTracker/

├── Home.py # Main dashboard

├── Pages/

│ ├── 1_Add_Expense.py # Add expense

│ ├── 2_View_Expense.py # View expenses based on category

│ ├── 3_View_All_Expenses.py # View all expenses

│ ├── 4_Charts.py # Charts

│ └── 5_Stats.py # Statistics

├── db_utils.py # Query handling

├── dbconnect.py # MySQL connection

├── requirements.txt

└── README.md

🛠️ Tech Stack

  • Frontend/UI: Streamlit
  • Database: MySQL
  • Data Analysis: Pandas, Plotly

🔗 Database Setup

  1. Create database:

CREATE DATABASE expense_tracker;

  1. Create table:

CREATE TABLE expenses (

id INT AUTO_INCREMENT PRIMARY KEY,

title VARCHAR(255),

category VARCHAR(100),

amount DECIMAL(10,2),

eDate DATE

);

🔐 Environment Variables

Create a .env file in the root folder:

DB_HOST=localhost

DB_USER=root

DB_PASSWORD=yourpassword

DB_NAME=dbexpense

▶️ Running Locally

pip install -r requirements.txt

streamlit run Home.py

📸 Screenshots

🏠 Home Page

Home

➕ Add Expense Page

Add Expense 1 Add Expense 2

📂 View Expenses by category Page

View Expense

📂 View All Expenses Page

View All Expense

📊 Charts Page

Charts 1 Charts 2 Charts 3

📈 Stats Page

Stats 1 Stats 2 Stats 3 Stats 4 Stats 5

👤 Developer

Built by Harini Neon💚

🔗 Linkedin

🔗 GitHub

About

A Streamlit-powered personal expense tracker with a MySQL backend, featuring interactive charts, stats, and a clean UI to help you manage your spending.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages