# pessinamistic/lucipurr architecture

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

- Interactive diagram: https://gitdiagram.com/pessinamistic/lucipurr
- Repository: https://github.com/pessinamistic/lucipurr

## Overview

##### Project type and purpose
- It exposes HTTP endpoints (controllers) for clients to submit employee/income data and retrieve tax computations.

##### File structure
- Top-level:
- pom.xml (Maven build & dependency management)
- src/main/java/com/lucipurr/tax
- src/main/resources (application-*.properties)
- Within src/main/java/com/lucipurr/tax:
- controller/ – Spring MVC controllers (DBController, TaxController)
- service/ – business logic (TaxService, DataBaseService, TaxUtil)
- database/model/ – JPA entities (IncomeMaster, EmployeeMaster, etc.)
- database/repository/ – Spring Data JPA repositories
- abstractions/ – service interfaces (ITaxService, IDataBaseService)
- Tests mirror production code under src/test/java.
- structure.sql suggests schema-generation or migration.

##### README
- Minimal: “Tax calculator Rest Api.”

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "External Clients"
        Client["External Clients"]:::external
    end

    subgraph "Spring Boot Application"
        direction TB
        LucipurrApp["LucipurrApplication"]:::serviceLayer

        subgraph "API Layer"
            direction TB
            TaxController["TaxController"]:::apiLayer
            DBController["DBController"]:::apiLayer
        end

        subgraph "Service Layer"
            direction TB
            ITaxService["ITaxService"]:::serviceLayer
            IDataBaseService["IDataBaseService"]:::serviceLayer
            TaxService["TaxService"]:::serviceLayer
            DataBaseService["DataBaseService"]:::serviceLayer
            TaxUtil["TaxUtil"]:::serviceLayer
        end

        subgraph "Data Layer"
            direction TB
            DeductionsMasterRepo["DeductionsMasterRepository"]:::dataLayer
            EmployeeInfoMasterRepo["EmployeeInfoMasterRepository"]:::dataLayer
            IncomeMasterRepo["IncomeMasterRepository"]:::dataLayer
            DeductionsMasterEnt["DeductionsMaster"]:::dataLayer
            EmployeeMasterEnt["EmployeeMaster"]:::dataLayer
            EmployeeInfoMasterEnt["EmployeeInfoMaster"]:::dataLayer
            IncomeMasterEnt["IncomeMaster"]:::dataLayer
        end

        subgraph "Model/DTO Layer"
            direction TB
            ClientResponseVO["ClientResponseVO"]:::dataLayer
            ResponseVO["Response"]:::dataLayer
            EmployeeVO["Employee"]:::dataLayer
            EmployeeInfoVO["EmployeeInfo"]:::dataLayer
            IncomeVO["Income"]:::dataLayer
            DeductionsVO["Deductions"]:::dataLayer
        end

        subgraph "Configuration"
            direction TB
            AppProps["application.properties"]:::config
            AppDevProps["application-dev.properties"]:::config
            SchemaSQL["structure.sql"]:::config
        end
    end

    Database["RDBMS"]:::dataLayer

    Client -->|HTTP Request| TaxController
    Client -->|HTTP Request| DBController
    TaxController -->|uses| ITaxService
    DBController -->|uses| IDataBaseService
    ITaxService -->|implemented by| TaxService
    IDataBaseService -->|implemented by| DataBaseService
    TaxService -->|calls| TaxUtil
    TaxService -->|calls| DeductionsMasterRepo
    DataBaseService -->|calls| EmployeeInfoMasterRepo
    DataBaseService -->|calls| IncomeMasterRepo
    DeductionsMasterRepo -->|manages| DeductionsMasterEnt
    IncomeMasterRepo -->|manages| IncomeMasterEnt
    EmployeeInfoMasterRepo -->|manages| EmployeeInfoMasterEnt
    SchemaSQL -->|init| Database

    click LucipurrApp "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/LucipurrApplication.java"
    click TaxController "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/controller/TaxController.java"
    click DBController "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/controller/DBController.java"
    click ITaxService "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/abstractions/ITaxService.java"
    click IDataBaseService "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/abstractions/IDataBaseService.java"
    click TaxService "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/service/TaxService.java"
    click DataBaseService "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/service/DataBaseService.java"
    click TaxUtil "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/service/TaxUtil.java"
    click DeductionsMasterEnt "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/database/model/DeductionsMaster.java"
    click EmployeeMasterEnt "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/database/model/EmployeeMaster.java"
    click EmployeeInfoMasterEnt "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/database/model/EmployeeInfoMaster.java"
    click IncomeMasterEnt "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/database/model/IncomeMaster.java"
    click DeductionsMasterRepo "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/database/repository/DeductionsMasterRepository.java"
    click EmployeeInfoMasterRepo "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/database/repository/EmployeeInfoMasterRepository.java"
    click IncomeMasterRepo "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/database/repository/IncomeMasterRepository.java"
    click ClientResponseVO "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/model/ClientResponseVO.java"
    click ResponseVO "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/model/Response.java"
    click EmployeeVO "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/model/Employee.java"
    click EmployeeInfoVO "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/model/EmployeeInfo.java"
    click IncomeVO "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/model/Income.java"
    click DeductionsVO "https://github.com/pessinamistic/lucipurr/blob/main/src/main/java/com/lucipurr/tax/model/Deductions.java"
    click AppProps "https://github.com/pessinamistic/lucipurr/blob/main/src/main/resources/application.properties"
    click AppDevProps "https://github.com/pessinamistic/lucipurr/blob/main/src/main/resources/application-dev.properties"
    click SchemaSQL "https://github.com/pessinamistic/lucipurr/blob/main/structure.sql"

    classDef apiLayer fill:#ddeeff,stroke:#007acc,stroke-width:1px
    classDef serviceLayer fill:#ddffdd,stroke:#2d8f2d,stroke-width:1px
    classDef dataLayer fill:#ffebcc,stroke:#d97300,stroke-width:1px
    classDef config fill:#eeeeee,stroke:#666666,stroke-width:1px
    classDef external fill:#f2f2f2,stroke:#999999,stroke-width:1px
```
