Case study · Personal full-stack project

Invoice Management App
from interface to full-stack application.

Starting from a supplied Frontend Mentor interface design, I built a full-stack application for creating and managing invoices, with database persistence, account sign-in, and server-side rules.

The work brings together capabilities used in client portals and internal business tools: persistent records, access tied to an account, and rules enforced when records are saved.

The demo opens a shared workspace of sample invoices, so other visitors can see your changes, and it resets to the sample data regularly.

Invoice dashboard showing seven synthetic invoices with clients, due dates, amounts, and draft, pending, or paid statuses.

The dashboard brings invoice records and their status into one view. All invoice details shown are synthetic. View full-size screenshot

  1. Find the right invoices

    Status filtering narrows the list already authorized for the current account.

  2. See where each invoice stands

    Client, due date, amount, and status stay together. I connected the supplied interface design to persistent records and account permissions.

What it does

A connected invoice workflow.

Invoices move from draft to pending to paid, with their records stored in a database. Light and dark themes carry the supplied design across desktop and phone layouts.

Create and edit invoices

One form holds the billing addresses, dates, payment terms, and line items. Items can be added or removed, and the form flags missing or invalid fields before anything is saved.

Drafts can be saved with some details missing. Once the required information is complete, an invoice can be saved as pending and later marked as paid.

Lower half of the edit panel for invoice XM9141: invoice date, Net 30 Days payment terms, a Graphic Design description, and two line items, Banner Design at 1 × 156 and Email Design at 2 × 200, with their totals and Cancel and Save Changes buttons.
Dates, payment terms, and line items stay together in the edit panel. View the full screenshot

Revision history & comparison

See what changed, and undo it

Each invoice keeps a timeline of its revisions. Selecting one shows what changed from the version before it: addresses, line items, and payment status, side by side in readable terms rather than raw data.

Earlier invoice details can be restored after a confirmation step.

Revision history panel with five entries. Revision #4 is selected, showing a status change from draft to pending and a Restore this version button.
Revision #4 compared with its predecessor, with the option to restore it. View the full screenshot

The same application on a phone

On a narrow screen the invoice table becomes a list of cards, and the invoice view stacks its addresses and line items so nothing needs horizontal scrolling. Both themes work at every size.

Mobile invoice dashboard in light theme with stacked invoice cards showing client, due date, amount, and status.
Mobile invoice view in dark theme with billing addresses, line items, and the grand total.
The dashboard and an invoice at phone width, in light and dark themes. View the full screenshot

Behind the interface

The rules behind the workflow.

A polished form is only part of an application. These three decisions sit on the server, where they apply no matter how a request arrives.

  1. 01

    Keep account boundaries in the application rules

    Hiding another person’s invoices in the interface is only part of the job. The server also needs to check each request.

    New invoices take their owner from the authenticated account. Reads and changes are checked against that ownership, including requests for revision history and restoration. This puts account separation where it can be enforced even when a request bypasses the interface.

    The same approach applies to portals where customers or staff should only see the records they are allowed to use.

  2. 02

    Calculate stored totals on the server

    The form provides immediate feedback while someone edits an invoice. When it is saved or restored, the server recalculates line totals and the overall amount instead of accepting the browser’s submitted totals.

    This keeps the calculation in one authoritative place, a pattern also useful for fees, quantities, and other business rules.

    Currency calculations still use JavaScript numbers without a defined rounding policy. Financial production use would require that policy and tighter server-side validation.

  3. 03

    Store complete snapshots for revision history

    Each revision stores a complete snapshot of the invoice, so a comparison can show changes to addresses, line items, and payment status together.

    Restoring an earlier version adds a new entry to the history, preserving the intervening revisions. Stable line-item identifiers distinguish an edited item from a deleted one.

    Invoice and history writes are currently separate operations: a history-write failure can leave a changed invoice without its corresponding revision. This demonstrates a recovery workflow, but is not a tamper-proof audit trail.

My role

How I built and checked it.

React · TypeScript · GraphQL · Express · Prisma · PostgreSQL

I started this project in 2022, implementing a supplied Frontend Mentor design in React before expanding it into a full-stack application with a Node.js backend, GraphQL API, and PostgreSQL database. Most of that foundational work was written by hand, and the project earned University of Helsinki course credit in 2025.

In 2026, I began using AI coding agents extensively to help extend and improve the application. That included building revision history, strengthening authorization, recalculating invoice totals on the server, enforcing additional business rules, and expanding automated testing. I directed and reviewed that work, using tests and independent reviews to challenge the results rather than simply trusting the agents’ assurances.

The application has automated tests covering business logic, database interactions, authorization, and browser workflows. Those checks have also helped uncover and correct defects in the original implementation. More detailed verification results and remaining limitations are documented in the technical notes below.

Project scope

This is a personal project, with synthetic demonstration data. It does not send invoices, process payments, calculate tax, or export PDFs.

The public demo was checked on 26 October 2026: the dashboard, invoice details, and revision history loaded successfully from the hosted backend. It remains a demonstration rather than a production accounting system, and additional verification and safeguards would be needed before real financial use.

For a closer look

Technical notes

Architecture, recorded checks, and the remaining engineering work.

Architecture and data

The React interface communicates with a GraphQL API. Services handle ownership, totals, status changes, and revision snapshots; repositories manage PostgreSQL records through Prisma.

A user owns invoices, each with line items, addresses, and numbered revisions. Stable line-item IDs support comparisons. Revision snapshots store the invoice’s business state, leaving out ownership and account data. Administrators can work across owners; ordinary accounts are restricted to their own invoices.

Client validation helps people enter data, while server-side checks enforce ownership and recalculate totals. Money is stored in Decimal database columns, although calculation still uses JavaScript numbers.

Testing and verification

Unit tests isolate application rules, integration tests exercise persistence and authorization against PostgreSQL, and Chromium tests cover desktop and mobile workflows. The browser test setup starts a fresh database with synthetic records.

In the last recorded local run, 180 backend unit tests, 158 PostgreSQL integration tests, 118 frontend tests, and 17 browser tests passed, along with type checks, lint, and builds, at the recorded source version. The checks include creating and editing invoices, rejecting unauthorized requests, comparing and restoring revisions, reloading saved changes, and handling invalid forms.

These are local project results, not a check of the hosted application. Against the public demo, I have only confirmed that the dashboard, an invoice, and its revision history load. Wider browser and physical-device testing, production sign-in verification, and a security review remain outstanding.

Remaining engineering work

Remaining work includes saving invoices and history in one transaction, handling simultaneous revision numbering, consistent currency rounding, and tighter server-side date and status validation. Restoration does not yet restore the invoice’s created date; deleting an invoice also deletes its history. History is append-only by convention, rather than a database-enforced audit trail.

Demo Mode shares one workspace among all visitors rather than isolating each one. Some long comparison values need layout refinement.

Where this applies

The same work, in other projects.

Records owned by accounts, server-side rules, and a history of changes are the core of many business applications:

  • Customer and member portals
  • Registration and booking workflows
  • Internal administrative tools and database-backed dashboards
  • Integrations and processes that off-the-shelf software doesn’t fit

I can work directly with an organization on what it needs, or with a designer or agency that already has the visual direction set and needs the application built behind it.

Custom software & agency work

Have a design that needs an application behind it?

Tell me who uses it, what they need to change, and what should happen when something goes wrong. We can work out the scope for a practical internal tool or client portal.

Let’s talk about your project