# dononitram/cloudtechnologiesproject architecture

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

- Interactive diagram: https://gitdiagram.com/dononitram/cloudtechnologiesproject
- Repository: https://github.com/dononitram/cloudtechnologiesproject

## Overview

##### Main Components

a) Frontend Layer:
- Excel-based interface (frontend.xlsm)
- Should be represented as a client-side component

b) Backend Layer:
- Python-based server components
- Contains four main modules:
- main.py (entry point)
- CellData.py (data handling)
- Model.py (business logic)
- ModelData.py (data modeling)

c) Cloud Infrastructure:
- Multiple deployment environments indicated by the .gamma.site domains

**[Client Layer]**

- v
**[Application Layer]**

- v
**[Infrastructure Layer]**

##### Specific Component Representations

a) Client Layer (Top):
- Notation for .xlsm file type
- VBA integration points

b) Application Layer (Middle):
- Four sub-components:
- Main Controller (main.py)
- Cell Data Handler (CellData.py)
- Business Model (Model.py)
- Data Model (ModelData.py)

c) Infrastructure Layer (Bottom):
- Cloud hosting environment
- Three separate deployment zones:
- Cloud Infrastructure (.gamma.site)
- Python Service (.gamma.site)
- Excel Integration Service (.gamma.site)

##### Connection and Data Flow

- Blue: Data flow
- Green: User interactions
- Orange: System communications

##### Additional Elements

- Version/environment indicators
- Security boundaries
- Integration points between teams' components

##### Technical Details

- Python version and key dependencies
- Excel/VBA version compatibility
- Cloud platform specifications
- API endpoints or interfaces
- Data format specifications

## Diagram (Mermaid)

```mermaid
graph TB
    %% Style Definitions
    classDef frontend fill:#E6F3FF,stroke:#2D7FF9,stroke-width:2px
    classDef backend fill:#F0FFF0,stroke:#28A745,stroke-width:2px
    classDef infrastructure fill:#FFF3E0,stroke:#FF9800,stroke-width:2px
    classDef dataflow fill:#E3F2FD,stroke:#1976D2,stroke-width:2px
    classDef documentation fill:#F3E5F5,stroke:#9C27B0,stroke-width:2px

    %% Client Layer
    subgraph Client
        Excel["Excel Frontend Interface"]:::frontend
    end

    %% Application Layer
    subgraph Backend
        Main["Main Controller"]:::backend
        CellData["Cell Data Handler"]:::backend
        Model["Business Model"]:::backend
        ModelData["Data Model"]:::backend
    end

    %% Infrastructure Layer
    subgraph Infrastructure
        Cloud["Cloud Infrastructure (.gamma.site)"]:::infrastructure
        PythonService["Python Service (.gamma.site)"]:::infrastructure
        ExcelService["Excel Integration Service (.gamma.site)"]:::infrastructure
    end

    %% Documentation
    subgraph Documentation
        Docs["System Documentation"]:::documentation
        Diagrams["System Diagrams"]:::documentation
    end

    %% Relationships
    Excel --> Main
    Main --> CellData
    Main --> Model
    Model --> ModelData
    CellData --> ModelData
    
    ModelData --> PythonService
    PythonService --> Cloud
    ExcelService --> Cloud
    Excel -.-> ExcelService

    %% Click Events
    click Excel "https://github.com/dononitram/CloudTechnologiesProject/blob/development/src/frontend/frontend.xlsm"
    click Main "https://github.com/dononitram/CloudTechnologiesProject/blob/development/src/backend/main.py"
    click CellData "https://github.com/dononitram/CloudTechnologiesProject/blob/development/src/backend/CellData.py"
    click Model "https://github.com/dononitram/CloudTechnologiesProject/blob/development/src/backend/Model.py"
    click ModelData "https://github.com/dononitram/CloudTechnologiesProject/blob/development/src/backend/ModelData.py"
    click Docs "https://github.com/dononitram/CloudTechnologiesProject/blob/development/docs/Documentation.md"
    click Diagrams "https://github.com/dononitram/CloudTechnologiesProject/tree/development/docs/diagrams"

    %% Legend
    subgraph Legend
        Frontend["Frontend Component"]:::frontend
        BackendComp["Backend Component"]:::backend
        InfraComp["Infrastructure Component"]:::infrastructure
        DocComp["Documentation"]:::documentation
    end
```
