Transaction management
Add, edit and categorise income and expenses, with the list updating straight away.
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.

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.
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.
| Before Transaction Tracker | With Transaction Tracker |
|---|---|
| Spreadsheet formulas to answer "where did it go?" | A dashboard of charts and summaries |
| A banking feed you cannot correct or regroup | Transactions you can edit and recategorise |
| Free-text labels that split one category into three | Categories picked from a list |
| Monthly totals rebuilt by hand | Custom reports for a chosen period |
The brief I set myself
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.
| Frontend | The React interface with Tailwind CSS and shadcn/ui, including the transaction list, dialogs and dashboard charts. |
|---|---|
| API | The Node.js and Express.js API, with create, edit and delete routes plus summary routes for the dashboard. |
| Data | The MongoDB model for users and transactions, with amount, type, category and date. |
| Reports | The report generator for a chosen period, built from the same records as the dashboard. |
| Accounts | JWT authentication with bcrypt, profile management and the admin panel. |
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.
Step 1
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.
Step 2
A wrong amount or category is fixed in the same dialog, and deleting an entry is just as direct. The list updates straight away.
Step 3
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.
Step 4
Choose a period and generate a custom report from the same stored records the dashboard uses.
Every feature in Transaction Tracker works from the same stored transactions, so the list, the charts and the reports always describe the same money.
Add, edit and categorise income and expenses, with the list updating straight away.
Charts and summaries of where money comes from and where it goes, refreshed after every change.
Reports for a chosen period, built from the same records as the dashboard.
Categories are picked from a list, so spending groups cleanly in charts and reports.
Oversight and management of user accounts, behind a role check on the API.
Personal details and settings, editable by the account holder.
Token-based sign-in, with passwords stored as bcrypt hashes.
Built with React, Tailwind CSS and shadcn/ui so the list, dialogs and charts work on any screen size.
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
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
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
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
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.
| Technology | What it does in Transaction Tracker |
|---|---|
| React.js | The interface: the transaction list, the edit dialogs, the dashboard and the reports. |
| TypeScript | Type safety across the React client and the Express.js API. |
| Tailwind CSS | Styling for a responsive layout of dense forms and tables. |
| Shadcn UI | Accessible inputs, selects and dialogs for adding and editing transactions. |
| Node.js | The runtime for the API server. |
| Express.js | Create, edit and delete routes for transactions, plus pre-aggregated summary routes. |
| MongoDB | Users and transactions, the only stored record of money in the app. |
| Bcrypt | Password hashing, so passwords are stored only as hashes. |
| JWT | Authentication, carrying the role checked before any admin route runs. |
| GitHub | Version control for the codebase. |
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.
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.
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.
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.
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.
Possible additions include budgets per category and importing transactions from a bank statement file, though neither is a committed plan yet.
Short answers to the questions people ask most about Transaction Tracker, how its dashboard stays accurate, and who can see what.
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.
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.
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.
Yes. Custom reports cover a period you choose, and they are built from the same transactions as the dashboard, so the two always agree.
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.
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.
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.
A TypeScript MERN email campaign manager with multi-account SMTP, templates, audit logs and admin oversight.
Read the case studyA MERN team management system with Admin, Manager and Team Member roles, a Kanban board and per-role analytics.
Read the case studyA multilingual Next.js tools platform with 340+ localized pages and country-specific tax logic in 7 languages.
Read the case studyI 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.