# klakshmaiah/azurelearning architecture

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

- Interactive diagram: https://gitdiagram.com/klakshmaiah/azurelearning
- Repository: https://github.com/klakshmaiah/azurelearning

## Overview

##### Project type and purpose
- This is an ASP .NET Core MVC full-stack web application (“AzureLearning”) whose primary purpose is to let users create and manage Azure Blob Storage containers and blobs via a web UI.

##### File structure
- Top-level code directories:
- Controllers (handles HTTP requests)
- Services + IServices (business logic and interfaces)
- Models (view models, DTOs)
- Views (Razor pages under Views/Home, Views/Blob, Views/Container)
- Program.cs & appsettings*.json: configure DI, middleware, Azure connection strings.
- wwwroot: static assets (Bootstrap, jQuery, site CSS/JS).
- Solution (.sln) and project (.csproj) files indicate a single-project web app.

##### README
- Contains only the project name, so we infer architecture from code organization and naming conventions.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Presentation Layer
    subgraph "Presentation Layer"
        direction TB
        Browser["Client Browser (UI)"]:::frontend
        Views["Razor Views"]:::frontend
        StaticAssets["Static Assets"]:::frontend
    end

    %% Application Layer
    subgraph "Application Layer"
        direction TB
        HomeController["HomeController"]:::app
        BlobController["BlobController"]:::app
        ContainerController["ContainerController"]:::app
    end

    %% Business Layer
    subgraph "Business Layer"
        direction TB
        IBlobService["IBlobService"]:::business
        IContainerService["IContainerService"]:::business
        BlobService["BlobService"]:::business
        ContainerService["ContainerService"]:::business
        subgraph "Models / ViewModels"
            direction TB
            AddContainer["AddContainer"]:::business
            BlobDetails["BlobDetails"]:::business
            ErrorViewModel["ErrorViewModel"]:::business
        end
    end

    %% Configuration & Startup
    subgraph "Configuration & Startup"
        direction TB
        Program["Program.cs"]:::config
        Csproj["AzureLearning.csproj"]:::config
        AppSettings["appsettings.json"]:::config
        DevSettings["appsettings.Development.json"]:::config
    end

    %% Data Layer
    AzureBlob["Azure Blob Storage"]:::data

    %% Relationships
    Browser -->|HTTP GET/POST| HomeController
    Browser -->|HTTP GET/POST| BlobController
    Browser -->|HTTP GET/POST| ContainerController

    HomeController -->|renders| Views
    BlobController -->|renders| Views
    ContainerController -->|renders| Views
    Views -->|assets| StaticAssets

    HomeController -.->|depends on| IContainerService
    BlobController -.->|depends on| IBlobService
    ContainerController -.->|depends on| IContainerService

    IBlobService -->|implemented by| BlobService
    IContainerService -->|implemented by| ContainerService

    BlobService -->|uses SDK| AzureBlob
    ContainerService -->|uses SDK| AzureBlob

    AppSettings -.->|provides configs| Program
    DevSettings -.->|overrides configs| Program
    Program -.->|configures DI| HomeController
    Program -.->|configures DI| BlobController
    Program -.->|configures DI| ContainerController
    Program -.->|configures DI| BlobService
    Program -.->|configures DI| ContainerService

    %% Click Events
    click Views "https://github.com/klakshmaiah/azurelearning/tree/master//Views"
    click StaticAssets "https://github.com/klakshmaiah/azurelearning/tree/master//wwwroot"
    click Program "https://github.com/klakshmaiah/azurelearning/blob/master//Program.cs"
    click Csproj "https://github.com/klakshmaiah/azurelearning/blob/master//AzureLearning.csproj"
    click AppSettings "https://github.com/klakshmaiah/azurelearning/blob/master//appsettings.json"
    click DevSettings "https://github.com/klakshmaiah/azurelearning/blob/master//appsettings.Development.json"
    click HomeController "https://github.com/klakshmaiah/azurelearning/blob/master//Controllers/HomeController.cs"
    click BlobController "https://github.com/klakshmaiah/azurelearning/blob/master//Controllers/BlobController.cs"
    click ContainerController "https://github.com/klakshmaiah/azurelearning/blob/master//Controllers/ContainerController.cs"
    click IBlobService "https://github.com/klakshmaiah/azurelearning/blob/master//IServices/IBlobService.cs"
    click IContainerService "https://github.com/klakshmaiah/azurelearning/blob/master//IServices/IContainerService.cs"
    click BlobService "https://github.com/klakshmaiah/azurelearning/blob/master//Services/BlobService.cs"
    click ContainerService "https://github.com/klakshmaiah/azurelearning/blob/master//Services/ContainerService.cs"
    click AddContainer "https://github.com/klakshmaiah/azurelearning/blob/master//Models/AddContainer.cs"
    click BlobDetails "https://github.com/klakshmaiah/azurelearning/blob/master//Models/BlobDetails.cs"
    click ErrorViewModel "https://github.com/klakshmaiah/azurelearning/blob/master//Models/ErrorViewModel.cs"

    %% Styles
    classDef frontend fill:#AED6F1,stroke:#21618C,color:#1B2631
    classDef app fill:#A3E4D7,stroke:#117A65,color:#1B2631
    classDef business fill:#F9E79F,stroke:#B9770E,color:#1B2631
    classDef data fill:#F5B7B1,stroke:#922B21,color:#1B2631
    classDef config fill:#D7BDE2,stroke:#6C3483,color:#1B2631
```
