About
Projects
BlogWhere I write, think and learn.GallerySometimes I also take photos.WrappedA recap of what's been on rotation lately.
Blog
Gallery
Wrapped
© 2026 /Gilang Fatahilah

Nabungo: Building a Personal Finance App from Scratch

Avatar
Gilang FatahilahAugust 28, 2025
Nabungo: Building a Personal Finance App from Scratch

The Problem I Was Ignoring

Honestly, I used to be terrible at tracking my expenses. I tried a handful of popular finance apps: some were too complex, some had an overwhelming UI, and some were just too limited to be useful. I always ended up going back to my old habit: not tracking at all. Then one day it hit me. My paycheck was gone before the month was even over, and I had no idea where the money went. That was the moment Nabungo was born, not from a business plan or market research, but from my own frustration.
"If the right tool doesn't exist, build it yourself."
I started picturing exactly what I wanted: something simple, fast, everything in one place, and most importantly, data that I fully control.

It Started With a Napkin Sketch

Before writing a single line of code, I sat down and listed out what I actually needed. It came down to a few core things:
  • Multiple accounts: bank, e-wallet, cash, all in one place
  • Quick transaction logging: income, expense, or transfer between accounts
  • Budget limits per category so I stop overspending without realizing it
  • Savings goals, like saving up for a new laptop or a trip
  • A visual financial summary on a dashboard I'd actually want to open
From that simple list, the first domain model of Nabungo came to life. Not perfect, but good enough to start building.

Choosing the Right Stack

One of the biggest decisions early on was the tech stack. I wanted the app to feel like a fast, responsive SPA, but I didn't want the overhead of maintaining a separate API and two independent codebases. That's when I landed on Laravel 12 + Vue 3 + Inertia.js, a combination that lets me write classic MVC backend with Laravel and serve it directly to Vue pages without a REST API in between. Inertia.js acts as the bridge, passing data straight from controllers to Vue as props. For styling, I went with Tailwind CSS v4, faster and more expressive than ever. UI components are built on top of Reka UI (headless), giving me full control over the look and feel without sacrificing accessibility. And of course, everything is written in TypeScript: I've been burned by undefined is not a function too many times in previous projects.

Building One Feature at a Time

Dashboard: Where Every Session Begins

The first thing I built was the Dashboard. The philosophy was simple: the moment a user logs in, they should be able to answer one question instantly: "How am I doing financially right now?" The dashboard shows a summary of total balance across all accounts, spending trend charts, and current month budget progress. It's not just static numbers: the data is freshly computed on every load by the DashboardController, which aggregates information from multiple models in a single, cohesive response.

Transactions: The Heart of the App

Transactions are both the most important and most complex feature. There are three types: income, expense, and transfer. What makes it tricky is that every transaction must automatically update the balance of the accounts involved. This is where I introduced TransactionService, a dedicated service class that owns all the business logic around transactions. From validating sufficient balance, recalculating the difference when a transaction is edited, to rolling back the balance when one is deleted. Everything lives in one class that can be tested in isolation. I also built QueryFilters and FilterParser, two helper classes that enable dynamic, server-side table filtering from the frontend. Users can filter transactions by category, account, date range, or type, all processed efficiently on the backend.

Budget: Keeping Spending in Check

The budget feature lets users set a monthly spending cap per category. Every time a new transaction is recorded, the system automatically recalculates how much of the budget has been consumed. One interesting thing I discovered while building this was a classic N+1 query problem. The Budget model originally had accessors that fired a database query per model instance, meaning 10 budgets triggered 10 extra queries. I solved it with more efficient eager loading and subquery aggregation.

Goal: Saving With Purpose

The name "Nabungo" comes from the Indonesian word "nabung", meaning to save money. So naturally, the Goal feature is at the heart of what this app stands for. Each goal has a dedicated account. When a user transfers money into their goal account, the progress updates automatically. I added a visual progress bar and an estimated completion date based on historical average savings. It's a small touch, but psychologically it makes a real difference: you can actually see yourself getting closer.

