# j-c-b/lwpublic architecture

> Architecture diagram of the GitHub repository j-c-b/lwpublic, 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/j-c-b/lwpublic
- Repository: https://github.com/j-c-b/lwpublic

## Overview

##### Project type and purpose
- This is an open-source “scripts and examples” repository (“lwpublic”) for sharing Azure-related scripts (in `azure_evil/`) and Terraform examples (in `bad/tf/`). It is not a full-stack application but a collection of utilities and configs that interact with Azure.

##### File structure
- Top-level:
– `.github/ISSUE_TEMPLATE/`: GitHub issue templates for bugs and feature requests
– `.gitignore`, `LICENSE`, `README.md`
– `azure_evil/`: directory containing malicious/demo Azure activity scripts (`baduser_azure_activity.sh`), images, its own README
– `bad/tf/`: a Terraform example file (`fooo.tf`)
- There are no “frontend” or “backend” folders, no build scripts, but there are two distinct modules: shell scripts vs. Terraform HCL.

##### README for additional insights
- README is minimal: “Public repo for sharing LW related odds.”

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Developer workstation
    Dev["Developer Workstation"]:::runtime

    %% GitHub repository and components
    subgraph "GitHub Repository" 
        direction TB
        RepoReadme["README.md"]:::source
        Gitignore[".gitignore"]:::source
        License["LICENSE"]:::source
        subgraph "Modules"
            direction TB
            subgraph "Azure Scripts Module"
                direction TB
                AzureScripts["azure_evil/"]:::source
                Script["baduser_azure_activity.sh"]:::source
                Doc["README.md"]:::source
                Assets["images/"]:::source
            end
            subgraph "Terraform Examples Module"
                direction TB
                TFModule["bad/tf/"]:::source
                TFConfig["fooo.tf"]:::source
            end
        end
        subgraph "Issue Templates"
            direction TB
            Bug["bug_report.md"]:::source
            Feature["feature_request.md"]:::source
        end
    end

    %% Execution environments
    subgraph "Execution Engines"
        direction TB
        Shell["Shell/Bash"]:::runtime
        TerraformCLI["Terraform CLI"]:::runtime
    end

    %% Azure Cloud
    subgraph "Azure Cloud" 
        direction TB
        AzureAPI["Azure REST/API Endpoints"]:::external
        AzureResources["Azure Resources"]:::external
    end

    %% Data flows
    Dev -->|git clone / pull| AzureScripts
    Dev -->|git clone / pull| TFModule
    Dev -->|git clone / pull| RepoReadme
    Dev -->|edit & commit| AzureScripts
    Dev -->|edit & commit| TFModule
    Dev -->|open issue| Bug
    Dev -->|open issue| Feature

    Dev -->|run script| Shell
    Shell -->|API calls| AzureAPI
    AzureAPI -->|responses/logs| Shell

    Dev -->|terraform init/apply| TerraformCLI
    TerraformCLI -->|Azure provider calls| AzureAPI
    AzureAPI -->|responses| TerraformCLI

    %% Click events
    click AzureScripts "https://github.com/j-c-b/lwpublic/tree/main/azure_evil/"
    click Script "https://github.com/j-c-b/lwpublic/blob/main/azure_evil/baduser_azure_activity.sh"
    click Doc "https://github.com/j-c-b/lwpublic/blob/main/azure_evil/README.md"
    click Assets "https://github.com/j-c-b/lwpublic/tree/main/azure_evil/images/"
    click TFModule "https://github.com/j-c-b/lwpublic/tree/main/bad/tf/"
    click TFConfig "https://github.com/j-c-b/lwpublic/blob/main/bad/tf/fooo.tf"
    click Bug "https://github.com/j-c-b/lwpublic/blob/main/.github/ISSUE_TEMPLATE/bug_report.md"
    click Feature "https://github.com/j-c-b/lwpublic/blob/main/.github/ISSUE_TEMPLATE/feature_request.md"
    click RepoReadme "https://github.com/j-c-b/lwpublic/blob/main/README.md"
    click Gitignore "https://github.com/j-c-b/lwpublic/blob/main/.gitignore"
    click License "https://github.com/j-c-b/lwpublic/tree/main/LICENSE"

    %% Styles
    classDef source fill:#cce5ff,stroke:#4d94ff,color:#003366;
    classDef runtime fill:#d4edda,stroke:#28a745,color:#155724;
    classDef external fill:#fff3cd,stroke:#ffcc00,color:#856404;
```
