How rightbrain/appza-backend works
Main Components
a) Frontend Layer:
• Web Interface (Views in resources/views)
• Theme Management Interface
• Component Management Interface
• Build Management Interface
b) API Layer:
• V1 API Controllers (app/Http/Controllers/Api/V1)
• Authentication Controllers
• Resource Controllers
c) Core Application Layer:
• Models (app/Models)
• Services (app/Services)
• Jobs (app/Jobs)
• Mail System (app/Mail)
d) Database Layer:
• Multiple related tables (as seen in migrations)
• Key entities: Themes, Components, Builds, Config
e) External Services:
• Build System for APK/iOS
• Mail Service
• File Storage System
[Client Layer]
• ↓ ↑
[Web/API Layer]
• ↓ ↑
[Application Core]
• ↓ ↑
[Service Layer]
• ↓ ↑
[Database Layer]
Key Relationships to Highlight
a) Theme Management Flow:
User Interface → ThemeController → Theme Model → Database
• ↓
• Theme Components
• ↓
• Style Properties
b) Build Process Flow:
API Request → BuildController → ProcessBuild Job
• ↓
• Build Service
• ↓
• Build History
Important Architectural Elements
• MVC Pattern implementation
• Service Layer for business logic
• Job Queue system for builds
• Resource-based API structure
• Component-based theme system
Specific Implementation Details
[Theme Management]
Component Groups ← → Components ← → Style Properties
• ↓
• Themes
• ↓
• Pages
• ↓
Global Config