# yukioishi-eng/backend-practice architecture

> Architecture diagram of the GitHub repository yukioishi-eng/backend-practice, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yukioishi-eng/backend-practice
- Repository: https://github.com/yukioishi-eng/backend-practice

## Overview

This repository is a backend-learning portfolio, with the DDD order-management API as its principal product workflow. The map also preserves the README’s major learning branches: FastAPI exercises, Python design fundamentals, data analysis, and SQLAlchemy. Order-system relationships use the README and sampled API/domain excerpts; unsampled exercise details are represented at directory level rather than inferred as a connected pipeline.

Main entry points: [`order_system/order_system_v5.py`](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py) (Payment use case), [`order_system/order_system_API.py`](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_API.py) (Order API), [`sql_practice/sqlalchemy/table_detail.py`](https://github.com/yukioishi-eng/backend-practice/blob/main/sql_practice/sqlalchemy/table_detail.py) (SQLAlchemy models), [`fastapi_practice/client.py`](https://github.com/yukioishi-eng/backend-practice/blob/main/fastapi_practice/client.py) (Requests client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orders["Order system"]
  node_order_api["Order API"]
  node_payment_flow["Payment use case<br/>[order_system_v5.py]"]
  node_order_domain["Order domain<br/>[order_system_v5.py]"]
  node_repositories[("Repositories<br/>[order_system_v5.py]")]
  node_event_dispatch["Event dispatcher<br/>[order_system_v5.py]"]
  node_receipt_handler["Receipt handler<br/>[order_system_v5.py]"]
  node_receipt_sender["Receipt sender<br/>[order_system_v5.py]"]
  node_notification_services["Notification services<br/>[order_system_v5.py]"]
end

subgraph group_backend["Backend learning"]
  node_fastapi_exercises["FastAPI exercises"]
  node_exercise_client["Requests client<br/>[client.py]"]
  node_python_design["Python design practice"]
end

subgraph group_analysis["Data analysis"]
  node_numpy["NumPy exercises<br/>[numpy_basics.py]"]
  node_numpy_exercises["NumPy practice<br/>[NumPy_exercises.py]"]
  node_pandas["Pandas analysis<br/>[pandas_basics.py]"]
  node_matplotlib["Matplotlib charts"]
end

subgraph group_sql["SQL practice"]
  node_sqlalchemy_models[("SQLAlchemy models<br/>[table_detail.py]")]
  node_sql_table_creation["Table creation<br/>[create_table.py]"]
  node_sql_table_view["Table inspection<br/>[table_view.py]"]
end

node_client(("API client"))

node_client -.->|"sends requests"| node_order_api
node_order_api -->|"executes payment"| node_payment_flow
node_order_api -->|"reads and creates"| node_repositories
node_payment_flow -->|"loads and saves"| node_repositories
node_payment_flow -->|"applies payment"| node_order_domain
node_payment_flow -.->|"dispatches events"| node_event_dispatch
node_event_dispatch -.->|"invokes handler"| node_receipt_handler
node_receipt_handler -.->|"uses sender"| node_receipt_sender
node_receipt_sender -.->|"supports channels"| node_notification_services
node_exercise_client -.->|"demonstrates requests"| node_fastapi_exercises
node_sql_table_creation -->|"creates tables from"| node_sqlalchemy_models
node_sql_table_view -.->|"inspects tables"| node_sqlalchemy_models

click node_order_api "https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_API.py"
click node_payment_flow "https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py"
click node_order_domain "https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py"
click node_repositories "https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py"
click node_event_dispatch "https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py"
click node_receipt_handler "https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py"
click node_receipt_sender "https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py"
click node_notification_services "https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py"
click node_fastapi_exercises "https://github.com/yukioishi-eng/backend-practice/tree/main/fastapi_practice"
click node_exercise_client "https://github.com/yukioishi-eng/backend-practice/blob/main/fastapi_practice/client.py"
click node_python_design "https://github.com/yukioishi-eng/backend-practice/tree/main/python_fundamentals"
click node_numpy "https://github.com/yukioishi-eng/backend-practice/blob/main/data_analysis/numpy_basics.py"
click node_numpy_exercises "https://github.com/yukioishi-eng/backend-practice/blob/main/data_analysis/NumPy_exercises.py"
click node_pandas "https://github.com/yukioishi-eng/backend-practice/blob/main/data_analysis/pandas_basics.py"
click node_matplotlib "https://github.com/yukioishi-eng/backend-practice/blob/main/data_analysis/matplotlib_basics.py"
click node_sqlalchemy_models "https://github.com/yukioishi-eng/backend-practice/blob/main/sql_practice/sqlalchemy/table_detail.py"
click node_sql_table_creation "https://github.com/yukioishi-eng/backend-practice/blob/main/sql_practice/sqlalchemy/create_table.py"
click node_sql_table_view "https://github.com/yukioishi-eng/backend-practice/blob/main/sql_practice/sqlalchemy/table_view.py"

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_order_api,node_payment_flow,node_order_domain,node_repositories,node_event_dispatch,node_receipt_handler,node_receipt_sender,node_notification_services,node_client toneBlue
class node_fastapi_exercises,node_exercise_client,node_python_design toneAmber
class node_numpy,node_numpy_exercises,node_pandas,node_matplotlib toneMint
class node_sqlalchemy_models,node_sql_table_creation,node_sql_table_view toneRose
```

## Components

### Order system

- [Order API](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_API.py): `order_system/order_system_API.py`
- [Payment use case](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py): `order_system/order_system_v5.py`
- [Order domain](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py): `order_system/order_system_v5.py`
- [Repositories](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py): `order_system/order_system_v5.py`
- [Event dispatcher](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py): `order_system/order_system_v5.py`
- [Receipt handler](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py): `order_system/order_system_v5.py`
- [Receipt sender](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py): `order_system/order_system_v5.py`
- [Notification services](https://github.com/yukioishi-eng/backend-practice/blob/main/order_system/order_system_v5.py): `order_system/order_system_v5.py`

### Backend learning

- [FastAPI exercises](https://github.com/yukioishi-eng/backend-practice/tree/main/fastapi_practice): `fastapi_practice`
- [Requests client](https://github.com/yukioishi-eng/backend-practice/blob/main/fastapi_practice/client.py): `fastapi_practice/client.py`
- [Python design practice](https://github.com/yukioishi-eng/backend-practice/tree/main/python_fundamentals): `python_fundamentals`

### Data analysis

- [NumPy exercises](https://github.com/yukioishi-eng/backend-practice/blob/main/data_analysis/numpy_basics.py): `data_analysis/numpy_basics.py`
- [NumPy practice](https://github.com/yukioishi-eng/backend-practice/blob/main/data_analysis/NumPy_exercises.py): `data_analysis/NumPy_exercises.py`
- [Pandas analysis](https://github.com/yukioishi-eng/backend-practice/blob/main/data_analysis/pandas_basics.py): `data_analysis/pandas_basics.py`
- [Matplotlib charts](https://github.com/yukioishi-eng/backend-practice/blob/main/data_analysis/matplotlib_basics.py): `data_analysis/matplotlib_basics.py`

### SQL practice

- [SQLAlchemy models](https://github.com/yukioishi-eng/backend-practice/blob/main/sql_practice/sqlalchemy/table_detail.py): `sql_practice/sqlalchemy/table_detail.py`
- [Table creation](https://github.com/yukioishi-eng/backend-practice/blob/main/sql_practice/sqlalchemy/create_table.py): `sql_practice/sqlalchemy/create_table.py`
- [Table inspection](https://github.com/yukioishi-eng/backend-practice/blob/main/sql_practice/sqlalchemy/table_view.py): `sql_practice/sqlalchemy/table_view.py`

### Other components

- **API client**

## Connections

- API client → Order API: sends requests (evidence: `README.md`)
- Order API → Payment use case: executes payment (evidence: `order_system/order_system_API.py`)
- Order API → Repositories: reads and creates (evidence: `order_system/order_system_API.py`)
- Payment use case → Repositories: loads and saves (evidence: `order_system/order_system_v5.py`)
- Payment use case → Order domain: applies payment (evidence: `order_system/order_system_v5.py`)
- Payment use case → Event dispatcher: dispatches events (evidence: `README.md`)
- Event dispatcher → Receipt handler: invokes handler (evidence: `README.md`)
- Receipt handler → Receipt sender: uses sender (evidence: `README.md`)
- Receipt sender → Notification services: supports channels (evidence: `README.md`)
- Requests client → FastAPI exercises: demonstrates requests (evidence: `README.md`)
- Table creation → SQLAlchemy models: creates tables from (evidence: `sql_practice/sqlalchemy/create_table.py`)
- Table inspection → SQLAlchemy models: inspects tables
