# shashank-scikiq/data-quality architecture

> Architecture diagram of the GitHub repository shashank-scikiq/data-quality, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shashank-scikiq/data-quality
- Repository: https://github.com/shashank-scikiq/data-quality

## Overview

##### Main Components Identification

The system consists of several key components:
- Frontend (Angular Application)
- Backend (Python/Flask)
- Data Processing Layer
- API Layer
- Database Layer

##### Component Relationships

- HTTP/REST communication between Frontend and Backend
- Data flow between Backend and Database
- ETL processes
- API integrations

##### Specific Implementation Details

Frontend Section:
**[Angular App]**
- Core Module (API Services, Guards)
- Feature Modules (Retail, Logistic, Summary)
- Shared Components (Charts, Forms, Layouts)

Backend Section:
**[Flask Server]**
- API Layer
- Business Logic
- Data Processing
- Models

##### Additional Elements

Include:
- Security layer (if present)
- Caching mechanisms
- External service integrations
- Deployment containers (Dockerfile present)

Use standard symbols:
- Rectangles: Components/Modules
- Clouds: External services
- Hexagons: API endpoints

##### Technical Details

- Angular 17.x framework
- Python/Flask backend
- SQL database
- Docker containerization
- RESTful API architecture
- Data visualization components (ApexCharts)

##### Notes for Implementation

- Related components
- Primary data flows
- Important technologies
- Version information
- Document API endpoints
- Security measures

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Frontend
        ANG[Angular Application]
        CM["Core Module"]:::frontend
        SM["Shared Module"]:::frontend
        FM["Feature Modules"]:::frontend
        UI["UI Components"]:::frontend
        RT["Routing"]:::frontend
        MD["Material Design"]:::frontend
        
        ANG --> CM
        ANG --> SM
        ANG --> FM
        ANG --> UI
        ANG --> RT
        ANG --> MD
    end

    subgraph Backend
        WS["Web Server (Flask)"]:::backend
        AH["API Handler"]:::backend
        BL["Business Logic"]:::backend
        DP["Data Processing"]:::backend
        ML["Model Layer"]:::backend
    end

    subgraph "Data Layer"
        DB[(SQL Database)]:::database
        DF["Data Files"]:::storage
        AS["API Storage"]:::storage
    end

    %% Connections
    CM --> WS
    SM --> WS
    FM --> WS
    
    WS --> AH
    AH --> BL
    BL --> DP
    BL --> ML
    
    DP --> DB
    DP --> DF
    AH --> AS
    ML --> DB

    %% Styles
    classDef frontend fill:#3498db,stroke:#2980b9,color:white
    classDef backend fill:#2ecc71,stroke:#27ae60,color:white
    classDef database fill:#f1c40f,stroke:#f39c12,color:black
    classDef storage fill:#e67e22,stroke:#d35400,color:white
    
    %% Click Events
    click CM "https://github.com/shashank-scikiq/Data-Quality/tree/fa_backend/FA_Backend/static/ng-workspace/src/app/core/"
    click SM "https://github.com/shashank-scikiq/Data-Quality/tree/fa_backend/FA_Backend/static/ng-workspace/src/app/components/shared/"
    click FM "https://github.com/shashank-scikiq/Data-Quality/tree/fa_backend/FA_Backend/static/ng-workspace/src/app/components/"
    click WS "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/Misc/webapp.py"
    click AH "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/Logic/API_calls.py"
    click DP "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/Logic/Dq_ETL.py"
    click ML "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/Models/models.py"
    click DB "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/Data_Sanity.sql"
    click DF "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/Data/dq_report.csv"
    click AS "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/API/api_struct.json"
    click BL "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/Logic/base_queries.py"
    click UI "https://github.com/shashank-scikiq/Data-Quality/tree/fa_backend/FA_Backend/static/ng-workspace/src/app/components/global/"
    click RT "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/static/ng-workspace/src/app/app-routing.module.ts"
    click MD "https://github.com/shashank-scikiq/Data-Quality/blob/fa_backend/FA_Backend/static/ng-workspace/src/app/material/material.module.ts"
```
