# kimjanghyun1010/web architecture

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

- Interactive diagram: https://gitdiagram.com/kimjanghyun1010/web
- Repository: https://github.com/kimjanghyun1010/web

## Overview

##### Main Components

a. Web Application Layer (Django)
- Core Django application component
- Sample application module
- Django Admin interface
- Static file serving system

b. Analysis Layer
- Multiple deployment configurations (PySpark, TensorFlow, R, Data Science)
- Training component
- URL routing system
- View handling system

c. Infrastructure Layer
- Docker containerization (indicated by dockerfile)
- ASGI server configuration
- WSGI server configuration

**[Client Layer]**
- ↕
**[Application Layer]**
- Django Core (app/app/)
- Sample Module (app/sample/)
- Admin Interface
- Static Files
- ↕
**[Analysis Layer]**
- PySpark Deployment
- TensorFlow Deployment
- R Deployment
- Data Science Deployment
- Training Pipeline

##### Component Relationships

- Client requests → ASGI/WSGI servers
- ASGI/WSGI → Django URL router
- URL router → Views
- Views → Models
- Analysis layer ↔ Application layer
- Static files → Client layer

##### Technical Details

- Django's MVT (Model-View-Template) pattern
- URL routing patterns
- Static file serving architecture
- Analysis pipeline workflow
- Container orchestration

Create clear separations between:
- Frontend static resources
- Django application logic
- Analysis services
- Infrastructure components

##### Additional Elements

- Notes about scaling considerations
- Entry points and external service connections
- Configuration file locations

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser["Web Browser"]:::client
    end

    subgraph "Web Application Layer"
        DjangoCore["Django Core"]:::django
        SampleApp["Sample Application"]:::django
        AdminInterface["Admin Interface"]:::django
        StaticFiles["Static Files"]:::static
        URLRouter["URL Router"]:::django
        Settings["Django Settings"]:::django
        Models["Sample Models"]:::django
        Views["Sample Views"]:::django
        AdminConfig["Sample Admin"]:::django
    end

    subgraph "Server Layer"
        ASGI["ASGI Server"]:::server
        WSGI["WSGI Server"]:::server
        Docker["Docker Container"]:::infra
    end

    subgraph "Analysis Layer"
        AnalysisRouter["Analysis URL Router"]:::analysis
        AnalysisViews["Analysis View Handler"]:::analysis
        Training["Training Component"]:::analysis
        
        subgraph "Deployment Configurations"
            PySpark["PySpark Deployment"]:::deployment
            TensorFlow["TensorFlow Deployment"]:::deployment
            R["R Deployment"]:::deployment
            DataScience["Data Science Deployment"]:::deployment
        end
    end

    Browser --> ASGI & WSGI
    ASGI & WSGI --> URLRouter
    URLRouter --> Views
    Views --> Models
    Models --> AdminConfig
    DjangoCore --> Settings
    StaticFiles --> Browser
    AdminInterface --> Browser
    
    URLRouter --> AnalysisRouter
    AnalysisRouter --> AnalysisViews
    AnalysisViews --> Training
    Training --> PySpark & TensorFlow & R & DataScience

    %% Click Events
    click DjangoCore "https://github.com/kimjanghyun1010/web/tree/master/app/app/"
    click SampleApp "https://github.com/kimjanghyun1010/web/tree/master/app/sample/"
    click AdminInterface "https://github.com/kimjanghyun1010/web/tree/master/app/static/admin/"
    click StaticFiles "https://github.com/kimjanghyun1010/web/tree/master/app/static/"
    click PySpark "https://github.com/kimjanghyun1010/web/blob/master/analysis/pyspark-deployment.yaml"
    click TensorFlow "https://github.com/kimjanghyun1010/web/blob/master/analysis/tensorflow-deployment.yaml"
    click R "https://github.com/kimjanghyun1010/web/blob/master/analysis/r-deployment.yaml"
    click DataScience "https://github.com/kimjanghyun1010/web/blob/master/analysis/datascience-deployment.yaml"
    click Training "https://github.com/kimjanghyun1010/web/blob/master/analysis/train.py"
    click AnalysisRouter "https://github.com/kimjanghyun1010/web/blob/master/analysis/urls.py"
    click AnalysisViews "https://github.com/kimjanghyun1010/web/blob/master/analysis/view.py"
    click ASGI "https://github.com/kimjanghyun1010/web/blob/master/app/app/asgi.py"
    click WSGI "https://github.com/kimjanghyun1010/web/blob/master/app/app/wsgi.py"
    click Docker "https://github.com/kimjanghyun1010/web/tree/master/dockerfile"
    click URLRouter "https://github.com/kimjanghyun1010/web/blob/master/app/app/urls.py"
    click Settings "https://github.com/kimjanghyun1010/web/blob/master/app/app/settings.py"
    click Models "https://github.com/kimjanghyun1010/web/blob/master/app/sample/models.py"
    click Views "https://github.com/kimjanghyun1010/web/blob/master/app/sample/views.py"
    click AdminConfig "https://github.com/kimjanghyun1010/web/blob/master/app/sample/admin.py"

    %% Styling
    classDef client fill:#purple,stroke:#333,stroke-width:2px
    classDef django fill:#3498db,stroke:#333,stroke-width:2px
    classDef static fill:#95a5a6,stroke:#333,stroke-width:2px
    classDef server fill:#e67e22,stroke:#333,stroke-width:2px
    classDef infra fill:#f1c40f,stroke:#333,stroke-width:2px
    classDef analysis fill:#2ecc71,stroke:#333,stroke-width:2px
    classDef deployment fill:#1abc9c,stroke:#333,stroke-width:2px
```
