Back to projects

Case Study

Birthday Reminder Pro

An offline-first birthday manager for web and Android, with optional cloud sync and Google Calendar integration

Personal project, built alone: concept, architecture, frontend, cloud integration, testing, CI/CD, deployment and documentation.

Role
Solo developer
Timeframe
August 2025 to November 2026. Version 1.0 released on July 12, 2026, version 1.4.3 on November 16, 2026 live demo without an account, demo data with one click

Context / problem

Birthdays end up scattered across phone contacts, social networks and calendars. A reminder app is only useful if it keeps working when the network does not, and if nobody has to create an account just to try it.

Birthday Reminder Pro stores every entry on the device first, in IndexedDB, and works fully offline. Signing in with Google is optional: it adds sync across devices through Firestore and two-way sync with Google Calendar. The same Angular code runs as a prerendered PWA on Cloudflare Pages and as an Android app built with Capacitor.

What it does

  1. Manages birthdays with photos, notes, categories, search, age and zodiac sign. Everything is written to IndexedDB first, so the app works without a connection and without an account.
  2. Syncs across devices after an optional Google sign-in. Changes made offline wait in a pending-changes queue and are sent to Firestore when the connection returns.
  3. Syncs with Google Calendar one way or both ways, as yearly recurring events, including later edits and deletions.
  4. Sends reminders as browser notifications through the service worker and as native notifications on Android, with scheduled messages that fill in the person's name and age.
  5. Imports JSON, CSV and vCard, exports JSON and CSV, and shows statistics, category counts and the monthly distribution of birthdays. The interface is available in English and Italian, with a dark mode.

In numbers

  • 1200+commits since August 2025
  • 2200+unit testsVitest in browser mode, real Chromium
  • 120+Cypress end-to-end tests, including accessibility checks with axe-core
  • 72tests for the Firestore and Storage security rules, run against the emulator
  • > 91 %statement coverageCI fails below 91 % statements or 89 % branches
  • 470 KBmain bundle; CI fails above 500 KB
  • 130+merged pull requests, each checked by CI
  • 44releases since version 1.0, versioned automatically

Technical highlights

  1. Offline-first, with the device as the source of truth.

    Every write goes to IndexedDB first and updates the NgRx store optimistically, with a backup to roll back on failure. Firestore is a replica, not the primary store. The trade-off is written down: conflicts are resolved by the most recent update, not merged field by field.

  2. Firebase only for people who sign in.

    The Firebase SDK is never imported statically. A small cookie set at sign-in (Secure, SameSite=Strict, no secret in it) tells the app at startup whether to load it, so visitors without an account never download it. A Cypress test checks this.

  3. Security rules tested like code.

    50 tests for the Firestore rules and 22 for the Storage rules run against the Firebase emulator in CI. App Check with reCAPTCHA Enterprise protects the backend. A CI script checks the Content Security Policy and fails when an image host is allowed in img-src but missing from connect-src: that gap once made the service worker answer 504 for blocked photos.

  4. A pipeline that stops regressions.

    Every pull request runs lint, type checks, unit tests with coverage gates, Cypress end-to-end tests, a visual regression report on 18 screens, Lighthouse CI (accessibility and SEO at least 0.9) and a bundle budget. npm run ci:local runs the same chain locally.

  5. Releases and maintenance on autopilot.

    semantic-release derives the version and the changelog from conventional commits, and every release on main is deployed to Cloudflare Pages. Dependabot patch and minor updates are merged once CI is green. A weekly health check reviews workflows, vulnerabilities and the live site, and opens a single issue when something needs attention.

  6. Measured before fixed.

    The birthday list jumped while scrolling. Tracking each row's offset on the live site counted 60 jumps of up to 196 px at a width of 768 px. Rows had different heights, while the virtual scroll assumed a fixed one. After the fix, the same measurement showed 0 jumps at all three tested widths, and every row had the expected height at 20 widths from 320 to 1920 px.

Tech stack

  • Angular 22
  • TypeScript
  • NgRx
  • RxJS
  • Angular Material
  • Angular SSR
  • Capacitor 8
  • IndexedDB
  • Firebase Auth
  • Firestore
  • App Check
  • Google Calendar API
  • Sentry
  • Vitest
  • Cypress
  • axe-core
  • Lighthouse CI
  • GitHub Actions
  • semantic-release
  • Cloudflare Pages

The most useful result

A real account had 1004 documents in Firestore for 61 people. Deduplication only cleaned the list shown on screen: local copies with a new ID were uploaded again, the losing cloud copies were never deleted, and the real-time listener brought them back. On top of that, every sign-in ran the merge twice. The fix deletes the losing copies only after the survivors are saved, never deletes while offline, and runs one merge per user. Affected accounts clean themselves up on their next sign-in, and each of these cases is covered by tests.

What I learned

  • Offline-first moves the hard part into synchronisation. The most serious bug in the project was not in the interface but in merging local and cloud data.
  • A number makes a bug discussable. Measuring the scroll jumps and counting the duplicate documents turned vague reports into fixes that can be verified.
  • Free tiers shape the scope, and limits belong in the documentation. Cloud photo storage needs a paid Firebase plan, so it sits behind a feature flag and photos stay on the device in the demo. Google Calendar access is capped at 100 users until Google verifies the app. Both are documented as known limitations.
  • A long-running project needs maintenance as a process. The app started on Angular 17 and now runs on Angular 22 with zoneless change detection, kept current by Dependabot, automated releases and a weekly health check.

Screenshots

  • Dashboard with demo data: 45 birthdays, 5 in the next 30 days, an average age of 35 and the next birthday
  • The birthday list: each entry shows photo, age, date, a note and the days left, with actions to edit or delete
  • Backup and restore with JSON, CSV and vCard, and the monthly distribution of birthdays
  • The categories overview in dark mode, used to filter the list