How mikededo/stack works
High-Level Components
a) Applications Layer:
• Finance App (Port 3000)
• i18n App
• Advent App
Each as separate containers showing their internal structure
b) Shared Packages Layer:
• UI Components (@stack/ui)
• Actions (@stack/actions)
• Utils (@stack/utils)
• Layouts (@stack/layouts)
• Supabase Integration (@stack/supabase)
c) Infrastructure Layer:
• Supabase (Database & Authentication)
• Coolify (Deployment Platform)
Component Relationships
a) Inter-component Dependencies:
b) Deployment Flow:
• Source Code → Coolify → Deployed Apps
Detailed Component Breakdown
Finance App:
• Frontend (SvelteKit)
• Public Routes
• Private Routes
• Domain Logic
• Database Tables
• Books
• Expenses
• Tags
• Budget
i18n App:
• Frontend (SvelteKit)
• Project Management
• Language Management
• Translation Editor
• Database Tables
• Projects
• Languages
• Translations
Infrastructure Details
Supabase Section:
• PostgreSQL Database
• Authentication
• Row Level Security
• API Layer
Coolify Section:
• Build Pipeline
• Deployment Configuration
• Port Mapping
Additional Notes
Important details:
• Port mappings (3000 for Finance)
• Environment configurations
• Authentication flow
• Database migration paths
• Local development setup
[Applications Layer]
• ↓
[Shared Packages Layer]
• ↓
[Infrastructure Layer]
Remember to:
• Keep components aligned and properly spaced
• Use consistent styling for similar components
• Version information and deployment requirements
• Development vs production configurations