Transaction TrackerA MERN finance tracker app with live dashboards and reports

A case study in building a TypeScript MERN app for recording and categorising money in and out, with charts that follow every edit, custom reports and admin account management.

Category
Full Stack
Industry
Personal finance
Platform
Web application, responsive
Status
Private project
  • JWTsecured sign-in and private records
  • Livecharts that follow every edit
  • Customreports for a chosen period
  • Adminpanel for account management
Transaction Tracker
Transaction Tracker dashboard with summary cards for income and expenses, a spending chart by category and a list of recent transactions
Overview

Transaction Tracker: a MERN finance tracker for personal money

Transaction Tracker is a MERN finance tracker app I built in TypeScript so one person can record, correct and categorise their money, and see the result on a dashboard straight away.

Each entry has an amount, a type, a category and a date. A dashboard turns those records into charts and summaries that update as entries change, custom reports cover a chosen period, and an admin panel manages accounts. It runs on React, Node.js, Express.js and MongoDB, with Tailwind CSS and shadcn/ui on the front end and JWT authentication with bcrypt password hashing.

The whole design rests on one rule: the stored transactions are the only record of money in the app. Every total, chart and report is computed from them, so editing an old entry is always safe.

Role
Full-stack developer
Industry
Personal finance
Audience
Individuals tracking their own income and spending
Platform
Web application, responsive
Type
Full-stack web application
Category
Full Stack
Stack
React.js, TypeScript, Tailwind CSS, Shadcn UI
Status
Private project
The challenge

Why personal finance tracking stalls in spreadsheets and banking apps

Keeping track of money usually starts in a spreadsheet or a notes app, and it usually stops there too, because reading an answer turns into building formulas.

Entries get typed in inconsistently, categories multiply, and the moment you want to know where the money went last month you are building formulas instead of reading an answer.

The other common option, a banking app, only knows about one account and shows a feed of payments without letting you correct, regroup or annotate them. I wanted a tracker where entering a transaction took seconds, fixing a wrong category was a single edit, and the summary on the dashboard reflected that change straight away.

How things worked before Transaction Tracker, compared with Transaction Tracker
Before Transaction TrackerWith Transaction Tracker
Spreadsheet formulas to answer "where did it go?"A dashboard of charts and summaries
A banking feed you cannot correct or regroupTransactions you can edit and recategorise
Free-text labels that split one category into threeCategories picked from a list
Monthly totals rebuilt by handCustom reports for a chosen period

The brief I set myself

  • Quick entryRecording a transaction takes seconds.
  • Cheap fixesA wrong category is a single edit.
  • Always currentThe dashboard reflects every change.
  • PrivateAdmins manage accounts, not spending.
My role

My role: building Transaction Tracker end to end

I built Transaction Tracker end to end in TypeScript, from the data model for users and transactions to the dashboard charts, the report generator and the admin panel.

That covered the React interface with Tailwind CSS and shadcn/ui, the Node.js and Express.js API, the MongoDB data model, JWT authentication with bcrypt, the dashboard charts, the report generator, and the admin panel for managing accounts. The code is kept on GitHub.

The decisions that mattered most were about data rather than screens: what to store, what to compute, and where the computing happens, so that a correction anywhere in the history shows up everywhere at once.

Scope of work on Transaction Tracker
FrontendThe React interface with Tailwind CSS and shadcn/ui, including the transaction list, dialogs and dashboard charts.
APIThe Node.js and Express.js API, with create, edit and delete routes plus summary routes for the dashboard.
DataThe MongoDB model for users and transactions, with amount, type, category and date.
ReportsThe report generator for a chosen period, built from the same records as the dashboard.
AccountsJWT authentication with bcrypt, profile management and the admin panel.
How it works

How tracking money works in Transaction Tracker, step by step

The flow is short on purpose: record a transaction, fix it if it is wrong, read the dashboard, and pull a report for the period you care about.

  1. Step 1

    Record a transaction

    Add income or an expense in a dialog over the list, with an amount, a type, a category picked from a list, and a date.

    Fields
    AmountTypeCategoryDate
    Type
    IncomeExpense
  2. Step 2

    Correct it in one edit

    A wrong amount or category is fixed in the same dialog, and deleting an entry is just as direct. The list updates straight away.

    Actions
    AddEditCategoriseDelete
  3. Step 3

    Read the dashboard

    After any change, the summaries are fetched again from the API, so the cards and charts show where money comes from and goes as it stands now.

    Dashboard
    Summary cardsCharts by categoryRecent transactions
  4. Step 4

    Pull a report

    Choose a period and generate a custom report from the same stored records the dashboard uses.

    Reports
    Chosen periodSame records as the dashboard
Key features

Transaction Tracker features for income and expense tracking

Every feature in Transaction Tracker works from the same stored transactions, so the list, the charts and the reports always describe the same money.

Transaction management

Add, edit and categorise income and expenses, with the list updating straight away.

Interactive dashboard

Charts and summaries of where money comes from and where it goes, refreshed after every change.

Custom reports

Reports for a chosen period, built from the same records as the dashboard.

Consistent categories

Categories are picked from a list, so spending groups cleanly in charts and reports.

Admin panel

Oversight and management of user accounts, behind a role check on the API.

Profile management

Personal details and settings, editable by the account holder.

JWT authentication

Token-based sign-in, with passwords stored as bcrypt hashes.

Responsive interface

Built with React, Tailwind CSS and shadcn/ui so the list, dialogs and charts work on any screen size.

Architecture

How Transaction Tracker is built: Express.js, MongoDB and React

