# alexdavis10/cloudresume architecture

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

- Interactive diagram: https://gitdiagram.com/alexdavis10/cloudresume
- Repository: https://github.com/alexdavis10/cloudresume

## Overview

##### Project Type and Purpose
- This is a static “Cloud Resume” website template. It hosts a personal resume as a static site in Azure Storage, distributes it globally via Azure CDN, and wires up a GitHub Actions CI/CD pipeline to automatically deploy on each push to `main`.

##### File Structure Analysis
- Top-level files:
- `index.html` – entry point for the static site
- `css/` – all styles, including Font Awesome and Fontello assets
- `images/` – all site images
- `404 error.html` – custom error page
- `.github/workflows/main.yml` – GitHub Actions workflow for build & deploy
- No dynamic backend code in the tree; README mentions an optional `function_app/` directory for Azure Functions, but it is not present here.

##### README Insights
- Key services: Azure Storage (static website), Azure CDN (global distribution), GitHub Actions (CI/CD).
- Workflow steps: build → deploy static files to Azure Storage → deploy Function App (if present) → purge CDN endpoint.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Developer & Repo
    subgraph "Developer & Repository"
        Developer([Developer]):::dev
        GitHubRepo([GitHub Repo]):::repo
        subgraph "Repository Contents"
            Index["index.html"]:::repo
            CSS["css/ (Stylesheets)"]:::repo
            Images["images/ (Image Assets)"]:::repo
            ErrorPage["404 error.html"]:::repo
            README["README.md"]:::repo
        end
    end

    %% CI/CD Pipeline
    subgraph "CI/CD Pipeline"
        GitHubActions([GitHub Actions Runner]):::cicd
    end

    %% Azure Resources
    subgraph "Azure Cloud"
        AzureStorage["Azure Storage (Static Website)"]:::cloud
        CDNEdge((Azure CDN Edge)):::cloud
    end

    %% End Users
    EndUser([End User Browser]):::client

    %% Flows
    Developer -->|"push to main"| GitHubRepo
    GitHubRepo -->|"trigger on push"| GitHubActions
    GitHubActions -->|"upload static files"| AzureStorage
    GitHubActions -->|"purge CDN cache"| CDNEdge
    EndUser -->|"request site URL"| CDNEdge
    CDNEdge -->|"serve from cache or fetch origin"| AzureStorage

    %% Click Events
    click GitHubActions "https://github.com/alexdavis10/cloudresume/blob/main/.github/workflows/main.yml"
    click Index "https://github.com/alexdavis10/cloudresume/blob/main/index.html"
    click CSS "https://github.com/alexdavis10/cloudresume/tree/main/css/"
    click Images "https://github.com/alexdavis10/cloudresume/tree/main/images/"
    click ErrorPage "https://github.com/alexdavis10/cloudresume/blob/main/404 error.html"
    click README "https://github.com/alexdavis10/cloudresume/blob/main/README.md"

    %% Styles
    classDef dev fill:#D2E8FF,stroke:#6C98E0,color:#000
    classDef repo fill:#FDEBD0,stroke:#E59866,color:#000
    classDef cicd fill:#D5F5E3,stroke:#58D68D,color:#000
    classDef cloud fill:#EBDEF0,stroke:#AF7AC5,color:#000
    classDef client fill:#F9E79F,stroke:#D4AC0D,color:#000
```
