Deniz Gursoy Electrical Engineering at UPenn · Hardware Design, Robotics, and Embedded Systems
All projects

Software

MERN expense tracker with rule-based analytics

A personal finance app on the MERN stack (MongoDB, Express, React, Node.js). Its base follows a public tutorial: JWT login, income and expense ledgers, Excel export and Recharts dashboards over 13 REST endpoints.

Dates
Jul to Aug 2025
Context
Personal project
Role
Solo, extending a public tutorial
Status
Archived in Aug 2025
5service modules I added, 1,536 lines in total
5weighted terms in the 0 to 100 health score
8badges, worth 10 to 100 points each
13REST endpoints in the tutorial base, 10 behind JWT

On top I added five service modules that run in the browser and compute a 0 to 100 health score, unusual-charge flags, subscription detection and badges from fixed rules, with no machine learning model involved.

The problem

A ledger app stores what you earned and spent, then leaves the reading to you. This one tries to comment on the numbers: it flags charges that look unusual, finds the ones that recur and gives the month one score.

The only real data is the two ledgers the user types in, with no bank feed.

What I built

The base follows a public MERN expense-tracker tutorial. Its Express 5 API exposes 13 endpoints for auth, income, expenses and a dashboard summary, backed by three Mongoose models. Passwords are hashed with bcrypt in a pre-save hook, and a JWT that expires after one hour guards 10 of the 13 routes.

The dashboard endpoint answers one request with lifetime totals, a 60-day income window, a 30-day expense window and the five latest entries from each ledger. The React client charts the ledgers with three Recharts wrappers and can export either one to Excel.

I added five service modules and a dashboard panel for their output. They run in the browser on that dashboard response, using plain arithmetic:

  • Health score, 0 to 100: savings rate (30 points), budget adherence (25), category spread (20), emergency fund (15), consistency (10).
  • Unusual charges: any of a category's five oldest entries above twice the category mean.
  • Subscriptions: six preset patterns such as Netflix and Spotify, matched by keyword and a price within $5.
  • Recurring charges: three or more at amounts within 10% of their mean, spaced about a week, a month or a year apart.
  • Badges: eight achievements worth 10 to 100 points, with a new level every 100 points.

Results

The app ran locally during development: the repo keeps an Excel export and profile uploads from those runs.

I did not check the rules against labeled data, so I quote no hit rate for the flags.

Limits and next steps

The analytics are fixed thresholds and averages. No machine learning model or outside API is involved.

Several inputs to the scoring and badges are still placeholder constants, and the goals page does not save. The dashboard also receives only the last 30 days of expenses, too short a window for the monthly recurring-charge rule.

There are no automated tests and no live demo. Before anyone else used it, the delete routes would need an ownership check and the upload route a login.

Ask a question about this project

An AI assistant answers from this site's text. It can be wrong; this page is the source.