# carlospeix/sabadostechhexagonal architecture

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

- Interactive diagram: https://gitdiagram.com/carlospeix/sabadostechhexagonal
- Repository: https://github.com/carlospeix/sabadostechhexagonal

## Overview

##### Project Type & Purpose
- This is an example (Ejemplo de arquitectura hexagonal) designed to demonstrate a hexagonal (or ports and adapters) architecture using .NET/C#.
- The project separates the core business logic from infrastructure concerns, promoting clean separation and easier testing.

##### Analyzing the File Structure
- Application (src/Application): Likely managing application-specific concerns, wiring dependencies, or orchestration.
- Model (src/Model): Contains the domain entities (Teacher, Subject, Grade, Parent, Secretary, etc.), configuration classes, and “UseCases” such as Notifications, along with ports subdirectories that define both Driving (e.g., INotifications) and Driven (e.g., INotificator, IRegistrar) interfaces.
- Persistence (src/Persistence): Implements infrastructure details, including data persistence mechanisms, database context, and migration files.
- Tests (src/Tests): Contains unit and integration tests for different parts of the application.
- Additional configuration files (e.g., .editorconfig, gitignore, etc.) support the coding standards and repository management.

##### Using the README for Additional Context
- The README succinctly states this is an “Ejemplo de arquitectura hexagonal” – emphasizing that the core aim is to illustrate the hexagonal architecture pattern.
- No extra dependencies or technical stacks are detailed, so focus on the hexagonal pattern as the key guiding principle.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Hexagonal Architecture"
        driving["Driving Ports\n(INotifications)"]:::ports
        application["Application Layer"]:::application
        domain["Domain/Model Core\n(Entities & Business Rules)"]:::core
        usecases["Domain Use Cases\n(Notifications)"]:::core
        drivenNotificator["Driven Port\n(INotificator)"]:::ports
        drivenRegistrar["Driven Port\n(IRegistrar)"]:::ports
        persistence["Persistence Adapters"]:::adapter
        testing["Testing Components"]:::test
    end

    driving -->|"initiate"| application
    application -->|"orchestrates"| domain
    domain <-->|"executes"| usecases
    domain -->|"calls"| drivenNotificator
    domain -->|"calls"| drivenRegistrar
    drivenNotificator -->|"implements"| persistence
    drivenRegistrar -->|"implements"| persistence
    testing -->|"tests"| application
    testing -->|"tests"| domain

    click driving "https://github.com/carlospeix/sabadostechhexagonal/blob/master/src/Model/Ports/Driving/INotifications.cs"
    click domain "https://github.com/carlospeix/sabadostechhexagonal/tree/master/src/Model"
    click usecases "https://github.com/carlospeix/sabadostechhexagonal/blob/master/src/Model/UseCases/Notifications.cs"
    click drivenNotificator "https://github.com/carlospeix/sabadostechhexagonal/blob/master/src/Model/Ports/Driven/INotificator.cs"
    click drivenRegistrar "https://github.com/carlospeix/sabadostechhexagonal/blob/master/src/Model/Ports/Driven/IRegistrar.cs"
    click application "https://github.com/carlospeix/sabadostechhexagonal/tree/master/src/Application"
    click persistence "https://github.com/carlospeix/sabadostechhexagonal/tree/master/src/Persistence"
    click testing "https://github.com/carlospeix/sabadostechhexagonal/tree/master/src/Tests"

    classDef core fill:#FFEBB8,stroke:#333,stroke-width:2px;
    classDef ports fill:#B8D9FF,stroke:#333,stroke-width:2px;
    classDef application fill:#B8FFB8,stroke:#333,stroke-width:2px;
    classDef adapter fill:#FFB8B8,stroke:#333,stroke-width:2px;
    classDef test fill:#D3D3D3,stroke:#333,stroke-width:2px;
```
