Track expenses, budgets, and goals. Get analytics on your spending. Built with FastAPI + PostgreSQL + React.
- User auth (JWT)
- CRUD for categories, transactions, budgets, goals
- CSV import for bank statements
- Analytics - savings rate, spending breakdown, overspend alerts, goal projections
- Rules engine - automated alerts for budget issues
cd AIExpenseGuard
python -m venv venvActivate venv:
- Windows:
venv\Scripts\activate - Mac/Linux:
source venv/bin/activate
pip install -r requirements.txtCreate a PostgreSQL database called spendingtrack, then create a .env file:
DATABASE_URL=postgresql://postgres:yourpassword@localhost:5432/spendingtrack
SECRET_KEY=your-secret-key-change-this
Run migrations:
alembic upgrade headOptionally seed demo data:
python -m scripts.seedBackend:
uvicorn app.main:app --reloadFrontend:
cd frontend
npm install
npm run devOpen http://localhost:5173. API docs at http://localhost:8000/docs.
Demo login: demo@test.com / demo123
pytest -v