High-Level Design
Executive Summary
Royal Glow Salon & Spa is a premium beauty and wellness establishment in Bengaluru, India. This document describes the high-level design of the full-stack digital operations platform.A monolithic modular monorepo on Next.js 16 + Neon + Cloudflare’s edge, designed for 20k–50k users at ₹0/month, India-first (DPDP, IST, paise, GST 18%), with Lighthouse ≥95 performance and 100 accessibility/SEO.
Scale Targets
Key Constraints
Architecture Overview
Layered Monorepo
Hosting Topology
Technology Decisions Matrix
Data Architecture
Database Strategy
Neon PostgreSQL 16 with Git-like branching.Data Model Overview (38 tables)
Key Data Conventions
Three-Layer Cache Hierarchy
Authentication & Authorization
Auth Architecture
- Tab Title
- Tab Title
- Tab Title
- Provider: Google OAuth 2.0 only (no email/password)
- Sessions: PostgreSQL
sessiontable (HttpOnly, Secure, SameSite=Lax cookies) - CSRF: Built-in via Better Auth
- Token type: Session-based (not JWT) — revocable, server-validated