# adt1983/the-exile-exchange architecture

> Architecture diagram of the GitHub repository adt1983/the-exile-exchange, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/adt1983/the-exile-exchange
- Repository: https://github.com/adt1983/the-exile-exchange

## Overview

##### Main Components Identification

a) Application Layer
- Vue.js Application Core
- Router System
- Component Structure
- State Management
- Services Layer

b) Build & Configuration Layer
- Webpack Configuration
- Environment Configurations
- Build Pipeline

##### Detailed Component Breakdown

**Frontend Application**
- Core Components
- Views (Pages)
- Home
- CurrencyView
- ExchangeView
- BidsListModal
- NotFound
- Reusable Components
- Header
- Exchange
- CurrencyList
- CurrencyItem
- AccountNameInput
- Loader

##### Services Layer

**Services Layer**
- Currency Service
- Exchange Service
- League Service
- Selected Service
- Event Bus
- Utilities

##### Key Relationships to Highlight

Important interactions:
- Router → Views
- Components → Services
- Services → External APIs
- Event Bus → Components
- Build System → Application Output

##### Technical Stack Indicators

- Vue.js as the frontend framework
- Webpack as the build tool
- SCSS for styling
- E2E and Unit testing setup

##### Specific Implementation Details

Create sections showing:
- Asset management (fonts, styles, SVGs)
- Testing infrastructure (E2E with Nightwatch, Unit with Karma)
- Environment-specific configurations

**[Build & Config Layer]**
- ↓
**[Vue.js Application Core]**
- ↓
**[Views & Components]**
- ↓
**[Services Layer]**
- ↓
**[External Interfaces]**

##### Testing infrastructure