Four decisions shaped Transaction Tracker: storing only transactions, shaping the API around the dashboard, using dialogs for dense forms, and keeping private records private.

Data

Transactions as the only source of truth

The app stores individual transactions, each with an amount, a type, a category and a date, and nothing else about money. Totals, category breakdowns and reports are all computed from those records rather than kept as running balances. That costs a little computation, but it means correcting one old entry can never leave a stored total out of step.

API

Express.js routes shaped around the dashboard

The Express API exposes the usual create, edit and delete routes for transactions, plus summary routes that return the figures the dashboard and reports need already aggregated. The browser receives a handful of numbers for a chart instead of every transaction in the account, which keeps the dashboard quick as a history grows. I took a similar route-first approach to a different domain in the Elentra Car API.

Design

shadcn/ui and Tailwind CSS for dense forms

Most of the time in a finance app is spent in forms and tables. shadcn/ui components give accessible inputs, selects and dialogs that I could restyle with Tailwind CSS, so adding or editing a transaction happens in a dialog over the list without losing your place.

Security

JWT and bcrypt for private records

Financial records are personal, so the account layer mattered as much as the charts. Passwords are stored only as bcrypt hashes, and a signed JWT identifies the user on each request, including the role that the admin routes check before they run.

The Transaction Tracker tech stack

Technologies used in Transaction Tracker and what each one does
TechnologyWhat it does in Transaction Tracker
React.jsThe interface: the transaction list, the edit dialogs, the dashboard and the reports.
TypeScriptType safety across the React client and the Express.js API.
Tailwind CSSStyling for a responsive layout of dense forms and tables.
Shadcn UIAccessible inputs, selects and dialogs for adding and editing transactions.
Node.jsThe runtime for the API server.
Express.jsCreate, edit and delete routes for transactions, plus pre-aggregated summary routes.
MongoDBUsers and transactions, the only stored record of money in the app.
BcryptPassword hashing, so passwords are stored only as hashes.
JWTAuthentication, carrying the role checked before any admin route runs.
GitHubVersion control for the codebase.
Challenges

Challenges in building the Transaction Tracker finance app

Three of the hard parts: charts that follow every edit, categories that stay useful over time, and admin powers in an app full of private records.

Charts that follow every edit

Problem

When a user changes a transaction's amount or moves it to another category, the list, the summary cards and the charts all have to change together. If only the edited row updates, the dashboard quietly shows numbers that are no longer true.

Solution

After any create, edit or delete, the dashboard summaries are fetched again from the API, which recomputes them from the stored transactions. The list, the cards and the charts are all drawn from that fresh response, so they agree with each other and with the database.

Categories that stay useful

Problem

Free-text categories fall apart within weeks: "Food", "food" and "Groceries" end up as three slices of the same pie chart, and the breakdown stops meaning anything.

Solution

Transactions are categorised by picking from a list rather than typing a label each time, which keeps the grouping consistent and lets the dashboard and reports group spending reliably.

Admin powers in a personal finance app

Problem

Someone has to be able to manage accounts, but a person's transactions are private. The admin role needed real authority over users without turning the admin panel into a window onto everyone's spending.

Solution

The admin panel is built around account management, and the API checks the role carried in the JWT before any admin route runs. The pattern is close to the role checks in MERN Mail, applied here to protecting financial records instead of outreach logs.

Results

Results: an editable, always-current record of personal money

Transaction Tracker gives a single person a clear, editable record of their money, where entries go in quickly and mistakes are cheap to fix.

The dashboard and reports always reflect the current data, because both are computed from the same stored transactions. For a version of the same MERN stack with three roles and a shared workspace rather than private records, see the Team Management System.

What's next for Transaction Tracker

Possible additions include budgets per category and importing transactions from a bank statement file, though neither is a committed plan yet.

FAQ

Transaction Tracker finance app: frequently asked questions

Short answers to the questions people ask most about Transaction Tracker, how its dashboard stays accurate, and who can see what.

What is Transaction Tracker?

Transaction Tracker is a personal finance tracker for recording, editing and categorising income and expenses. A dashboard turns the records into charts and summaries, custom reports cover a chosen period, and an admin panel manages accounts.

What is Transaction Tracker built with?

A TypeScript MERN stack: React with Tailwind CSS and shadcn/ui, Node.js and Express.js, and MongoDB, with JWT authentication and bcrypt password hashing. The code is kept on GitHub.

How does the Transaction Tracker dashboard stay accurate after an edit?

After any create, edit or delete, the dashboard summaries are fetched again from the API, which recomputes them from the stored transactions. Nothing keeps a running balance that could drift out of step.

Can Transaction Tracker generate financial reports?

Yes. Custom reports cover a period you choose, and they are built from the same transactions as the dashboard, so the two always agree.

Can an admin see my transactions in Transaction Tracker?

The admin panel is built around managing accounts, not reading people's spending. The API checks the role carried in the JWT before any admin route runs.

How is Transaction Tracker different from MERN Mail?

They share a TypeScript MERN stack, but Transaction Tracker keeps one person's private financial records, while MERN Mail sends outreach email through users' own SMTP accounts and keeps a shared audit log for admins.

Who built Transaction Tracker?

Muhammad Abdullah Awais, a full-stack developer based in Pakistan. I built Transaction Tracker end to end, and I am available for freelance and full-time work on applications like it.

Available for new builds

Need a full-stack developer for a product like this?

I work remotely with teams in the US, Canada, the UK, Europe and the Gulf, and with clients across Pakistan. Based in Pakistan (PKT, UTC+5), available for freelance and full-time roles.