How game7/sportified works
Main Components
a. Frontend Layer:
• React/TypeScript components (in app/javascript)
• Asset pipeline (app/assets)
• View templates (app/views)
• Multiple theme support (shown in assets/stylesheets/themes)
b. Backend Layer:
• Rails controllers (organized by admin, API, and public interfaces)
• Models with complex relationships
• Background jobs and services
• Authentication system (Passwordless authentication visible in initializers)
c. External Services:
• Stripe integration (visible in migrations and controllers)
• Storage service (Active Storage configuration)
• Chromecast integration (shown in controllers and views)
Key Architectural Patterns to Highlight
a. Multi-tenancy Architecture:
• Tenant isolation
• Tenant-specific configurations
• Shared vs tenant-specific resources
b. Module Organization:
• League management
• Event management
• Registration system
• Product management
• User management
[Client Layer]
• Web Interface
• Admin Portal
• Public Pages
• Registration System
• Mobile Interface
• Chromecast Interface
[Application Layer]
• Controllers
• Admin Controllers
• API Controllers
• Public Controllers
• Services
• Payment Processing
• Event Management
• League Management
• Background Jobs
[Data Layer]
• Models
• Core (User, Tenant)
• League
• Events
• Products
• Active Storage
• Database (PostgreSQL)
[External Services]
• Stripe
• Storage Service
• Chromecast API
Integration Points
• API endpoints
• Webhook handlers
• External service connections