A sleek, dark-themed expense tracker web app with animated starfield background, cursor smoke effect, and pie chart analytics.
- Python + Flask (backend server)
- HTML / CSS / JavaScript (frontend)
- Chart.js (pie chart)
- localStorage (saves your data in the browser)
expense_tracker/
├── app.py ← Python Flask server
├── requirements.txt ← Python packages needed
├── README.md ← This file
└── templates/
└── index.html ← The full web app
- Go to https://python.org/downloads
- Download the latest version (e.g. Python 3.12)
- During install, ✅ CHECK "Add Python to PATH"
- Click Install
- Go to https://code.visualstudio.com
- Download and install
- Open VS Code
- Click File → Open Folder
- Select your
expense_trackerfolder - Click Select Folder
- Press Ctrl + ` (backtick key, top-left of keyboard)
- A terminal opens at the bottom
Type this in the terminal and press Enter:
pip install flask
Wait for it to finish installing.
Type this and press Enter:
python app.py
You should see:
* Running on http://127.0.0.1:5000
Open your browser and go to:
http://127.0.0.1:5000
🎉 Your expense tracker is running!
- Add Transaction — Fill in description, amount, category, date, and type (Income/Expense)
- Pie Chart — Automatically updates to show your spending breakdown by category
- Filter — Click All / Expenses / Income tabs to filter transactions
- Delete — Click the ✕ button on any transaction to remove it
- Data persists — Your transactions are saved in browser localStorage
- Go to https://git-scm.com/download/win
- Download and install (use default settings)
Go to https://github.com and sign up (free)
- Click the + button → New repository
- Name it:
expense-tracker - Set to Public
- Click Create repository
In VS Code terminal, type these one by one:
git init
git add .
git commit -m "Initial commit: SpendStar expense tracker"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/expense-tracker.git
git push -u origin main
Replace YOUR_USERNAME with your GitHub username.
- Go to your repo on GitHub
- Click Settings → Pages
- Source: Deploy from a branch → main → /root
- Save — your app will be live at
https://YOUR_USERNAME.github.io/expense-tracker
- 🌟 Animated starfield background with glowing stars
- 🌫️ Smoky cursor trail effect
- 📊 Live pie chart showing spending by category
- 💚 Income vs 🔴 Expense color coding
- 💾 Data saved automatically (localStorage)
- 📱 Responsive design (works on mobile too)