Skip to content

Architecture Diagrams

This page contains programmatically-generated architecture diagrams that visualize CloudAlt’s system design, deployment architecture, and user flows. Click any diagram to view it in full size.


Complete system architecture for the hospitality division, showing the Django backend, React/React Native frontends, and external services.

Stay Overnight Architecture

Key Components:

  • Django REST API (port 8000)
  • PostgreSQL database via Supabase
  • GCP Cloud Storage for media
  • Firestore for real-time chat
  • React web + React Native mobile apps

Download High-Res PNG


Overview of the Nx monorepo structure showing all applications, shared packages, and dependencies.

Monorepo Architecture

Includes:

  • 6 main applications (Stay Overnight, Roommate, AltFinder, etc.)
  • Shared packages (UI components, design tokens, utilities)
  • Build orchestration with Nx

Download High-Res PNG


Production deployment architecture on GCP Cloud Run with auto-scaling, CDN, and database configuration.

Production Deployment

Infrastructure:

  • GCP Cloud Run for containerized deployment
  • Cloud CDN for static assets
  • Supabase PostgreSQL (managed)
  • GCP Firestore for real-time features
  • Cloud Storage for media uploads

Download High-Res PNG


Detailed deployment architecture showing all services, networking, and external integrations.

Deployment Architecture Clarified

Details:

  • Service mesh configuration
  • API Gateway routing
  • Authentication flow (Supabase Auth)
  • External service integrations

Download High-Res PNG


Infrastructure cost comparison between different deployment approaches (Cloud Run vs VMs vs Kubernetes).

Cost Comparison

Analysis:

  • Development environment costs
  • Staging environment costs
  • Production scaling costs
  • Break-even analysis

Download High-Res PNG


Complete user profile lifecycle from signup through verification and ongoing activity.

Profile Lifecycle

Stages:

  1. Initial signup
  2. Email verification
  3. Phone verification
  4. Profile completion
  5. Role selection (Host/Traveler)
  6. Ongoing profile updates

Download High-Res PNG


User onboarding flow for the Stay Overnight division.

Stay Overnight Onboarding

Steps:

  • Welcome screens
  • Role selection
  • Profile creation
  • Verification requirements
  • First interaction prompts

Download High-Res PNG


Detailed sequence diagram showing the technical flow of the onboarding process.

Onboarding Sequence

Technical Flow:

  • Frontend → Backend API calls
  • Database transactions
  • Email/SMS verification triggers
  • State management updates

Download High-Res PNG


Infrastructure supporting the onboarding process including verification services and email delivery.

Onboarding Infrastructure

Services:

  • Supabase Auth for email verification
  • Twilio for phone verification
  • SendGrid for transactional emails
  • GCP Secret Manager for API keys

Download High-Res PNG


Previous onboarding architecture for reference and migration planning.

Onboarding Legacy

Note: This represents the original onboarding flow before recent optimizations. Kept for migration reference.

Download High-Res PNG


Email and phone verification architecture with fallback strategies.

Verification Architecture

Features:

  • Multi-provider verification (primary + fallback)
  • Rate limiting
  • Abuse prevention
  • Verification code delivery and validation

Download High-Res PNG


Complete developer workflow from local development through deployment.

Development Workflow

Workflow:

  1. Local development (Django + Vite)
  2. Git commit and push
  3. GitHub Actions CI/CD
  4. Automated testing
  5. Deployment to staging
  6. Production deployment

Download High-Res PNG


Development environment setup specific to the Stay Overnight division.

Stay Overnight Dev Environment

Setup:

  • Django dev server (localhost:8000)
  • Vite dev server (localhost:5173)
  • Local PostgreSQL or Supabase connection
  • Hot module reloading
  • API proxy configuration

Download High-Res PNG


Production environment configuration for the Stay Overnight division.

Stay Overnight Production

Production Stack:

  • Cloud Run deployment
  • Production database
  • CDN for assets
  • Monitoring and logging
  • Auto-scaling configuration

Download High-Res PNG


All diagrams are available as high-resolution PNG files. Click the “Download High-Res PNG” link under each diagram, or access them directly from the /diagrams/ directory.

These diagrams are generated programmatically from code located in cloudalt-frontend/docs/archplans/. To update:

  1. Modify the Python generation script
  2. Run python generate_diagram.py in the archplans directory
  3. Copy updated diagrams to this docs site
  4. Commit changes to both repositories

See the Architecture as Code README for details.