# manyampulendra/uae-retail-logistics-analytics architecture

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

- Interactive diagram: https://gitdiagram.com/manyampulendra/uae-retail-logistics-analytics
- Repository: https://github.com/manyampulendra/uae-retail-logistics-analytics

## Overview

This is a synthetic-data retail and logistics analytics project. Its main workflow generates CSV datasets, loads them into SQLite through a schema-driven ETL process, and presents filtered sales, customer, delivery, and product analysis in a Streamlit dashboard. SQL business queries and a Jupyter EDA notebook provide additional analysis paths; database verification supports the data workflow. The README documents the overall sequence, while sampled code confirms the ETL’s schema and CSV loading and the dashboard’s database reads. Some subsystem links rely on README documentation because their source was not sampled.

Main entry points: [`Dashboard/dashboard/app.py`](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py) (Streamlit dashboard), [`Data/data/uae_retail.db`](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Data/data/uae_retail.db) (SQLite analytics database), [`Python/python/etl.py`](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Python/python/etl.py) (CSV ETL loader), [`Data/data`](https://github.com/manyampulendra/uae-retail-logistics-analytics/tree/main/Data/data) (Retail CSV datasets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_generator["Synthetic data generator<br/>[generate_data.py]"]
  node_csv["Retail CSV datasets"]
  node_etl["CSV ETL loader<br/>[etl.py]"]
end

subgraph group_storage["Database"]
  node_schema["Relational schema<br/>[01_schema.sql]"]
  node_db[("SQLite analytics database<br/>[uae_retail.db]")]
  node_verification["Database verification<br/>[verify_db.py]"]
end

subgraph group_analysis["Analysis"]
  node_business_sql["Business SQL analysis"]
  node_query_runner["Top-products query runner<br/>[run_query.py]"]
  node_eda["Exploratory analysis<br/>[01_eda.ipynb]"]
end

subgraph group_dashboard["Dashboard"]
  node_dashboard_app["Streamlit dashboard<br/>[app.py]"]
  node_sales["Sales and revenue<br/>[app.py]"]
  node_customers["Customer RFM and cohorts<br/>[app.py]"]
  node_delivery["Delivery performance<br/>[app.py]"]
  node_products["Product mix<br/>[app.py]"]
end

node_analyst(("Business user"))
node_insights["Business insights"]

node_generator -->|"generates"| node_csv
node_csv -->|"loads from"| node_etl
node_etl -->|"applies"| node_schema
node_etl -->|"loads tables"| node_db
node_etl -->|"reads files"| node_csv
node_verification -->|"checks tables"| node_db
node_business_sql -->|"analyzes"| node_db
node_query_runner -->|"queries"| node_db
node_eda -->|"analyzes"| node_db
node_analyst -->|"uses"| node_dashboard_app
node_dashboard_app -->|"reads"| node_db
node_dashboard_app -->|"renders"| node_sales
node_dashboard_app -->|"renders"| node_customers
node_dashboard_app -->|"renders"| node_delivery
node_dashboard_app -->|"renders"| node_products
node_dashboard_app -->|"presents"| node_insights

click node_generator "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Python/python/generate_data.py"
click node_csv "https://github.com/manyampulendra/uae-retail-logistics-analytics/tree/main/Data/data"
click node_etl "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Python/python/etl.py"
click node_schema "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Sql/sql/01_schema.sql"
click node_db "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Data/data/uae_retail.db"
click node_verification "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Python/python/verify_db.py"
click node_business_sql "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Sql/sql/02_business_queries.sql"
click node_query_runner "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Python/python/run_query.py"
click node_eda "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Notebooks/notebooks/01_eda.ipynb"
click node_dashboard_app "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py"
click node_sales "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py"
click node_customers "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py"
click node_delivery "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py"
click node_products "https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.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_generator,node_csv,node_etl,node_analyst toneBlue
class node_schema,node_db,node_verification toneAmber
class node_business_sql,node_query_runner,node_eda toneMint
class node_dashboard_app,node_sales,node_customers,node_delivery,node_products toneRose
class node_insights toneIndigo
```

## Components

### Data preparation

- [Synthetic data generator](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Python/python/generate_data.py): `Python/python/generate_data.py`
- [Retail CSV datasets](https://github.com/manyampulendra/uae-retail-logistics-analytics/tree/main/Data/data): `Data/data`
- [CSV ETL loader](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Python/python/etl.py): `Python/python/etl.py`

### Database

- [Relational schema](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Sql/sql/01_schema.sql): `Sql/sql/01_schema.sql`
- [SQLite analytics database](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Data/data/uae_retail.db): `Data/data/uae_retail.db`
- [Database verification](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Python/python/verify_db.py): `Python/python/verify_db.py`

### Analysis

- [Business SQL analysis](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Sql/sql/02_business_queries.sql): `Sql/sql/02_business_queries.sql`
- [Top-products query runner](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Python/python/run_query.py): `Python/python/run_query.py`
- [Exploratory analysis](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Notebooks/notebooks/01_eda.ipynb): `Notebooks/notebooks/01_eda.ipynb`

### Dashboard

- [Streamlit dashboard](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py): `Dashboard/dashboard/app.py`
- [Sales and revenue](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py): `Dashboard/dashboard/app.py`
- [Customer RFM and cohorts](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py): `Dashboard/dashboard/app.py`
- [Delivery performance](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py): `Dashboard/dashboard/app.py`
- [Product mix](https://github.com/manyampulendra/uae-retail-logistics-analytics/blob/main/Dashboard/dashboard/app.py): `Dashboard/dashboard/app.py`

### Other components

- **Business user**
- **Business insights**

## Connections

- Synthetic data generator → Retail CSV datasets: generates (evidence: `README.md`)
- Retail CSV datasets → CSV ETL loader: loads from (evidence: `README.md`)
- CSV ETL loader → Relational schema: applies (evidence: `Python/python/etl.py`)
- CSV ETL loader → SQLite analytics database: loads tables (evidence: `Python/python/etl.py`)
- CSV ETL loader → Retail CSV datasets: reads files (evidence: `Python/python/etl.py`)
- Database verification → SQLite analytics database: checks tables (evidence: `Python/python/verify_db.py`)
- Business SQL analysis → SQLite analytics database: analyzes (evidence: `README.md`)
- Top-products query runner → SQLite analytics database: queries (evidence: `Python/python/run_query.py`)
- Exploratory analysis → SQLite analytics database: analyzes (evidence: `README.md`)
- Business user → Streamlit dashboard: uses (evidence: `README.md`)
- Streamlit dashboard → SQLite analytics database: reads (evidence: `Dashboard/dashboard/app.py`)
- Streamlit dashboard → Sales and revenue: renders (evidence: `Dashboard/dashboard/app.py`)
- Streamlit dashboard → Customer RFM and cohorts: renders (evidence: `Dashboard/dashboard/app.py`)
- Streamlit dashboard → Delivery performance: renders (evidence: `Dashboard/dashboard/app.py`)
- Streamlit dashboard → Product mix: renders (evidence: `Dashboard/dashboard/app.py`)
- Streamlit dashboard → Business insights: presents (evidence: `README.md`)
