The Stack of This Site
Every moving part of a real production website, what each one is for, and why it was chosen over something bigger.
Why start with the stack
You cannot reason about deploying, monitoring or recovering a system until you can name its parts. Here is everything that makes this site work, grouped by job.
The application
- Node.js 22 with Express. One server process answers every request. Express is small and well understood; the whole routing layer is plain JavaScript.
- EJS templates. Pages are HTML with small bits of JavaScript in them, rendered on the server. No front-end framework, no client-side build step.
- Markdown with YAML front matter. Almost all writing (travel guides, history sections, these chapters) lives as Markdown files in the repository. A file is a page; its front matter holds the title, summary and status.
- Section folders. Each section (travel, history, law, the Corporate pages and so on) has the same name in every layer:
content/,routes/,views/,lib/. A test fails if a file lands in the wrong place.
The consequence of this design is important for DevOps: most of the site is code and text in Git. A deploy ships the content as well as the code, and Git history is the backup for both.
The data that is not in Git
Some things cannot live in files, because visitors create them:
- Firestore (Google's document database) holds accounts, subscribers to the Sunday Note, likes, the payments ledger and the private Ravi OS workspace.
- Cloud Storage holds photos and a few generated reports.
This split decides the backup strategy later: Git protects the first group, and the second group needs real database backups. That is the subject of the Data and Recovery series.
The delivery pipeline
- GitHub hosts the repository. Every change arrives as a pull request.
- GitHub Actions runs the test suite on every pull request and every push to the main branch.
- Cloud Build runs on every push to main. It runs the tests again, builds a Docker image, stores it in Artifact Registry and deploys it.
- Cloud Run serves the site from the
asia-south1(Mumbai) region. It runs the container, scales it, gives it HTTPS and keeps every past version as a revision.
Outside services
| Service | Job |
|---|---|
| Firebase Authentication | Google sign-in |
| Umami | Privacy-friendly visitor analytics (no cookies tracking people across sites) |
| Resend | Sending email |
| Razorpay | Payments, when paid sections are switched on |
| Gemini | The language model behind the AI mentor |
Each one is a dependency that can fail. A good design makes sure one failing service degrades one feature, not the whole site. You will see this pattern again and again: analytics failing must not stop a page from loading.
Watching the site
- Ravi OS, a private dashboard inside the site, shows health checks, speed history, deploys and tasks.
- A scheduled health check opens a rotating set of pages on the live site and records status and speed.
- A Lighthouse job in GitHub Actions measures the speed of key pages after every deploy and four times a day.
Why this stack and not a bigger one
A small site does not need Kubernetes, a message queue or a microservice per section. Every extra moving part is something to patch, monitor and understand at 2 a.m. The rule used here: pick the smallest managed service that does the job, and only add a part when a real problem demands it. Cloud Run instead of a cluster. Firestore instead of running a database. Markdown in Git instead of a content management system.
The trade-off is real: managed services cost money per use and lock you a little into one cloud. For a site of this size, that is far cheaper than the time it would take to run the same things by hand.
Try it yourself
Draw your own system as three boxes: code and content (in Git), data (created by users), outside services. Under each, list what would be lost if it vanished tonight, and how you would get it back. The empty answers are where to start.