A Next.js frontend for the Expense Tracker application.
- Next.js 15
- Tailwind CSS
- Recharts (pie chart, stacked bar chart)
- Deployed on Netlify
- User registration and login with JWT authentication
- Add, edit, and delete expenses
- Category dropdown (default + custom categories)
- All time spending pie chart by category
- Monthly stacked bar chart with year toggle
- Responsive design
https://expense-tracker-mathew.netlify.app
- Clone the repo
- Install dependencies:
npm install- Update API URL in
src/lib/api.jstohttp://localhost:8080 - Run the dev server:
npm run dev- Open
http://localhost:3000
Update src/lib/api.js before running locally or deploying:
- Local development:
const API_URL = 'http://localhost:8080' - Production (Netlify):
const API_URL = 'https://expense-tracker-api-ckeh.onrender.com'
Note: The production API is hosted on Render. For local development you'll need to run the Spring Boot backend locally with Docker.
This frontend connects to the Expense Tracker API: https://github.com/MathewLobo/expense-tracker-api
- Fix user scoping — currently all users share user ID 1
- Dynamic year range toggle (startYear to current year)
- Password recovery flow
- Shared expenses between users