# charlyred/webopersonal15 architecture

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

- Interactive diagram: https://gitdiagram.com/charlyred/webopersonal15
- Repository: https://github.com/charlyred/webopersonal15

## Overview

##### Main Components Identification
The project follows a typical Django web application structure with the following key components:

a) Core Application Layer:
- Represents the main website functionality (home, about, contact pages)
- Contains static assets (CSS, JS, images)
- Handles base templates and views

b) Portfolio Application Layer:
- Manages project portfolio functionality
- Contains its own models and views
- Handles portfolio-specific templates

c) Media Management:
- Dedicated media handling for project files
- Separate from static files

d) Configuration Layer:
- Main project settings
- URL routing
- WSGI/ASGI configuration

##### Component Relationships

- Request flow from client through the layers
- Template inheritance relationships
- Static/Media file serving paths
- Database interactions

##### Specific Elements

a) Templates:
- base.html (core)
- home.html, about.html, contact.html
- portfolio.html

b) Static Assets:
- JS files (clean-blog.js, contact_me.js, etc.)
- CSS directory
- Image assets

c) Models:
- Portfolio models (indicated by migrations)

d) Views:
- Core views
- Portfolio views

## Diagram (Mermaid)

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

    subgraph "Web Server Layer"
        WSGI["WSGI/ASGI Server"]:::server
        Router["URL Router"]:::router
        click WSGI "https://github.com/charlyred/webopersonal15/blob/main/webpersonal15/webpersonal15/wsgi.py"
        click Router "https://github.com/charlyred/webopersonal15/blob/main/webpersonal15/webpersonal15/urls.py"
    end

    subgraph "Application Layer"
        subgraph "Core App"
            CoreViews["Core Views"]:::core
            CoreTemplates["Core Templates"]:::core
            BaseTemplate["base.html"]:::template
            HomeTemplate["home.html"]:::template
            AboutTemplate["about.html"]:::template
            ContactTemplate["contact.html"]:::template
            
            click CoreViews "https://github.com/charlyred/webopersonal15/blob/main/webpersonal15/core/views.py"
            click CoreTemplates "https://github.com/charlyred/webopersonal15/tree/main/webpersonal15/core/templates/core/"
            click BaseTemplate "https://github.com/charlyred/webopersonal15/blob/main/webpersonal15/core/templates/core/base.html"
            click HomeTemplate "https://github.com/charlyred/webopersonal15/blob/main/webpersonal15/core/templates/core/home.html"
            click AboutTemplate "https://github.com/charlyred/webopersonal15/blob/main/webpersonal15/core/templates/core/about.html"
            click ContactTemplate "https://github.com/charlyred/webopersonal15/blob/main/webpersonal15/core/templates/core/contact.html"
        end

        subgraph "Portfolio App"
            PortfolioViews["Portfolio Views"]:::portfolio
            PortfolioModels["Portfolio Models"]:::portfolio
            PortfolioTemplates["Portfolio Templates"]:::portfolio
            PortfolioMigrations["Migrations"]:::portfolio
            
            click PortfolioViews "https://github.com/charlyred/webopersonal15/blob/main/webpersonal15/portfolio/views.py"
            click PortfolioModels "https://github.com/charlyred/webopersonal15/blob/main/webpersonal15/portfolio/models.py"
            click PortfolioTemplates "https://github.com/charlyred/webopersonal15/tree/main/webpersonal15/portfolio/templates/portfolio/"
            click PortfolioMigrations "https://github.com/charlyred/webopersonal15/tree/main/webpersonal15/portfolio/migrations/"
        end
    end

    subgraph "Static Assets"
        JS["JavaScript Files"]:::static
        CSS["CSS Files"]:::static
        Images["Image Assets"]:::static
        Vendor["Vendor Files"]:::static
        
        click JS "https://github.com/charlyred/webopersonal15/tree/main/webpersonal15/core/static/core/js/"
        click CSS "https://github.com/charlyred/webopersonal15/tree/main/webpersonal15/core/static/core/css/"
        click Images "https://github.com/charlyred/webopersonal15/tree/main/webpersonal15/core/static/core/img/"
        click Vendor "https://github.com/charlyred/webopersonal15/tree/main/webpersonal15/core/static/core/vendor/"
    end

    subgraph "Data Layer"
        Database[(Database)]:::data
        MediaStorage["Media Storage"]:::storage
        
        click MediaStorage "https://github.com/charlyred/webopersonal15/tree/main/webpersonal15/media/"
    end

    Browser --> WSGI
    WSGI --> Router
    Router --> CoreViews
    Router --> PortfolioViews
    CoreViews --> CoreTemplates
    PortfolioViews --> PortfolioTemplates
    BaseTemplate --> HomeTemplate
    BaseTemplate --> AboutTemplate
    BaseTemplate --> ContactTemplate
    PortfolioModels --> Database
    PortfolioModels --> MediaStorage
    Browser --> JS
    Browser --> CSS
    Browser --> Images
    Browser --> Vendor

    classDef core fill:#2196F3,stroke:#1565C0,color:white
    classDef portfolio fill:#4CAF50,stroke:#2E7D32,color:white
    classDef static fill:#FFC107,stroke:#FFA000,color:black
    classDef data fill:#607D8B,stroke:#455A64,color:white
    classDef server fill:#9C27B0,stroke:#7B1FA2,color:white
    classDef router fill:#FF5722,stroke:#E64A19,color:white
    classDef template fill:#03A9F4,stroke:#0288D1,color:white
    classDef storage fill:#795548,stroke:#5D4037,color:white

    subgraph Legend
        L1[Core Components]:::core
        L2[Portfolio Components]:::portfolio
        L3[Static Assets]:::static
        L4[Data Storage]:::data
        L5[Server Components]:::server
        L6[Templates]:::template
    end
```
