# zelofane22/collector.shop architecture

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

- Interactive diagram: https://gitdiagram.com/zelofane22/collector.shop
- Repository: https://github.com/zelofane22/collector.shop

## Overview

Collector.shop appears to be an administrative commerce application: users manage products, orders, and payments through an Angular frontend, with a gateway and separate Spring services. The source tree supports these product areas, authentication and authorization components, and service-side persistence layers. The supplied excerpts are empty and the README documents no architecture, so runtime links between frontend, gateway, and services are shown only as unverified dashed relationships; no specific database or identity provider is asserted.

Main entry points: [`gateway/src/main/java/com/projet/gateway/GatewayApplication.java`](https://github.com/zelofane22/collector.shop/blob/main/gateway/src/main/java/com/projet/gateway/GatewayApplication.java) (Request gateway), [`frontend/src/app/app.component.ts`](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/app.component.ts) (Angular application), [`services/commandes/src/main/java/com/projet/commandes/service/CommandeService.java`](https://github.com/zelofane22/collector.shop/blob/main/services/commandes/src/main/java/com/projet/commandes/service/CommandeService.java) (Order service), [`frontend/src/app/features/produits/services/produit-api.service.ts`](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/produits/services/produit-api.service.ts) (Product API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web application"]
  node_web["Angular application<br/>[app.component.ts]"]
  node_product_ui["Product screens"]
  node_product_detail["Product detail"]
  node_product_api["Product API client"]
  node_order_ui["Order screens"]
  node_order_api["Order API client"]
  node_payment_ui["Payment screens"]
  node_payment_api["Payment API client"]
end

subgraph group_gateway["API gateway"]
  node_gateway["Request gateway"]
end

subgraph group_services["Commerce services"]
  node_products["Product service"]
  node_product_store["Product repository"]
  node_orders["Order service"]
  node_order_store["Order repository"]
  node_product_client["Product client<br/>[ProduitClient.java]"]
  node_payments["Payment service"]
  node_payment_store["Payment repository"]
end

subgraph group_security["Access control"]
  node_auth["Authentication service<br/>[auth.service.ts]"]
  node_service_security["Service security"]
end

node_user(("Administrator"))

node_user -.->|"uses"| node_web
node_web -.->|"opens"| node_product_ui
node_web -.->|"opens"| node_order_ui
node_web -.->|"opens"| node_payment_ui
node_product_ui -.->|"requests data"| node_product_api
node_product_detail -.->|"requests data"| node_product_api
node_order_ui -.->|"requests data"| node_order_api
node_payment_ui -.->|"requests data"| node_payment_api
node_product_api -.->|"sends requests"| node_gateway
node_order_api -.->|"sends requests"| node_gateway
node_payment_api -.->|"sends requests"| node_gateway
node_gateway -.->|"routes requests"| node_products
node_gateway -.->|"routes requests"| node_orders
node_gateway -.->|"routes requests"| node_payments
node_products -.->|"accesses data"| node_product_store
node_orders -.->|"accesses data"| node_order_store
node_orders -.->|"uses client"| node_product_client
node_payments -.->|"accesses data"| node_payment_store
node_auth -.->|"authenticates"| node_gateway
node_gateway -.->|"enforces access"| node_service_security

click node_web "https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/app.component.ts"
click node_product_ui "https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/produits/liste-produits/liste-produits.component.ts"
click node_product_detail "https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/produits/detail-produit/detail-produit.component.ts"
click node_product_api "https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/produits/services/produit-api.service.ts"
click node_order_ui "https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/commandes/liste-commandes/liste-commandes.component.ts"
click node_order_api "https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/commandes/services/commande-api.service.ts"
click node_payment_ui "https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/paiements/liste-paiements/liste-paiements.component.ts"
click node_payment_api "https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/paiements/services/paiement-api.service.ts"
click node_auth "https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/core/auth/auth.service.ts"
click node_gateway "https://github.com/zelofane22/collector.shop/blob/main/gateway/src/main/java/com/projet/gateway/GatewayApplication.java"
click node_products "https://github.com/zelofane22/collector.shop/blob/main/services/produits/src/main/java/com/projet/produits/service/ProduitService.java"
click node_product_store "https://github.com/zelofane22/collector.shop/blob/main/services/produits/src/main/java/com/projet/produits/repository/ProduitRepository.java"
click node_orders "https://github.com/zelofane22/collector.shop/blob/main/services/commandes/src/main/java/com/projet/commandes/service/CommandeService.java"
click node_order_store "https://github.com/zelofane22/collector.shop/blob/main/services/commandes/src/main/java/com/projet/commandes/repository/CommandeRepository.java"
click node_product_client "https://github.com/zelofane22/collector.shop/blob/main/services/commandes/src/main/java/com/projet/commandes/client/ProduitClient.java"
click node_payments "https://github.com/zelofane22/collector.shop/blob/main/services/paiements/src/main/java/com/projet/paiements/service/PaiementService.java"
click node_payment_store "https://github.com/zelofane22/collector.shop/blob/main/services/paiements/src/main/java/com/projet/paiements/repository/PaiementRepository.java"
click node_service_security "https://github.com/zelofane22/collector.shop/blob/main/services/commandes/src/main/java/com/projet/commandes/config/SecurityConfig.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_web,node_product_ui,node_product_detail,node_product_api,node_order_ui,node_order_api,node_payment_ui,node_payment_api toneBlue
class node_gateway toneAmber
class node_products,node_product_store,node_orders,node_order_store,node_product_client,node_payments,node_payment_store toneMint
class node_auth,node_service_security toneRose
class node_user toneIndigo
```

## Components

### Web application

- [Angular application](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/app.component.ts): `frontend/src/app/app.component.ts`
- [Product screens](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/produits/liste-produits/liste-produits.component.ts): `frontend/src/app/features/produits/liste-produits/liste-produits.component.ts`
- [Product detail](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/produits/detail-produit/detail-produit.component.ts): `frontend/src/app/features/produits/detail-produit/detail-produit.component.ts`
- [Product API client](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/produits/services/produit-api.service.ts): `frontend/src/app/features/produits/services/produit-api.service.ts`
- [Order screens](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/commandes/liste-commandes/liste-commandes.component.ts): `frontend/src/app/features/commandes/liste-commandes/liste-commandes.component.ts`
- [Order API client](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/commandes/services/commande-api.service.ts): `frontend/src/app/features/commandes/services/commande-api.service.ts`
- [Payment screens](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/paiements/liste-paiements/liste-paiements.component.ts): `frontend/src/app/features/paiements/liste-paiements/liste-paiements.component.ts`
- [Payment API client](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/features/paiements/services/paiement-api.service.ts): `frontend/src/app/features/paiements/services/paiement-api.service.ts`

### API gateway

- [Request gateway](https://github.com/zelofane22/collector.shop/blob/main/gateway/src/main/java/com/projet/gateway/GatewayApplication.java): `gateway/src/main/java/com/projet/gateway/GatewayApplication.java`

### Commerce services

- [Product service](https://github.com/zelofane22/collector.shop/blob/main/services/produits/src/main/java/com/projet/produits/service/ProduitService.java): `services/produits/src/main/java/com/projet/produits/service/ProduitService.java`
- [Product repository](https://github.com/zelofane22/collector.shop/blob/main/services/produits/src/main/java/com/projet/produits/repository/ProduitRepository.java): `services/produits/src/main/java/com/projet/produits/repository/ProduitRepository.java`
- [Order service](https://github.com/zelofane22/collector.shop/blob/main/services/commandes/src/main/java/com/projet/commandes/service/CommandeService.java): `services/commandes/src/main/java/com/projet/commandes/service/CommandeService.java`
- [Order repository](https://github.com/zelofane22/collector.shop/blob/main/services/commandes/src/main/java/com/projet/commandes/repository/CommandeRepository.java): `services/commandes/src/main/java/com/projet/commandes/repository/CommandeRepository.java`
- [Product client](https://github.com/zelofane22/collector.shop/blob/main/services/commandes/src/main/java/com/projet/commandes/client/ProduitClient.java): `services/commandes/src/main/java/com/projet/commandes/client/ProduitClient.java`
- [Payment service](https://github.com/zelofane22/collector.shop/blob/main/services/paiements/src/main/java/com/projet/paiements/service/PaiementService.java): `services/paiements/src/main/java/com/projet/paiements/service/PaiementService.java`
- [Payment repository](https://github.com/zelofane22/collector.shop/blob/main/services/paiements/src/main/java/com/projet/paiements/repository/PaiementRepository.java): `services/paiements/src/main/java/com/projet/paiements/repository/PaiementRepository.java`

### Access control

- [Authentication service](https://github.com/zelofane22/collector.shop/blob/main/frontend/src/app/core/auth/auth.service.ts): `frontend/src/app/core/auth/auth.service.ts`
- [Service security](https://github.com/zelofane22/collector.shop/blob/main/services/commandes/src/main/java/com/projet/commandes/config/SecurityConfig.java): `services/commandes/src/main/java/com/projet/commandes/config/SecurityConfig.java`

### Other components

- **Administrator**

## Connections

- Administrator → Angular application: uses
- Angular application → Product screens: opens
- Angular application → Order screens: opens
- Angular application → Payment screens: opens
- Product screens → Product API client: requests data
- Product detail → Product API client: requests data
- Order screens → Order API client: requests data
- Payment screens → Payment API client: requests data
- Product API client → Request gateway: sends requests
- Order API client → Request gateway: sends requests
- Payment API client → Request gateway: sends requests
- Request gateway → Product service: routes requests
- Request gateway → Order service: routes requests
- Request gateway → Payment service: routes requests
- Product service → Product repository: accesses data
- Order service → Order repository: accesses data
- Order service → Product client: uses client
- Payment service → Payment repository: accesses data
- Authentication service → Request gateway: authenticates
- Request gateway → Service security: enforces access
