A beautiful and modern Expense Tracker built with React + Vite + Recharts.
Track your daily spending, view category charts, and manage your finances β all saved in localStorage.
- β Add & delete expenses with title, amount, category, and date
- π Interactive Pie Chart showing spending by category
- πΎ Data saved in LocalStorage (persists on refresh)
- π Filter transactions by category
- π± Fully responsive design (mobile + desktop)
- π Sleek dark theme UI
| Tech | Purpose |
|---|---|
| React 18 | UI framework |
| Vite | Fast build tool |
| Recharts | Charts & data visualization |
| LocalStorage | Data persistence |
| CSS3 | Custom dark theme styling |
expense-tracker/
βββ public/
βββ src/
β βββ components/
β β βββ ExpenseForm.jsx # Add expense form with validation
β β βββ ExpenseList.jsx # List of all expenses
β β βββ ExpenseChart.jsx # Pie chart visualization
β β βββ Summary.jsx # Stats cards (total, month, count)
β βββ App.jsx # Main app + state management
β βββ App.css # All styles
β βββ main.jsx # Entry point
βββ index.html
βββ vite.config.js
βββ package.json
git clone https://github.com/YOUR_USERNAME/expense-tracker.git
cd expense-trackernpm installnpm run devOpen http://localhost:5173 in your browser.
npm run deployGo to your repo β Settings β Pages β Source: gh-pages branch β Save
Your app will be live at:
https://YOUR_USERNAME.github.io/expense-tracker/
- React
useStateanduseEffecthooks - Lifting state up between components
localStoragefor data persistence- Recharts
PieChartwith custom styling - Form validation in React
- Component-based architecture
Jatinmor89 β GitHub
MIT License