Activity Log: Full Transparency

One feature that often goes unnoticed but I believe is essential: an audit trail. Using Spatie Laravel Activity Log, every data change is recorded: who changed what, when, and what the values were before and after. It's invaluable for debugging and maintaining trust in financial data.

Real Challenges I Ran Into

1. Architectural Inconsistency

Midway through development, I noticed the codebase was becoming inconsistent. Some controllers handled business logic directly, while TransactionController properly delegated to TransactionService. This is a conscious technical debt, something I acknowledged and planned to resolve in the next iteration by extracting all business logic into proper service classes.

2. A Real-time Feel Without WebSockets

Inertia.js doesn't have a built-in real-time mechanism. My solution was pragmatic: every action (create/update/delete) immediately updates the UI via Inertia's reactive props, so users never need to refresh the page to see changes. It feels like a SPA, even though the architecture is entirely server-driven.

3. TypeScript Across Vue + Inertia

Properly typing Inertia props in Vue components required multiple layers of setup, from defining types in types/, ensuring PHP controller output matches the expected shapes, to validating forms with Zod on the frontend. It took time to find the right patterns, but it's been completely worth it. Going back to untyped code now feels uncomfortable.

What I Learned

Building Nabungo taught me things no tutorial ever could:
  • Design decisions have compounding effects. One early architectural choice (like putting logic directly in a controller instead of a service) can have a massive impact on maintainability weeks down the line.
  • "Simple" features are rarely simple. An account-to-account transfer, for instance, needs to handle balance rollback, sufficient-funds validation, and history tracking, all within a single atomic transaction.
  • Test coverage isn't a luxury. I started without many tests. During refactoring, I constantly second-guessed whether my changes broke something. That's the moment I wished I had written tests from day one.
  • The name matters. "Nabungo" isn't just a name: it's a mission statement. Every time I got stuck, that name reminded me why this app exists in the first place.

The Outcome

Nabungo is live in production. I use it myself every single day to track my finances, and for the first time in years, I actually know where my money goes. This isn't an app built for everyone. But for me, that's exactly what makes it special: it's a solution I designed for myself, with every decision reflecting how I personally think about money and code. There's still a lot I want to add: the debt tracking feature that's halfway done, richer financial reports, budget notifications, and maybe a mobile app someday. But right now, Nabungo does its job, and that's more than enough.
Open live site

Related projects

Orbitari: Interactive 3D Model Solar System

Orbitari: Interactive 3D Model Solar System

November 14, 2026A static 3D website for exploring the Solar System with real planet positions for any date from year 1 to 9999, built with SvelteKit, Three.js, and astronomy-engine.
Typescript
SvelteKit
Three.js
Tailwind CSS
Vite
Avatar
Read moreView project
CISST: Real-time Night Sky Dashboard

CISST: Real-time Night Sky Dashboard

April 17, 2026A location-aware astronomy dashboard that tells you what's visible in the night sky tonight, combining real-time weather data with client-side astronomical calculations.
Typescript
React js
Tailwind CSS
Vite
Avatar
Read moreView project
Kaiwaa: Real-Time Chat App with Socket.IO & MongoDB

Kaiwaa: Real-Time Chat App with Socket.IO & MongoDB

December 11, 2024Building a scalable real-time chat application using Socket.IO, Express, MongoDB, and JWT authentication with a modern full-stack architecture.
Typescript
React js
Tailwind CSS
Vite
Express
Mongo DB
Socket IO
Avatar
Read moreView project
Php
// Every create/update/delete automatically
// syncs the balances of the affected accounts
class TransactionService
{
    public function create(array $data): Transaction { ... }
    public function update(Transaction $transaction, array $data): Transaction { ... }
    public function delete(Transaction $transaction): void { ... }
}