Rajdeep Singh

← Back to show

This Website

FirebaseNode.jsCloud Functions

A personal site built with static HTML and a Node.js build script, deployed on Firebase Hosting. A custom CMS backed by Firestore and Cloud Functions enables one-click publish: content is edited in the browser, rendered server-side via the Hosting REST API, and deployed without a local build step.

Architecture

  • Firebase Hosting — static serving with cleanUrls, custom caching headers, and HSTS
  • Cloud FunctionspublishSite generates all HTML/XML from Firestore content and deploys via the Hosting REST API; getAnalytics proxies GA4 Data API requests
  • Firestore — stores projects, writing posts, books, bio text, and static file hashes
  • Admin CMS — Google Sign-In, live editor for all content types, one-click publish button
  • GA4 Analytics Dashboard — 7-day totals, top pages, device breakdown, rendered in the admin panel

Design Philosophy

  • Self-hosted fonts, minimal external requests
  • Dark mode via prefers-color-scheme
  • Under 5KB per page
  • No JavaScript frameworks