# denisaxxiv/interns-manager architecture

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

- Interactive diagram: https://gitdiagram.com/denisaxxiv/interns-manager
- Repository: https://github.com/denisaxxiv/interns-manager

## Overview

##### Project type and purpose
- This is a full-stack “Internship Record Management” application.
- The backend is built on .NET 6, organized into multiple logical layers: Presentation (Web API), Business Logic (BL), Transfer Layer (TL), Data Access (DAL), and an Angular frontend (InternsManagerClient).

##### File structure
- Top level:
- InternsManager.sln (solution)
- InternsManagerClient (Angular SPA)
- InternsManager (ASP.NET Core Web API project)
- InternsManager.BL (business logic classes & interfaces)
- InternsManager.DAL (EF Core entities, migrations, repositories)
- InternsManager.TL (DTO definitions)
- Patterns & conventions:
- Controllers in InternsManager expose REST endpoints.
- InternsManager.TL holds DTOs for serialization between Web API and client.
- InternsManager.BL defines service interfaces and business logic.
- InternsManager.DAL implements repositories, EF Core migrations, and manages the relational database.
- AutoMapperConfig in the Web API wires up mapping profiles between Entities and DTOs.
- Configuration & dependencies:
- EF Core migrations under DAL/Migrations
- appsettings.json in Web API for connection strings, JWT settings, etc.
- package.json & angular.json under InternsManagerClient

##### README
- Confirms the goal: manage internship records (CRUD operations on Interns, Persons, Roles, Users).

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Frontend (UI Layer)"
        UI["InternsManagerClient (Angular SPA)"]:::ui
    end

    subgraph "Backend"
        subgraph "Presentation Layer (Web API)"
            Controllers["Controllers"]:::api
            AutoMapper["AutoMapperConfig"]:::api
            Config["Configuration (appsettings.json, Program.cs)"]:::api
        end
        TL["Transfer Layer (DTOs)"]:::tl
        BL["Business Logic Layer (Services & Interfaces)"]:::bl
        DAL["Data Access Layer (Repositories & EF Core)"]:::dal
        DB["SQL Database"]:::db
    end

    UI -->|"JSON over HTTPS"| Controllers
    Controllers -->|"maps Entities ↔ DTOs"| AutoMapper
    Controllers -->|"uses DTOs"| TL
    Controllers -->|"calls BL interfaces"| BL
    BL -->|"calls repositories"| DAL
    DAL -->|"EF Core queries"| DB
    DB -->|"data results"| DAL
    DAL -->|"entities"| BL
    BL -->|"domain objects"| Controllers
    TL -->|"DTOs"| Controllers

    click UI "https://github.com/denisaxxiv/interns-manager/tree/master/InternsManagerClient/"
    click Controllers "https://github.com/denisaxxiv/interns-manager/tree/master/InternsManager/InternsManager/Controllers/"
    click TL "https://github.com/denisaxxiv/interns-manager/tree/master/InternsManager/InternsManager.TL/DTO/"
    click BL "https://github.com/denisaxxiv/interns-manager/tree/master/InternsManager/InternsManager.BL/"
    click DAL "https://github.com/denisaxxiv/interns-manager/tree/master/InternsManager/InternsManager.DAL/"
    click AutoMapper "https://github.com/denisaxxiv/interns-manager/blob/master/InternsManager/InternsManager/AutoMapperConfig/AutoMapperProfile.cs"
    click Config "https://github.com/denisaxxiv/interns-manager/blob/master/InternsManager/InternsManager/appsettings.json"

    classDef ui fill:#D6E9FE,stroke:#3B7BC4
    classDef api fill:#D5F5D3,stroke:#27AE60
    classDef bl fill:#FDEBD0,stroke:#E67E22
    classDef tl fill:#FCF3CF,stroke:#F1C40F
    classDef dal fill:#E8DAEF,stroke:#8E44AD
    classDef db fill:#D5D8DC,stroke:#566573
```
