Anthony Chilaka monogram
LinkedInUpworkWhatsAppX

Portfolio Project Walkthroughs

Real build walkthroughs from this site's own infrastructure, problem, approach, and outcome. More walkthroughs coming soon.

Why Firebase

The Astra WordPress build on Namecheap shared hosting was costing close to $140 a year. On top of that, the free Google Meet link behind my Cal.com booking flow capped every call at 60 minutes, cutting off client and mentee sessions that needed more time.

First move: migrate the domain to Squarespace. Second: start a Google Workspace Starter plan, which removed the meeting-length cap. That left one problem still unsolved: hosting a real site and backend without adding another recurring cost. Researching free-tier options is what surfaced Firebase, and it has held up since, Hosting, Functions, Firestore, and App Check, all inside Google's free-tier allowance at this traffic level.

Secure Template-Request Flow — Serverless OTP Email Verification

Live in production, confirmed end-to-end
github.com/anthchilaka/mpa-web-clone-v2

Problem

A plain "email us" link on the WordPress template gallery invites spam and gives no proof the requester owns the address. Needed verified delivery with zero standing account infrastructure.

Approach

Two Firebase Cloud Functions (2nd-gen, europe-west1), gated by App Check (reCAPTCHA Enterprise) since the endpoints are public and unauthenticated. Firestore holds OTP state only: SHA-256 hashed codes, single-use, 10-minute expiry, 60-second resend cooldown, 5-attempt cap, and the document ID itself is a hash of the email, so no plaintext address sits in the database at rest. Firestore rules deny all client reads and writes; only the Admin SDK inside the Functions can touch the collection. Delivery runs through Resend on a dedicated sending subdomain, its own isolated team separate from other projects' mail infrastructure.

Outcome

Confirmed working end-to-end in production: template selected, email entered, OTP requested, verified, and the request email delivered via Resend. Three separate infrastructure issues stood between deploy and a working flow, a missing Cloud Build IAM role, a Domain Restricted Sharing policy silently blocking Cloud Run's public-invoker grant, and a corrupted API key from a masked terminal prompt, each only surfacing once the last one was fixed.

Stack: Next.js (static export), Firebase Cloud Functions (2nd-gen), Firestore, Firebase App Check (reCAPTCHA Enterprise), Resend

The Canonical Signal Behind the SPA vs MPA Comparison

A real snippet from this site's own SPA (single-page application) → MPA (multi-page application) migration — the shared helper every page calls to set the canonical render-mode signal.

TypeScriptCopy
export function pushPageView(): void {
  window.dataLayer = window.dataLayer || []
  window.dataLayer.push({
    event: 'page_render_mode_set',
    page_render_mode: 'mpa',
  })
}