Skip to content
Back to all projects

Full-stack

FinTrack

A personal finance app that puts accounts, budgets and goals in one place. A Spring Boot backend and a React front end, with bank statement import, installment and recurring transactions, and receipt scanning. The public demo runs on a free server, so the first request can be slow.

Demo

LIVEOpen the live site

The deployed project opens in a new tab.

May be asleep

Problem

Tracking personal income, expenses, budgets and goals in a single dashboard falls apart quickly when you do it in spreadsheets: card installments are somewhere, the salary somewhere else, and the budget limit sits on a sheet nobody opens. In FinTrack I wanted the budget and the notifications to react the moment a transaction is entered. On the technical side I wondered what happens when two transactions arrive at the same time in a system where a balance changes. I tried to answer that by locking the account rows.

Highlights

  • Money movements lock the account row with PESSIMISTIC_WRITE: creating a transaction and transferring between accounts lock the accounts involved before the balance changes. The shared BaseEntity also carries an optimistic @Version lock.
  • Authentication uses a JWT with a refresh token. A refresh revokes the old token and issues a new one, and logout revokes the refresh token as well.
  • Saving a transaction publishes a TransactionCreatedEvent; the budget listener updates the spent amount of general and category budgets, and a notification is created when a budget is exceeded.
  • A transaction can have up to 12 installments: only the first is charged to the account, and a separate transaction record is created for each month. A job that runs every night at 01:00 creates the recurring ones.
  • Bank statements can be imported as CSV, OFX and Excel, with a simple rule-based categorizer that assigns a category from keywords in the description. Receipt photos are read in the browser with Tesseract.js (Turkish and English).
  • 14 Flyway migrations and 118 test methods; GitHub Actions runs the backend tests with a PostgreSQL service and lints and builds the front end. The demo limits authentication to 10 requests per minute per IP and caps registrations at 200 users.

Architecture and notes

The backend is a modular monolith: auth, account, transaction, budget, goal, notification, recurring, bankimport, category, dashboard and a shared package. Modules talk through Spring events wherever possible instead of calling each other directly, so a transaction updating the budget and the notifications does not bloat the transaction service. The schema comes from Flyway and Hibernate only validates it. Prometheus metrics are on. The front end uses React 19, TypeScript, React Query, Zustand and Recharts; texts are in Turkish and English, and the theme is light or dark.

The public demo runs on Vercel and a free Render server. Excel import is switched off in the demo because Apache POI is too heavy for the free server; CSV and OFX work.

The weak spot is testing: the tests are written with MockMvc and Mockito, and there is no integration test against a real PostgreSQL and none that sends concurrent transactions to the same account, so I trust the locking by reading it rather than by a test. The categorizer is only a fixed keyword list. The repository is private, so there is no code link; the demo is the way to try it.

Private repository

Last updated

Technologies

  • Java 21
  • Spring Boot 3.5
  • Spring Security
  • JWT
  • PostgreSQL
  • Flyway
  • React 19
  • TypeScript
  • Docker

The source code is kept private; I can show it on request.

Request flow

Hover or focus a component to see what it is.

A generic request path built from the project's tech list. It illustrates the stack; it is not a measured trace.