# oleksandragorbonos-maker/tzap architecture

> Architecture diagram of the GitHub repository oleksandragorbonos-maker/tzap, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/oleksandragorbonos-maker/tzap
- Repository: https://github.com/oleksandragorbonos-maker/tzap

## Overview

This repository is a quality-assurance dossier for ShopLine, an online tools and garden-equipment shop. The documented customer workflow is using its Angular storefront and Laravel API backed by MySQL; the tree also contains a Java ShopLine v2 business-rules module and a separate v1 QA project. The shown Java code implements cart, discount/shipping, and promo-code rules, but does not show their integration into the storefront or order flow. The relationship map therefore limits runtime links to the documented stack; domain stages beyond the excerpts are not inferred.

Main entry points: [`code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCodeValidator.java`](https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCodeValidator.java) (Promo validation), [`code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCode.java`](https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCode.java) (Promo data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_documented_product["Documented product"]
  node_storefront["Angular storefront"]
  node_api["Laravel REST API"]
  node_database[("MySQL")]
end

subgraph group_business_rules["Java business rules"]
  node_cart["Cart rules<br/>[Cart.java]"]
  node_discounts["Discount and shipping"]
  node_promo_validator["Promo validation"]
  node_promo_data["Promo data<br/>[PromoCode.java]"]
end

node_shopper(("Shopper"))

node_shopper -->|"uses"| node_storefront
node_storefront -->|"uses API"| node_api
node_api -->|"uses"| node_database
node_promo_validator -->|"validates"| node_promo_data

click node_cart "https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/Cart.java"
click node_discounts "https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/DiscountCalculator.java"
click node_promo_validator "https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCodeValidator.java"
click node_promo_data "https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCode.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_storefront,node_api,node_database toneBlue
class node_cart,node_discounts,node_promo_validator,node_promo_data toneAmber
class node_shopper toneIndigo
```

## Components

### Documented product

- **Angular storefront**
- **Laravel REST API**
- **MySQL**

### Java business rules

- [Cart rules](https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/Cart.java): `code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/Cart.java`
- [Discount and shipping](https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/DiscountCalculator.java): `code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/DiscountCalculator.java`
- [Promo validation](https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCodeValidator.java): `code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCodeValidator.java`
- [Promo data](https://github.com/oleksandragorbonos-maker/tzap/blob/main/code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCode.java): `code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCode.java`

### Other components

- **Shopper**

## Connections

- Shopper → Angular storefront: uses (evidence: `README.md`)
- Angular storefront → Laravel REST API: uses API (evidence: `README.md`)
- Laravel REST API → MySQL: uses (evidence: `README.md`)
- Promo validation → Promo data: validates (evidence: `code/modules/shopline/v2/src/main/java/ua/kpi/tzyapz/shopline/PromoCodeValidator.java`)
