# kim-jeong-hun/shi_dt_2nd_project architecture

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

- Interactive diagram: https://gitdiagram.com/kim-jeong-hun/shi_dt_2nd_project
- Repository: https://github.com/kim-jeong-hun/shi_dt_2nd_project

## Overview

This repository supports monthly ship-order forecasting, its operational pipelines, and a React market dashboard/API. The user-facing path begins with sign-in and subscription gating, then enters the market dashboard; forecasting and market data are served by backend APIs, while Kedro pipelines produce forecast reports and Ship Pulse outputs. Core forecasting stages include publication-aware feature preparation, model selection/evaluation, and operational forecasting. The README describes broader collection and preprocessing scripts, but their runtime wiring is not shown here; several dashboard features are represented by source paths without sampled implementation.

Main entry points: [`src/ship_orders_forecasting/modeling.py`](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/src/ship_orders_forecasting/modeling.py) (Model selection), [`frontend/src/App.tsx`](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/App.tsx) (App entry), [`frontend/src/components/dashboard/MarketDashboard.tsx`](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/components/dashboard/MarketDashboard.tsx) (Market dashboard), [`backend/src/app.js`](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/src/app.js) (Express API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Dashboard experience"]
  node_app["App entry<br/>[App.tsx]"]
  node_landing["Landing and login<br/>[LandingPage.tsx]"]
  node_subscription["Subscription"]
  node_market["Market dashboard"]
  node_marketdata["Market datasets<br/>[mockMarket.ts]"]
  node_dashboardfeatures["Forecast and reports"]
  node_newsroom["Newsroom<br/>[Newsroom.tsx]"]
  node_i18n["Localization<br/>[index.tsx]"]
end

subgraph group_backend["API and serving"]
  node_api["Express API<br/>[app.js]"]
  node_auth["Authentication<br/>[auth.js]"]
  node_pg[("PostgreSQL")]
  node_runner["Forecast runner<br/>[forecastRunner.js]"]
  node_forecastapi["Forecast API<br/>[forecast.py]"]
  node_forecastengine["Forecast engine<br/>[forecast_engine.py]"]
end

subgraph group_forecast["Forecasting runtime"]
  node_modeling["Model selection<br/>[modeling.py]"]
  node_availability["Order availability"]
  node_operational["Operational forecast"]
  node_publication["Publication lag forecast"]
end

subgraph group_mlops["Operations pipelines"]
  node_registry["Pipeline registry"]
  node_orderspipeline["Ship orders pipeline<br/>[pipeline.py]"]
  node_teamnodes["Orders pipeline nodes<br/>[team_nodes.py]"]
  node_pulsepipeline["Ship Pulse pipeline<br/>[pipeline.py]"]
  node_pulsenodes["Ship Pulse modeling<br/>[nodes.py]"]
  node_pulsespec["Ship Pulse settings<br/>[spec.py]"]
  node_airflow["Airflow scheduler"]
end

node_user(("Visitor or user"))

node_user -->|"opens"| node_app
node_app -->|"renders"| node_landing
node_app -->|"gates access"| node_subscription
node_app -->|"renders"| node_market
node_market -->|"reads"| node_marketdata
node_market -->|"renders"| node_dashboardfeatures
node_market -->|"renders"| node_newsroom
node_landing -->|"uses"| node_i18n
node_subscription -->|"uses"| node_i18n
node_api -->|"registers"| node_auth
node_api -->|"calls"| node_runner
node_api -->|"queries"| node_pg
node_forecastapi -->|"calls"| node_forecastengine
node_forecastengine -->|"uses"| node_modeling
node_modeling -->|"imports"| node_availability
node_operational -->|"uses"| node_modeling
node_operational -->|"uses"| node_availability
node_publication -->|"uses"| node_modeling
node_publication -->|"uses"| node_operational
node_registry -->|"registers"| node_orderspipeline
node_registry -->|"registers"| node_pulsepipeline
node_orderspipeline -->|"invokes"| node_teamnodes
node_pulsepipeline -->|"invokes"| node_pulsenodes
node_pulsepipeline -->|"reads"| node_pulsespec
node_airflow -.->|"runs pipeline"| node_registry
node_teamnodes -->|"uses"| node_modeling

click node_app "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/App.tsx"
click node_landing "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/components/landing/LandingPage.tsx"
click node_subscription "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/components/subscription/SubscriptionPage.tsx"
click node_market "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/components/dashboard/MarketDashboard.tsx"
click node_marketdata "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/data/mockMarket.ts"
click node_dashboardfeatures "https://github.com/kim-jeong-hun/shi_dt_2nd_project/tree/main/frontend/src/components/dashboard"
click node_newsroom "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/components/dashboard/Newsroom.tsx"
click node_i18n "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/i18n/index.tsx"
click node_api "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/src/app.js"
click node_auth "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/src/auth.js"
click node_runner "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/src/forecastRunner.js"
click node_forecastapi "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/api/forecast.py"
click node_forecastengine "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/forecast_engine.py"
click node_modeling "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/src/ship_orders_forecasting/modeling.py"
click node_availability "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/src/ship_orders_forecasting/order_availability.py"
click node_operational "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/src/ship_orders_forecasting/operational_forecast.py"
click node_publication "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/src/ship_orders_forecasting/publication_lag_forecast.py"
click node_registry "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipeline_registry.py"
click node_orderspipeline "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_orders/pipeline.py"
click node_teamnodes "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_orders/team_nodes.py"
click node_pulsepipeline "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_pulse/pipeline.py"
click node_pulsenodes "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_pulse/nodes.py"
click node_pulsespec "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_pulse/spec.py"
click node_airflow "https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/airflow/dags/shi_ship_order_pipeline.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_app,node_landing,node_subscription,node_market,node_marketdata,node_dashboardfeatures,node_newsroom,node_i18n,node_user toneBlue
class node_api,node_auth,node_pg,node_runner,node_forecastapi,node_forecastengine toneAmber
class node_modeling,node_availability,node_operational,node_publication toneMint
class node_registry,node_orderspipeline,node_teamnodes,node_pulsepipeline,node_pulsenodes,node_pulsespec,node_airflow toneRose
```

## Components

### Dashboard experience

- [App entry](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Landing and login](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/components/landing/LandingPage.tsx): `frontend/src/components/landing/LandingPage.tsx`
- [Subscription](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/components/subscription/SubscriptionPage.tsx): `frontend/src/components/subscription/SubscriptionPage.tsx`
- [Market dashboard](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/components/dashboard/MarketDashboard.tsx): `frontend/src/components/dashboard/MarketDashboard.tsx`
- [Market datasets](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/data/mockMarket.ts): `frontend/src/data/mockMarket.ts`
- [Forecast and reports](https://github.com/kim-jeong-hun/shi_dt_2nd_project/tree/main/frontend/src/components/dashboard): `frontend/src/components/dashboard`
- [Newsroom](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/components/dashboard/Newsroom.tsx): `frontend/src/components/dashboard/Newsroom.tsx`
- [Localization](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/frontend/src/i18n/index.tsx): `frontend/src/i18n/index.tsx`

### API and serving

- [Express API](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/src/app.js): `backend/src/app.js`
- [Authentication](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/src/auth.js): `backend/src/auth.js`
- **PostgreSQL**
- [Forecast runner](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/src/forecastRunner.js): `backend/src/forecastRunner.js`
- [Forecast API](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/api/forecast.py): `backend/api/forecast.py`
- [Forecast engine](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/backend/forecast_engine.py): `backend/forecast_engine.py`

### Forecasting runtime

- [Model selection](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/src/ship_orders_forecasting/modeling.py): `src/ship_orders_forecasting/modeling.py`
- [Order availability](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/src/ship_orders_forecasting/order_availability.py): `src/ship_orders_forecasting/order_availability.py`
- [Operational forecast](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/src/ship_orders_forecasting/operational_forecast.py): `src/ship_orders_forecasting/operational_forecast.py`
- [Publication lag forecast](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/src/ship_orders_forecasting/publication_lag_forecast.py): `src/ship_orders_forecasting/publication_lag_forecast.py`

### Operations pipelines

- [Pipeline registry](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipeline_registry.py): `mlops/src/shi_dt/pipeline_registry.py`
- [Ship orders pipeline](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_orders/pipeline.py): `mlops/src/shi_dt/pipelines/ship_orders/pipeline.py`
- [Orders pipeline nodes](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_orders/team_nodes.py): `mlops/src/shi_dt/pipelines/ship_orders/team_nodes.py`
- [Ship Pulse pipeline](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_pulse/pipeline.py): `mlops/src/shi_dt/pipelines/ship_pulse/pipeline.py`
- [Ship Pulse modeling](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_pulse/nodes.py): `mlops/src/shi_dt/pipelines/ship_pulse/nodes.py`
- [Ship Pulse settings](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/src/shi_dt/pipelines/ship_pulse/spec.py): `mlops/src/shi_dt/pipelines/ship_pulse/spec.py`
- [Airflow scheduler](https://github.com/kim-jeong-hun/shi_dt_2nd_project/blob/main/mlops/airflow/dags/shi_ship_order_pipeline.py): `mlops/airflow/dags/shi_ship_order_pipeline.py`

### Other components

- **Visitor or user**

## Connections

- Visitor or user → App entry: opens
- App entry → Landing and login: renders (evidence: `frontend/src/App.tsx`)
- App entry → Subscription: gates access (evidence: `frontend/src/App.tsx`)
- App entry → Market dashboard: renders (evidence: `frontend/src/App.tsx`)
- Market dashboard → Market datasets: reads (evidence: `frontend/src/components/dashboard/MarketDashboard.tsx`)
- Market dashboard → Forecast and reports: renders (evidence: `frontend/src/components/dashboard/MarketDashboard.tsx`)
- Market dashboard → Newsroom: renders (evidence: `frontend/src/components/dashboard/MarketDashboard.tsx`)
- Landing and login → Localization: uses (evidence: `frontend/src/components/landing/LandingPage.tsx`)
- Subscription → Localization: uses (evidence: `frontend/src/components/subscription/SubscriptionPage.tsx`)
- Express API → Authentication: registers (evidence: `backend/src/app.js`)
- Express API → Forecast runner: calls (evidence: `backend/src/app.js`)
- Express API → PostgreSQL: queries (evidence: `backend/src/app.js`)
- Forecast API → Forecast engine: calls (evidence: `backend/api/forecast.py`)
- Forecast engine → Model selection: uses (evidence: `backend/forecast_engine.py`)
- Model selection → Order availability: imports (evidence: `src/ship_orders_forecasting/modeling.py`)
- Operational forecast → Model selection: uses (evidence: `src/ship_orders_forecasting/operational_forecast.py`)
- Operational forecast → Order availability: uses (evidence: `src/ship_orders_forecasting/operational_forecast.py`)
- Publication lag forecast → Model selection: uses (evidence: `src/ship_orders_forecasting/publication_lag_forecast.py`)
- Publication lag forecast → Operational forecast: uses (evidence: `src/ship_orders_forecasting/publication_lag_forecast.py`)
- Pipeline registry → Ship orders pipeline: registers (evidence: `mlops/src/shi_dt/pipeline_registry.py`)
- Pipeline registry → Ship Pulse pipeline: registers (evidence: `mlops/src/shi_dt/pipeline_registry.py`)
- Ship orders pipeline → Orders pipeline nodes: invokes (evidence: `mlops/src/shi_dt/pipelines/ship_orders/pipeline.py`)
- Ship Pulse pipeline → Ship Pulse modeling: invokes (evidence: `mlops/src/shi_dt/pipelines/ship_pulse/pipeline.py`)
- Ship Pulse pipeline → Ship Pulse settings: reads (evidence: `mlops/src/shi_dt/pipelines/ship_pulse/pipeline.py`)
- Airflow scheduler → Pipeline registry: runs pipeline (evidence: `mlops/src/shi_dt/pipeline_registry.py`)
- Orders pipeline nodes → Model selection: uses (evidence: `mlops/src/shi_dt/pipelines/ship_orders/team_nodes.py`)
