How boostcampwm-2024/ios10-memorialhouse works
High-Level Architecture Overview
The system follows Clean Architecture with MVVM pattern, divided into distinct layers:
a. Presentation Layer (MHPresentation)
• Implement MVVM pattern
• Handle UI components and user interactions
• Contains ViewControllers, Views, and ViewModels
b. Domain Layer (MHDomain)
• Contains business logic
• Defines use cases and repository interfaces
• Houses core entities and business rules
c. Data Layer (MHData)
• Implements repository interfaces
• Manages data persistence
• Handles local storage operations
Key Components
a. Core Modules:
• Presentation | | Domain | | Data |
• Layer |<--->| Layer |<--->| Layer |
b. Storage Systems:
• CoreData | | FileManager |
• (Metadata & URLs) | | (Media Storage) |
Detailed Component Breakdown
• UI Components |
• Book Views |
• Media Editors |
• Settings |
• ^----------+
• v----------+
• View Models |
• Book VM |
• Media VM |
• Settings VM |
• ^----------+
• v----------+
• Use Cases |
• Book Management |
• Media Handling |
• User Preferences |
• ^----------+
• v----------+
• Repositories |
• Book Repository |
• Media Repository |
• ^----------+
• v----------+
• Local Storage |
• CoreData |
• FileManager |
Media Handling Flow
• Media | | Media | | Storage |
• Capture UI |---->| Processor |---->| Manager |
Important Relationships to Highlight
• Dependency flow (always pointing inward to the domain layer)
• Data flow between components
• Media handling pathways
• Storage interaction patterns
Additional Elements
• Notes about key architectural decisions
• Critical paths for main features
• Error handling flow
• Clean Architecture boundaries
• MVVM pattern implementation
• Media handling capabilities
• Local storage strategy (CoreData + FileManager)
• Key user flows for book creation and management