# mantasdaskev/open-standup-mobile architecture

> Architecture diagram of the GitHub repository mantasdaskev/open-standup-mobile, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mantasdaskev/open-standup-mobile
- Repository: https://github.com/mantasdaskev/open-standup-mobile

## Overview

##### Main Components

a. Mobile Application Layer (Presentation)
- iOS Client
- Android Client
- Shared UI (Xamarin.Forms)
- ViewModels and Views
- Shell Navigation

b. Core Domain Layer
- Domain Entities (GitHubUser, Repository)
- Use Cases (Login, Logout, Posts, Profile)
- Events System
- Interfaces

c. Infrastructure Layer
- APIs Integration
- Data Access
- Authentication
- Services
- Platform-specific implementations

d. External Services
- GitHub GraphQL API
- OpenStandup API
- Geolocation Services
- Camera Services
- AppCenter Integration

##### Architecture Patterns to Highlight

- Clean Architecture (evident from the layer separation)
- MVVM Pattern (ViewModels folder structure)
- Dependency Injection (using Autofac, visible in Bootstrap folder)
- Repository Pattern (Data access)
- Use Case Pattern (Domain Features)

**┌─────────────────────────────────────────────────────┐**
- Presentation Layer                  │
- ┌─────────────┐  ┌─────────────┐  ┌─────────────┐ │
- iOS Client  │  │ Shared UI   │  │Android Client│ │
- ┘  └─────────────┘  └─────────────┘ │
- ┘
- ↕
**┌─────────────────────────────────────────────────────┐**
- Domain Layer                      │
- ┌─────────────┐  ┌─────────────┐  ┌─────────────┐ │
- Entities   │  │  Use Cases  │  │   Events    │ │
- ┘  └─────────────┘  └─────────────┘ │
- ┘
- ↕
**┌─────────────────────────────────────────────────────┐**
- Infrastructure Layer                  │
- ┌─────────────┐  ┌─────────────┐  ┌─────────────┐ │
- APIs     │  │  Services   │  │Repositories  │ │
- ┘  └─────────────┘  └─────────────┘ │
- ┘
- ↕
**┌─────────────────────────────────────────────────────┐**
- External Services                    │
- ┌─────────────┐  ┌─────────────┐  ┌─────────────┐ │
- GitHub Graph-│  │ OpenStandup │  │  Platform   │ │
- QL API   │  │    API      │  │  Services   │ │
- ┘  └─────────────┘  └─────────────┘ │
- ┘

##### Key Interactions to Highlight

- Authentication flow with GitHub
- Post publishing workflow
- Profile management
- Geolocation features
- Camera integration
- Data persistence flow

##### Additional Elements

- Notes for important architectural decisions
- Cross-cutting concerns (logging, authentication)
- Platform-specific implementations

##### Technical Details

- Xamarin.Forms as the UI framework
- Autofac for dependency injection
- SQLite for local storage
- GitHub OAuth authentication
- GraphQL API integration
- Platform-specific services

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles
    classDef presentation fill:#3498db,stroke:#2980b9,color:white
    classDef domain fill:#2ecc71,stroke:#27ae60,color:white
    classDef infrastructure fill:#e67e22,stroke:#d35400,color:white
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:white

    %% Presentation Layer
    subgraph PresentationLayer["Presentation Layer"]
        iOSClient["iOS Client"]:::presentation
        AndroidClient["Android Client"]:::presentation
        SharedUI["Shared UI"]:::presentation
        ViewModels["ViewModels"]:::presentation
        Views["Views"]:::presentation
        ShellNav["Shell Navigation"]:::presentation
    end

    %% Domain Layer
    subgraph DomainLayer["Domain Layer"]
        Entities["Domain Entities"]:::domain
        UseCases["Use Cases"]:::domain
        Events["Events System"]:::domain
        Interfaces["Core Interfaces"]:::domain
    end

    %% Infrastructure Layer
    subgraph InfrastructureLayer["Infrastructure Layer"]
        APIs["APIs Integration"]:::infrastructure
        DataAccess["Data Access"]:::infrastructure
        Auth["Authentication"]:::infrastructure
        Services["Services"]:::infrastructure
    end

    %% External Services
    subgraph ExternalLayer["External Services"]
        GitHubAPI["GitHub GraphQL API"]:::external
        OpenStandupAPI["OpenStandup API"]:::external
        GeoLocation["Geolocation Services"]:::external
        Camera["Camera Services"]:::external
        AppCenter["AppCenter Integration"]:::external
    end

    %% Relationships
    PresentationLayer --> DomainLayer
    DomainLayer --> InfrastructureLayer
    InfrastructureLayer --> ExternalLayer

    %% Click Events
    click iOSClient "https://github.com/mantasdaskev/open-standup-mobile/blob/master/src/OpenStandup/OpenStandup.Mobile/OpenStandup.Mobile.iOS"
    click AndroidClient "https://github.com/mantasdaskev/open-standup-mobile/blob/master/src/OpenStandup/OpenStandup.Mobile/OpenStandup.Mobile.Android"
    click ViewModels "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Mobile/OpenStandup.Mobile/ViewModels"
    click Views "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Mobile/OpenStandup.Mobile/Views"
    click ShellNav "https://github.com/mantasdaskev/open-standup-mobile/blob/master/src/OpenStandup/OpenStandup.Mobile/OpenStandup.Mobile/AppShell.xaml"
    click Entities "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Core/Domain/Entities"
    click UseCases "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Core/Domain/Features"
    click Events "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Core/Domain/Events"
    click Interfaces "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Core/Interfaces"
    click APIs "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Mobile.Infrastructure/Apis"
    click DataAccess "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Mobile.Infrastructure/Data"
    click Auth "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Mobile.Infrastructure/Authentication"
    click Services "https://github.com/mantasdaskev/open-standup-mobile/tree/master/src/OpenStandup/OpenStandup.Mobile.Infrastructure/Services"
    click GitHubAPI "https://github.com/mantasdaskev/open-standup-mobile/blob/master/src/OpenStandup/OpenStandup.Mobile.Infrastructure/Apis/GitHubGraphQLApi.cs"
    click OpenStandupAPI "https://github.com/mantasdaskev/open-standup-mobile/blob/master/src/OpenStandup/OpenStandup.Mobile.Infrastructure/Apis/OpenStandupApi.cs"
    click GeoLocation "https://github.com/mantasdaskev/open-standup-mobile/blob/master/src/OpenStandup/OpenStandup.Mobile.Infrastructure/Services/GeoLocationService.cs"
    click Camera "https://github.com/mantasdaskev/open-standup-mobile/blob/master/src/OpenStandup/OpenStandup.Mobile.Infrastructure/Services/CameraService.cs"
    click AppCenter "https://github.com/mantasdaskev/open-standup-mobile/blob/master/src/OpenStandup/OpenStandup.Mobile.Infrastructure/Services/AppCenterWrapper.cs"
```
