# jeikai/furnitureshop_appadmin architecture

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

- Interactive diagram: https://gitdiagram.com/jeikai/furnitureshop_appadmin
- Repository: https://github.com/jeikai/furnitureshop_appadmin

## Overview

##### Project type and purpose
- This is a multi-platform Flutter “admin” client for a furniture shop.
- It targets mobile (Android/iOS), desktop (Windows/Mac/Linux) and web.
- Its purpose is to let administrators log in, manage categories/products/discounts/guarantees/staff, view and respond to orders and chats, and receive notifications.

##### File structure
- Top‐level “android”, “ios”, “linux”, “macos”, “windows”, “web” directories = Flutter’s platform scaffolding.
- “lib” holds the Dart code, split into:
- data/ (dependency injection, auth, models, repositories, API servers, constants)
- screen/ (widgets/views + controller classes for each UI feature)
- main.dart (app entry point, bootstraps DI and routes)
- Presence of injector.dart → dependency‐injection (likely GetX or similar).
- auth_service.dart + google-services.json → Firebase authentication/push.

##### Readme insights
- Implies you must infer architecture from code.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Platform Shells
    subgraph "Platform Shells"
        AndroidShell["Android"]:::platform
        click AndroidShell "https://github.com/jeikai/furnitureshop_appadmin/tree/main/android/"
        iOSShell["iOS"]:::platform
        click iOSShell "https://github.com/jeikai/furnitureshop_appadmin/tree/main/ios/"
        WebShell["Web"]:::platform
        click WebShell "https://github.com/jeikai/furnitureshop_appadmin/tree/main/web/"
        LinuxShell["Linux"]:::platform
        click LinuxShell "https://github.com/jeikai/furnitureshop_appadmin/tree/main/linux/"
        MacOSShell["macOS"]:::platform
        click MacOSShell "https://github.com/jeikai/furnitureshop_appadmin/tree/main/macos/"
        WindowsShell["Windows"]:::platform
        click WindowsShell "https://github.com/jeikai/furnitureshop_appadmin/tree/main/windows/"
    end

    %% Flutter Application Core
    subgraph "Flutter App"
        subgraph "Core"
            Main["main.dart"]:::core
            click Main "https://github.com/jeikai/furnitureshop_appadmin/blob/main/lib/main.dart"
            Injector["injector.dart"]:::di
            click Injector "https://github.com/jeikai/furnitureshop_appadmin/blob/main/lib/data/di/injector.dart"
        end

        subgraph "Presentation Layer"
            LoginView["LoginPage"]:::presentation
            click LoginView "https://github.com/jeikai/furnitureshop_appadmin/blob/main/lib/screen/login/view/login_page.dart"
            DashboardView["DashboardPage"]:::presentation
            click DashboardView "https://github.com/jeikai/furnitureshop_appadmin/blob/main/lib/screen/dashboard/view/dashboard_page.dart"
        end

        subgraph "Controller Layer"
            LoginCtrl["LoginController"]:::controller
            click LoginCtrl "https://github.com/jeikai/furnitureshop_appadmin/blob/main/lib/screen/login/controller/login_controller.dart"
            DashboardCtrl["DashboardController"]:::controller
            click DashboardCtrl "https://github.com/jeikai/furnitureshop_appadmin/blob/main/lib/screen/dashboard/controller/dashboard_controller.dart"
        end

        subgraph "Data Layer"
            AuthSvc["AuthService"]:::data
            click AuthSvc "https://github.com/jeikai/furnitureshop_appadmin/blob/main/lib/data/auth/auth_service.dart"
            Models["Models"]:::data
            click Models "https://github.com/jeikai/furnitureshop_appadmin/tree/main/lib/data/models/"
            Repos["Repositories"]:::data
            click Repos "https://github.com/jeikai/furnitureshop_appadmin/tree/main/lib/data/repository/"
            Servers["API Servers"]:::data
            click Servers "https://github.com/jeikai/furnitureshop_appadmin/tree/main/lib/data/servers/"
        end

        subgraph "Assets"
            Assets["assets"]:::asset
            click Assets "https://github.com/jeikai/furnitureshop_appadmin/tree/main/assets/"
        end
    end

    %% External Services
    subgraph "External Services"
        FirebaseAuth["Firebase Auth"]:::external
        FCM["Firebase Cloud Messaging"]:::external
        BackendAPI["Backend REST API"]:::external
    end

    %% Connections
    AndroidShell --> Main
    iOSShell --> Main
    WebShell --> Main
    LinuxShell --> Main
    MacOSShell --> Main
    WindowsShell --> Main

    Main --> Injector
    Injector --> LoginCtrl
    Injector --> DashboardCtrl

    LoginView --> LoginCtrl
    DashboardView --> DashboardCtrl

    LoginCtrl --> AuthSvc
    LoginCtrl --> Repos
    DashboardCtrl --> Repos

    Repos --> Servers
    AuthSvc --> BackendAPI
    Servers --> BackendAPI

    FCM --> Main

    %% Styles
    classDef platform fill:#D3E4CD,stroke:#2F855A,color:#2F855A;
    classDef core fill:#EDF2F7,stroke:#A0AEC0,color:#2D3748;
    classDef di fill:#E2E8F0,stroke:#4A5568,color:#2D3748;
    classDef presentation fill:#BEE3F8,stroke:#3182CE,color:#2C5282;
    classDef controller fill:#C6F6D5,stroke:#38A169,color:#276749;
    classDef data fill:#FEEBC8,stroke:#DD6B20,color:#C05621;
    classDef asset fill:#E9D8FD,stroke:#805AD5,color:#553C9A;
    classDef external fill:#F0FFF4,stroke:#38A169,color:#276749;
```
