Problem
My family tracked bills and household supplies in a shared Google Sheet. Bills were entered late or twice, nobody knew what was due this week, and supplies ran out without warning. I wanted the bills to arrive on their own and a reminder that each person actually sees.
Architecture
The dashed box is one Puma process; PostgreSQL runs as its own service.
One Rails 8.1 monolith on Railway with one PostgreSQL database. Solid Queue runs inside Puma, and its tables live in the same database, so there is no Redis and no separate worker service to run.
Full data flow: inputs → app → outputs
Arrows show data flow. Solid Queue runs inside the Puma process; it is not a separate service.
Engineering challenges
- The same bill from three sources. A bill can arrive from the daily gas sync, a forwarded e-bill email, or a manual barcode scan. It has to land once, in the right billing period, and be marked paid when the company says so.
- A job that runs twice. Each member must still get exactly one digest a day, in their own time zone. Unique indexes act as locks, and a push only counts as delivered once the phone confirms it. I wrote this up in One reminder a day, even when the job runs twice.
- Push on a closed Android app, overnight. Before building on Web Push, I measured it on a real phone with the app closed, the screen off and battery saver on. Receipts ranged from half a second to 112 minutes; an overnight retest in deep Doze arrived in 4.4 minutes, which is fine for a daily digest.
- Backups that actually restore. A pre-launch check found the image’s
pg_dump(15) couldn’t dump Railway’s PostgreSQL 18, so the backup job would have failed. The Dockerfile now pins the client to the server’s major version.
Technical decisions
Each decision is written up as an ADR in the repo.
| ADR | Decision | Why |
|---|---|---|
| 0001 | Rails 8.1 + one PostgreSQL on Railway, Solid Queue inside Puma | One deployable for one maintainer, no Redis. Expo + Supabase and an Expo app + Rails API were considered. |
| 0002 | PWA with Web Push instead of native apps | A native shell carried the largest security surface (PKCE handoff, App Links, cookie injection) for only the Android members. |
| 0003 | Measure Web Push before relying on it | A spike page records when the push service accepted each push and when the phone confirmed it. |
| 0004 | Photos on a Railway volume, served through a membership check | Sanitized before attach; no public storage routes. An S3 mirror is the migration path if needed. |
| 0005 | Verify ten outside-service assumptions before building | Caught the pg_dump mismatch; Google re-auth didn’t behave as documented, so it became an emailed 6-digit code. |
| 0006 | Add-only Google Drive backup with the narrowest scope | drive.file only, its own OAuth client, an encrypted refresh token, and nothing ever deleted from Drive. |
Results
- Replaced the family sheet and is in daily use.
- About 740 tests, with Brakeman, RuboCop and dependency audits in CI.
- Encrypted weekly database backups plus a Google Drive backup, and security-scan findings fixed as they come in.
What it does
- Sheet to product: Shared ledgers with one-step bill entry by scanning a Taiwan bill's barcodes (or reading a bill PDF or photo), recurring bills that never duplicate, expense charts, and a preview-then-commit CSV import that is safe to re-run.
- Bills that fill themselves in: A daily job syncs gas bills from the utility's site; electricity and water bills arrive as forwarded e-bill emails, read through the Gmail API only when the company signed them. Each bill is matched to its period, never added twice, and marked paid when the company says so.
- Supplies and run-out forecasts: Tracks household stock from product barcodes, Taiwan e-invoice QR codes and invoice PDFs, estimates each item's usage rate and run-out date, and sends a restock alert in time to buy more. A where-to-buy view ranks every brand and store by price per piece from past purchases.
- Reliable reminders: One daily digest per member in their own time zone, by Web Push, email and in-app inbox. Unique indexes act as locks so a double run never sends twice, and push counts as delivered only after the device confirms it.
- Operations and testing: Encrypted weekly database backups plus a Google Drive backup. Brakeman, RuboCop and dependency audits run in GitHub Actions, and security-scan findings are fixed as they come in.
Demo
A 100-second walkthrough of Household Tracker on a phone. The live app is invite-only because it holds my family's real data. I can walk you through it on a call.