# exeis-ixt/adons architecture

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

- Interactive diagram: https://gitdiagram.com/exeis-ixt/adons
- Repository: https://github.com/exeis-ixt/adons

## Overview

##### Main System Components

a) Frontend Layer:
- React.js Components (resources/js/Components)
- Pages (resources/js/Pages)
- UI Components (resources/js/Components/ui)
- Client-side State Management (hooks)

b) Middleware Layer:
- Inertia.js Bridge
- Authentication Middleware
- Request Handling

c) Backend Layer:
- Laravel Controllers (app/Http/Controllers)
- Models (app/Models)
- Filament Admin Panel (app/Filament)
- Database Layer

##### Component Relationships

**[Client Browser] ←→ [Frontend Layer (React)] ←→ [Inertia.js Bridge] ←→ [Backend Layer (Laravel)] ←→ [Database]**

##### Detailed Component Breakdown

Frontend Section:
**[Pages]**
- Home
- Blog
- Contact
- Dashboard
- Auth Pages

**[Components]**
- UI Components (ShadcnUI)
- Layout Components
- Feature Components

Backend Section:
**[Controllers]**
- Auth Controllers
- Blog Controller
- Contact Controller
- Profile Controller

**[Models]**
- User
- Post
- Category
- Contact
- Project
- Team

##### Data Flow Indicators

- Client-server communication
- Database queries
- Authentication flows
- Admin panel interactions

##### Additional Elements

- Static Assets (public/)
- Configuration Files
- Storage System
- Testing Environment

**[Client Layer]**
- ↓↑
**[Frontend Layer (React + Inertia)]**
- ↓↑
**[Backend Layer (Laravel)]**
- ↓↑
**[Database Layer]**

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Client
        Browser["Web Browser"]
    end

    subgraph FrontendLayer["Frontend Layer"]
        direction TB
        Pages["Pages"]:::frontend
        Components["Components"]:::frontend
        UIComponents["UI Components"]:::frontend
        StateManagement["State Management"]:::frontend
        LayoutComponents["Layout Components"]:::frontend
        BlogComponents["Blog Components"]:::frontend
        ProfilePages["Profile Management"]:::frontend
        Types["Types/Interfaces"]:::frontend
        FrontendEntry["Frontend Entry Point"]:::frontend
    end

    subgraph MiddlewareLayer["Middleware Layer"]
        direction TB
        InertiaBridge["Inertia.js Bridge"]:::middleware
        AuthMiddleware["Authentication Middleware"]:::middleware
        RequestHandler["Request Handler"]:::middleware
    end

    subgraph BackendLayer["Backend Layer"]
        direction TB
        Controllers["Controllers"]:::backend
        AuthControllers["Auth Controllers"]:::backend
        Models["Models"]:::backend
        FilamentAdmin["Filament Admin Panel"]:::backend
        Routes["Application Routes"]:::backend
        AuthRoutes["Authentication Routes"]:::backend
        BackendEntry["Backend Entry Point"]:::backend
    end

    subgraph DatabaseLayer["Database Layer"]
        direction TB
        Database[(Database)]:::database
        Migrations["Database Migrations"]:::database
    end

    %% Connections
    Browser <--> Pages
    Pages <--> InertiaBridge
    Components <--> InertiaBridge
    InertiaBridge <--> Controllers
    Controllers <--> Models
    Models <--> Database
    FilamentAdmin <--> Models
    AuthMiddleware <--> AuthControllers
    RequestHandler <--> Controllers

    %% Click Events
    click Components "https://github.com/eXeis-ixt/Adons/tree/main/resources/js/Components"
    click Pages "https://github.com/eXeis-ixt/Adons/tree/main/resources/js/Pages"
    click UIComponents "https://github.com/eXeis-ixt/Adons/tree/main/resources/js/Components/ui"
    click StateManagement "https://github.com/eXeis-ixt/Adons/tree/main/resources/js/hooks"
    click Controllers "https://github.com/eXeis-ixt/Adons/tree/main/app/Http/Controllers"
    click AuthControllers "https://github.com/eXeis-ixt/Adons/tree/main/app/Http/Controllers/Auth"
    click Models "https://github.com/eXeis-ixt/Adons/tree/main/app/Models"
    click FilamentAdmin "https://github.com/eXeis-ixt/Adons/tree/main/app/Filament"
    click InertiaBridge "https://github.com/eXeis-ixt/Adons/blob/main/app/Http/Middleware/HandleInertiaRequests.php"
    click AuthRoutes "https://github.com/eXeis-ixt/Adons/blob/main/routes/auth.php"
    click LayoutComponents "https://github.com/eXeis-ixt/Adons/tree/main/resources/js/Layouts"
    click Routes "https://github.com/eXeis-ixt/Adons/blob/main/routes/web.php"
    click BlogComponents "https://github.com/eXeis-ixt/Adons/tree/main/resources/js/Components/Blog"
    click ProfilePages "https://github.com/eXeis-ixt/Adons/tree/main/resources/js/Pages/Profile"
    click Migrations "https://github.com/eXeis-ixt/Adons/tree/main/database/migrations"
    click Types "https://github.com/eXeis-ixt/Adons/tree/main/resources/js/types"
    click FrontendEntry "https://github.com/eXeis-ixt/Adons/blob/main/resources/js/app.tsx"
    click BackendEntry "https://github.com/eXeis-ixt/Adons/blob/main/bootstrap/app.php"

    %% Styling
    classDef frontend fill:#3b82f6,color:white
    classDef backend fill:#22c55e,color:white
    classDef middleware fill:#eab308,color:black
    classDef database fill:#a855f7,color:white
    classDef default fill:#64748b,color:white

    %% Legend
    subgraph Legend
        Frontend["Frontend Component"]:::frontend
        Backend["Backend Component"]:::backend
        Middleware["Middleware Component"]:::middleware
        DB["Database Component"]:::database
    end
```