This will provide a clear understanding of how the application handles currency exchange operations while maintaining a scalable and maintainable codebase.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Build
        WebpackBase["Webpack Base Config"]
        WebpackDev["Webpack Dev Config"]
        WebpackProd["Webpack Prod Config"]
        WebpackTest["Webpack Test Config"]
        EnvDev["Dev Environment"]
        EnvProd["Prod Environment"]
        EnvTest["Test Environment"]
    end

    subgraph Application
        AppCore["Vue.js App Core"]
        Router["Router System"]
        MainJS["Main.js"]
    end

    subgraph "Views Layer"
        Home["Home View"]
        CurrencyView["Currency View"]
        ExchangeView["Exchange View"]
        BidsListModal["Bids List Modal"]
        NotFound["Not Found View"]
    end

    subgraph "Components Layer"
        Header["Header"]
        Exchange["Exchange"]
        CurrencyList["Currency List"]
        CurrencyItem["Currency Item"]
        AccountInput["Account Name Input"]
        Loader["Loader"]
    end

    subgraph "Services Layer"
        CurrencyService["Currency Service"]
        ExchangeService["Exchange Service"]
        LeagueService["League Service"]
        SelectedService["Selected Service"]
        EventBus["Event Bus"]
        Utils["Utilities"]
    end

    subgraph "Testing"
        E2E["E2E Tests"]
        Unit["Unit Tests"]
    end

    %% Build relationships
    WebpackBase --> WebpackDev
    WebpackBase --> WebpackProd
    WebpackBase --> WebpackTest
    EnvDev --> WebpackDev
    EnvProd --> WebpackProd
    EnvTest --> WebpackTest

    %% Core relationships
    AppCore --> Router
    Router --> Home
    Router --> CurrencyView
    Router --> ExchangeView
    Router --> BidsListModal
    Router --> NotFound

    %% Component relationships
    CurrencyView --> CurrencyList
    CurrencyList --> CurrencyItem
    ExchangeView --> Exchange
    Exchange --> AccountInput
    AppCore --> Header
    AppCore --> Loader

    %% Service relationships
    CurrencyService --> EventBus
    ExchangeService --> EventBus
    LeagueService --> EventBus
    SelectedService --> EventBus
    EventBus --> Components
    Utils --> Services

    %% Testing relationships
    E2E --> Application
    Unit --> Components

    %% Click events
    click AppCore "https://github.com/adt1983/the-exile-exchange/blob/master/src/App.vue"
    click MainJS "https://github.com/adt1983/the-exile-exchange/blob/master/src/main.js"
    click Router "https://github.com/adt1983/the-exile-exchange/blob/master/src/router/index.js"
    click Home "https://github.com/adt1983/the-exile-exchange/blob/master/src/views/Home.vue"
    click CurrencyView "https://github.com/adt1983/the-exile-exchange/blob/master/src/views/CurrencyView.vue"
    click ExchangeView "https://github.com/adt1983/the-exile-exchange/blob/master/src/views/ExchangeView.vue"
    click BidsListModal "https://github.com/adt1983/the-exile-exchange/blob/master/src/views/BidsListModal.vue"
    click NotFound "https://github.com/adt1983/the-exile-exchange/blob/master/src/views/NotFound.vue"
    click Header "https://github.com/adt1983/the-exile-exchange/blob/master/src/components/Header.vue"
    click Exchange "https://github.com/adt1983/the-exile-exchange/blob/master/src/components/Exchange.vue"
    click CurrencyList "https://github.com/adt1983/the-exile-exchange/blob/master/src/components/CurrencyList.vue"
    click CurrencyItem "https://github.com/adt1983/the-exile-exchange/blob/master/src/components/CurrencyItem.vue"
    click AccountInput "https://github.com/adt1983/the-exile-exchange/blob/master/src/components/AccountNameInput.vue"
    click Loader "https://github.com/adt1983/the-exile-exchange/blob/master/src/components/Loader.vue"
    click CurrencyService "https://github.com/adt1983/the-exile-exchange/blob/master/src/services/currency.js"
    click ExchangeService "https://github.com/adt1983/the-exile-exchange/blob/master/src/services/exchange.js"
    click LeagueService "https://github.com/adt1983/the-exile-exchange/blob/master/src/services/league.js"
    click SelectedService "https://github.com/adt1983/the-exile-exchange/blob/master/src/services/selected.js"
    click EventBus "https://github.com/adt1983/the-exile-exchange/blob/master/src/services/bus.js"
    click Utils "https://github.com/adt1983/the-exile-exchange/blob/master/src/services/util.js"
    click WebpackBase "https://github.com/adt1983/the-exile-exchange/blob/master/build/webpack.base.conf.js"
    click WebpackDev "https://github.com/adt1983/the-exile-exchange/blob/master/build/webpack.dev.conf.js"
    click WebpackProd "https://github.com/adt1983/the-exile-exchange/blob/master/build/webpack.prod.conf.js"
    click WebpackTest "https://github.com/adt1983/the-exile-exchange/blob/master/build/webpack.test.conf.js"
    click EnvDev "https://github.com/adt1983/the-exile-exchange/blob/master/config/dev.env.js"
    click EnvProd "https://github.com/adt1983/the-exile-exchange/blob/master/config/prod.env.js"
    click EnvTest "https://github.com/adt1983/the-exile-exchange/blob/master/config/test.env.js"
    click E2E "https://github.com/adt1983/the-exile-exchange/tree/master/test/e2e"
    click Unit "https://github.com/adt1983/the-exile-exchange/tree/master/test/unit"

    classDef default fill:#f9f9f9,stroke:#333,stroke-width:2px;
    classDef build fill:#FFE5CC,stroke:#333,stroke-width:2px;
    classDef app fill:#CCE5FF,stroke:#333,stroke-width:2px;
    classDef view fill:#E5FFCC,stroke:#333,stroke-width:2px;
    classDef component fill:#FFE5FF,stroke:#333,stroke-width:2px;
    classDef service fill:#E5FFFF,stroke:#333,stroke-width:2px;
    classDef test fill:#FFE5E5,stroke:#333,stroke-width:2px;

    class WebpackBase,WebpackDev,WebpackProd,WebpackTest,EnvDev,EnvProd,EnvTest build;
    class AppCore,Router,MainJS app;
    class Home,CurrencyView,ExchangeView,BidsListModal,NotFound view;
    class Header,Exchange,CurrencyList,CurrencyItem,AccountInput,Loader component;
    class CurrencyService,ExchangeService,LeagueService,SelectedService,EventBus,Utils service;
    class E2E,Unit test;
```
