# bobsprogrammingacademy/responsive-sales-dashboard architecture

> Architecture diagram of the GitHub repository bobsprogrammingacademy/responsive-sales-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bobsprogrammingacademy/responsive-sales-dashboard
- Repository: https://github.com/bobsprogrammingacademy/responsive-sales-dashboard

## Overview

##### Project type and purpose
- This is a purely client-side, static “responsive sales dashboard” built with HTML5, CSS3, and vanilla JavaScript. It uses the ApexCharts library to render charts in the browser. There is no backend or database—data and logic live in your JS.

##### File structure
- Top level:
- index.html – the dashboard’s HTML entry point
- css/ – your stylesheet (styles.css)
- js/ – your JavaScript logic (scripts.js, which holds chart configurations and data)
- images/ – screenshots used in README
- .github/workflows/jekyll-docker.yml – a CI pipeline (for documentation or GitHub Pages)
- No server-side code or API layers; this is a single-page, static asset setup.

##### README for additional insights
- Confirms: “responsive sales dashboard,” live-reload via VSCode’s Live Server, runs entirely in the browser at localhost:5500/index.html.
- No external data service—chart data is embedded.

##### Extra detail
- That scripts.js holds chart configuration objects and sample sales data

By separating the system into:
- Client (Browser)
- Static Host (Local & Production)
- Asset layer (HTML, CSS, JS, images)
- Third-party library (ApexCharts)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Runtime Component
    Browser["Browser (User Agent)"]:::runtime

    %% Static Host Subgraph
    subgraph "Static Host"
        direction TB
        LocalDev["Local Dev Server\n(Live Server)"]:::runtime
        ProdHost["Production Host\n(GitHub Pages)"]:::runtime
    end

    %% Static Assets Subgraph
    subgraph "Static Assets" 
        direction TB
        HTML["index.html"]:::static
        CSS["css/styles.css"]:::static
        JS["js/scripts.js"]:::static
        IMAGES["images/"]:::static
    end

    %% External Library
    ApexCDN["ApexCharts CDN"]:::external

    %% CI/CD Workflow
    subgraph "CI/CD Workflow" 
        direction TB
        CI[".github/workflows/jekyll-docker.yml"]:::ci
    end

    %% Data Flows
    Browser -->|"HTTP GET index.html"| LocalDev
    LocalDev -->|"200 OK\nindex.html"| Browser

    Browser -->|"GET css/styles.css"| LocalDev
    LocalDev -->|"200 OK\nstyles.css"| Browser

    Browser -->|"GET js/scripts.js"| LocalDev
    LocalDev -->|"200 OK\nscripts.js"| Browser

    Browser -->|"GET images"| LocalDev
    LocalDev -->|"200 OK\nimages"| Browser

    Browser -->|"GET library.js"| ApexCDN
    ApexCDN -->|"200 OK\nlibrary.js"| Browser

    Browser -->|"invoke ApexCharts.draw()"| Browser

    %% Hosts serve assets
    LocalDev --> HTML
    LocalDev --> CSS
    LocalDev --> JS
    LocalDev --> IMAGES

    ProdHost --> HTML
    ProdHost --> CSS
    ProdHost --> JS
    ProdHost --> IMAGES

    CI --> ProdHost

    %% Click Events
    click HTML "https://github.com/bobsprogrammingacademy/responsive-sales-dashboard/blob/master/index.html"
    click CSS "https://github.com/bobsprogrammingacademy/responsive-sales-dashboard/blob/master/css/styles.css"
    click JS "https://github.com/bobsprogrammingacademy/responsive-sales-dashboard/blob/master/js/scripts.js"
    click IMAGES "https://github.com/bobsprogrammingacademy/responsive-sales-dashboard/tree/master/images/"
    click CI "https://github.com/bobsprogrammingacademy/responsive-sales-dashboard/blob/master/.github/workflows/jekyll-docker.yml"

    %% Styles
    classDef static fill:#D0E8FF,stroke:#0050C8,color:#000;
    classDef runtime fill:#D0FFD0,stroke:#008000,color:#000;
    classDef external fill:#FFD0B0,stroke:#C05000,color:#000;
    classDef ci fill:#F0F0F0,stroke:#666,stroke-dasharray: 5 5,color:#000;
```
