Technical overviewFinance software

Daybook

Accounting software built to keep the books right, even under pressure.

Source code

The code is private. How it works is explained below.

Role
Solo engineer
Evidence status
Live at daybook.pesanth.com with a demo sign-in for each role
Verified
2026-10-03

01

Purpose and scope

It handles invoices, payments, bank matching, and month-end close. Every entry must balance, and each safeguard has a test that fails if it is removed.

What it is used for

  • Record an entry without it posting twice.
  • Invoice a customer and take part payments.
  • Match a bank statement against the books.
  • Close a month so it cannot be changed.
  • C#
  • .NET 10
  • ASP.NET Core
  • EF Core
  • SQL Server
  • Angular
  • Kubernetes
  • GitHub Actions

02

Architecture

What you see

Website

Angular website

14 screens

Entry

Demo sign-in

One button per role

Secure sign-in

Server

Server

.NET API

Handles requests

Logic

Accounting rules

Every rule in one place

Background job

Bank matcher

Matches statements in the background

Reads and saves

Data

Database

SQL Server

Stores the books

Scheduled job

Nightly reset

Rebuilds the demo books

Text equivalent: An Angular website talks to a .NET server that holds every accounting rule. SQL Server stores the books and enforces the rules again.

03

Engineering decisions

Stop double entries

A repeated request cannot post twice, and invoices cannot be overpaid.

Separate duties

The person who drafts an invoice cannot also issue it.

No gaps in invoice numbers

A failed invoice gives its number back.

Calculate balances, do not store them

Balances always come from the entries, so they cannot drift.

04

Verification evidence

  • Each safeguard was removed to prove its test fails. Without the month-end lock, the test failed five runs of five.
  • A test confirms no page of the API can be reached without signing in.
  • With 2,000,000 entries, one balance went from 41.7 ms to 1.3 ms.
  • 222 .NET tests and 72 website tests pass.
verified-2026-10-03
$ dotnet test
Ledger.Domain.Tests  113 passed
Ledger.Api.Tests     109 passed · SQL Server 2022 in a container
$ POST /journal-entries  (same Idempotency-Key, twice)
201 Created · then 200 with Idempotent-Replay: true
✓ one entry posted, trial balance in balance

05

Limitations