# solid32/awesome-inc architecture

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

- Interactive diagram: https://gitdiagram.com/solid32/awesome-inc
- Repository: https://github.com/solid32/awesome-inc

## Overview

This repository provides a FastAPI service that exposes PostgreSQL table data as JSON, including development-limited and all-table endpoints, alongside a dbt warehouse project with installation, revenue, and dimensional/fact models. The shown API routes call the data-access class, which reads PostgreSQL metadata and rows; connection settings come from environment variables. Warehouse model files are identified by the tree, but their SQL and dbt dependencies were not sampled, so their relationships to source data or to one another are left unspecified.

Main entry points: [`awesome-project/src/api.py`](https://github.com/solid32/awesome-inc/blob/main/awesome-project/src/api.py) (HTTP Routes), [`awesome-project/src/app.py`](https://github.com/solid32/awesome-inc/blob/main/awesome-project/src/app.py) (Table Data Access), [`awesome-project/src/params.py`](https://github.com/solid32/awesome-inc/blob/main/awesome-project/src/params.py) (DB Settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Data API"]
  node_routes["HTTP Routes<br/>[api.py]"]
  node_dataapi["Table Data Access<br/>[app.py]"]
  node_settings["DB Settings<br/>[params.py]"]
end

subgraph group_warehouse["Warehouse Models"]
  node_install_month["Monthly Installations"]
  node_revenue_product["Product Revenue"]
  node_revenue_region["Regional Revenue"]
  node_dim_country["Country Dimension<br/>[dimCountry.sql]"]
  node_dim_customer["Customer Dimension<br/>[dimCustomer.sql]"]
  node_dim_date["Date Dimension<br/>[dimDate.sql]"]
  node_dim_description["Description Dimension<br/>[dimDescription.sql]"]
  node_dim_product["Product Dimension<br/>[dimProduct.sql]"]
  node_dim_category["Product Category"]
  node_fact_installation["Installation Fact"]
end

subgraph group_external["External Systems"]
  node_postgres[("PostgreSQL")]
  node_adf["Azure Data Factory"]
end

node_consumer(("API Client"))

node_consumer -->|"requests"| node_routes
node_routes -->|"calls"| node_dataapi
node_dataapi -->|"imports settings"| node_settings
node_dataapi -->|"queries tables"| node_postgres
node_routes -.->|"serves JSON"| node_adf

click node_routes "https://github.com/solid32/awesome-inc/blob/main/awesome-project/src/api.py"
click node_dataapi "https://github.com/solid32/awesome-inc/blob/main/awesome-project/src/app.py"
click node_settings "https://github.com/solid32/awesome-inc/blob/main/awesome-project/src/params.py"
click node_install_month "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/installations_by_month.sql"
click node_revenue_product "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/revenues_by_product_cat.sql"
click node_revenue_region "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/revenues_by_regions.sql"
click node_dim_country "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimCountry.sql"
click node_dim_customer "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimCustomer.sql"
click node_dim_date "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimDate.sql"
click node_dim_description "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimDescription.sql"
click node_dim_product "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimProduct.sql"
click node_dim_category "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimProductCategory.sql"
click node_fact_installation "https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/factInstallation.sql"

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_routes,node_dataapi,node_settings,node_consumer toneBlue
class node_install_month,node_revenue_product,node_revenue_region,node_dim_country,node_dim_customer,node_dim_date,node_dim_description,node_dim_product,node_dim_category,node_fact_installation toneAmber
class node_postgres,node_adf toneMint
```

## Components

### Data API

- [HTTP Routes](https://github.com/solid32/awesome-inc/blob/main/awesome-project/src/api.py): `awesome-project/src/api.py`
- [Table Data Access](https://github.com/solid32/awesome-inc/blob/main/awesome-project/src/app.py): `awesome-project/src/app.py`
- [DB Settings](https://github.com/solid32/awesome-inc/blob/main/awesome-project/src/params.py): `awesome-project/src/params.py`

### Warehouse Models

- [Monthly Installations](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/installations_by_month.sql): `awesome-project/warehouse/models/installations_by_month.sql`
- [Product Revenue](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/revenues_by_product_cat.sql): `awesome-project/warehouse/models/revenues_by_product_cat.sql`
- [Regional Revenue](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/revenues_by_regions.sql): `awesome-project/warehouse/models/revenues_by_regions.sql`
- [Country Dimension](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimCountry.sql): `awesome-project/warehouse/models/mart/dimCountry.sql`
- [Customer Dimension](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimCustomer.sql): `awesome-project/warehouse/models/mart/dimCustomer.sql`
- [Date Dimension](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimDate.sql): `awesome-project/warehouse/models/mart/dimDate.sql`
- [Description Dimension](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimDescription.sql): `awesome-project/warehouse/models/mart/dimDescription.sql`
- [Product Dimension](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimProduct.sql): `awesome-project/warehouse/models/mart/dimProduct.sql`
- [Product Category](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/dimProductCategory.sql): `awesome-project/warehouse/models/mart/dimProductCategory.sql`
- [Installation Fact](https://github.com/solid32/awesome-inc/blob/main/awesome-project/warehouse/models/mart/factInstallation.sql): `awesome-project/warehouse/models/mart/factInstallation.sql`

### External Systems

- **PostgreSQL**
- **Azure Data Factory**

### Other components

- **API Client**

## Connections

- API Client → HTTP Routes: requests (evidence: `awesome-project/src/api.py`)
- HTTP Routes → Table Data Access: calls (evidence: `awesome-project/src/api.py`)
- Table Data Access → DB Settings: imports settings (evidence: `awesome-project/src/app.py`)
- Table Data Access → PostgreSQL: queries tables (evidence: `awesome-project/src/app.py`)
- HTTP Routes → Azure Data Factory: serves JSON
