How nativeapptemplate/nativeapptemplate-free-ios works
Key Architectural Elements
a) Core Services:
┌─────────────────┐
• UI Layer │
• ┬────────┘
• ↓
┌─────────────────┐
• Business Logic │
• ┬────────┘
• ↓
┌─────────────────┐
• Data Layer │
• ┬────────┘
• ↓
┌─────────────────┐
• External API │
• ┘
b) Data Flow:
• CRUD operations for Shops
• Authentication flow
• Session management
• API communication
Specific Implementation Details
Key technical components:
a) Networking Layer:
• JSONAPI implementation
• Request/Response adapters
• Services (AccountPassword, Me, Permissions, Shops)
b) Persistence:
• KeychainStore for secure storage
• Local data caching
c) Authentication:
• Login/SignUp flows
• Session management
• Password reset functionality
Component Relationships
Key interactions:
UI Components ←→ ViewModels
ViewModels ←→ Repositories
Repositories ←→ Network/Persistence
Network Layer ←→ External API