# sonykurian96/dhatnoon_backend_services architecture

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

- Interactive diagram: https://gitdiagram.com/sonykurian96/dhatnoon_backend_services
- Repository: https://github.com/sonykurian96/dhatnoon_backend_services

## Overview

##### Main Components Identification

a) Client Layer (Mobile Applications)
- These are evident from the platform-specific directories in the file tree

b) Core Application Layer
- Video Call Module (agora_video_call.dart)
- Geolocation Services (geolocation.dart)
- Photo Capture System (taking_photos.dart)
- Page Navigation (page.dart)
- Intermediate Handler (intermediate.dart)

**┌─────────────────────────────────────────────────────┐**
- Client Platforms                    │
- ┬───────────┬───────────┬────────────────┤
- iOS     │  Android  │   Web     │ Desktop        │
- ┬─────┴─────┬─────┴─────┬─────┴────────────────┘

- ┼───────────┘
- ▼
**┌─────────────────────────────────────────────────────┐**
- Flutter Application Core               │
- ┤
- ┌─────────────┐  ┌─────────────┐  ┌─────────────┐ │
- Video Call  │  │ Geolocation │  │    Photo    │ │
- Module    │  │   Service   │  │   Capture   │ │
- ┘  └─────────────┘  └─────────────┘ │
- ┘

##### Important Elements

a) External Services Integration:
- Agora SDK for video calls
- Device hardware access (camera, GPS)
- Platform-specific implementations

b) Data Flow Indicators:
- User interaction flow
- Platform-specific compilation paths
- Service communication routes

##### Technical Details to Highlight

- Flutter framework as the primary technology
- Platform channels for native code communication
- Asset management system
- Plugin architecture for platform-specific features

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Platforms
        direction TB
        iOS["iOS Client"]
        Android["Android Client"]
        Web["Web Client"]
        subgraph Desktop
            direction TB
            Windows["Windows Client"]
            Linux["Linux Client"]
            MacOS["macOS Client"]
        end
    end

    subgraph Core["Flutter Application Core"]
        direction TB
        Main["Main Application Entry"]
        Video["Video Call Module"]
        Geo["Geolocation Services"]
        Photo["Photo Capture System"]
        Page["Page Navigation"]
        Inter["Intermediate Handler"]
    end

    subgraph NativeEntry["Platform-Specific Entry Points"]
        direction TB
        AndroidEntry["Android Entry"]
        iOSEntry["iOS Entry"]
        MacEntry["macOS Entry"]
        LinuxEntry["Linux Entry"]
        WinEntry["Windows Entry"]
    end

    subgraph Assets
        LocationData["Location Data"]
    end

    %% Platform connections to Core
    iOS --> Main
    Android --> Main
    Web --> Main
    Windows --> Main
    Linux --> Main
    MacOS --> Main

    %% Core interconnections
    Main --> Video
    Main --> Geo
    Main --> Photo
    Main --> Page
    Main --> Inter

    %% Native Entry connections
    iOS --- iOSEntry
    Android --- AndroidEntry
    MacOS --- MacEntry
    Linux --- LinuxEntry
    Windows --- WinEntry

    %% Asset connections
    Geo --> LocationData

    %% Click events for components
    click iOS "https://github.com/sonykurian96/Dhatnoon_backend_services/tree/main/ios"
    click Android "https://github.com/sonykurian96/Dhatnoon_backend_services/tree/main/android"
    click Web "https://github.com/sonykurian96/Dhatnoon_backend_services/tree/main/web"
    click Windows "https://github.com/sonykurian96/Dhatnoon_backend_services/tree/main/windows"
    click Linux "https://github.com/sonykurian96/Dhatnoon_backend_services/tree/main/linux"
    click MacOS "https://github.com/sonykurian96/Dhatnoon_backend_services/tree/main/macos"
    click Video "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/lib/agora_video_call.dart"
    click Geo "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/lib/geolocation.dart"
    click Photo "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/lib/taking_photos.dart"
    click Page "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/lib/page.dart"
    click Inter "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/lib/intermediate.dart"
    click Main "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/lib/main.dart"
    click LocationData "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/assets/location.json"
    click AndroidEntry "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/android/app/src/main/kotlin/com/example/raw_testing/MainActivity.kt"
    click iOSEntry "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/ios/Runner/AppDelegate.swift"
    click MacEntry "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/macos/Runner/AppDelegate.swift"
    click LinuxEntry "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/linux/main.cc"
    click WinEntry "https://github.com/sonykurian96/Dhatnoon_backend_services/blob/main/windows/runner/main.cpp"

    %% Styling
    classDef platform fill:#b3e0ff,stroke:#333,stroke-width:2px
    classDef core fill:#98FB98,stroke:#333,stroke-width:2px
    classDef native fill:#FFB6C1,stroke:#333,stroke-width:2px
    classDef asset fill:#FFE4B5,stroke:#333,stroke-width:2px

    class iOS,Android,Web,Windows,Linux,MacOS platform
    class Main,Video,Geo,Photo,Page,Inter core
    class AndroidEntry,iOSEntry,MacEntry,LinuxEntry,WinEntry native
    class LocationData asset
```
