# shivahir2003/task_management_system architecture

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

- Interactive diagram: https://gitdiagram.com/shivahir2003/task_management_system
- Repository: https://github.com/shivahir2003/task_management_system

## Overview

##### Main Components Identification
The system is a web-based task management application with the following key components:

a. Frontend Layer:
- Static assets (CSS, JS, SCSS)
- Templates organized by feature (accounts, taskmanager)
- Client-side validation scripts

b. Backend Layer:
- Django web framework
- Two main Django apps:
- Accounts (user management)
- Taskmanager (task operations)

c. Database Layer:
- MySQL database (as indicated in environment variables)

##### Component Relationships

- HTTP requests from client to Django URLs
- Template rendering from Django to client
- Database queries between Django models and MySQL
- Authentication flow between Accounts and other components
- Static asset delivery to clients

##### Technical Details

Annotations for:
- Python 3.10.12 requirement
- Django 5.0.6 framework
- Environment configurations
- URL routing patterns
- Model relationships
- Template hierarchy

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser["Web Browser"]
        StaticAssets["Static Assets"]:::static
        ClientValidation["Client-Side Validation"]:::validation
    end

    subgraph "Django Framework"
        URLRouter["URL Router"]:::router
        
        subgraph "Authentication Module"
            AuthViews["Auth Views"]:::auth
            AuthModels["Auth Models"]:::auth
            AuthForms["Auth Forms"]:::auth
            AuthURLs["Auth URLs"]:::auth
        end
        
        subgraph "Task Management Module"
            TaskViews["Task Views"]:::task
            TaskModels["Task Models"]:::task
            TaskForms["Task Forms"]:::task
            TaskURLs["Task URLs"]:::task
            ProgressTracker["Progress Tracking"]:::task
        end
        
        subgraph "Template Engine"
            AccountTemplates["Account Templates"]:::template
            TaskTemplates["Task Templates"]:::template
            BaseLayouts["Base Layouts"]:::template
            CommonComponents["Common Components"]:::template
        end
        
        CoreSettings["Core Settings"]:::core
        MainURLs["Main URLs"]:::core
        WSGIConfig["WSGI Config"]:::core
        ASGIConfig["ASGI Config"]:::core
    end

    subgraph "Data Layer"
        MySQL[(MySQL Database)]
        AccountMigrations["Account Migrations"]:::migration
        TaskMigrations["Task Migrations"]:::migration
    end

    Browser --> URLRouter
    URLRouter --> AuthURLs & TaskURLs
    AuthURLs --> AuthViews
    TaskURLs --> TaskViews
    AuthViews --> AuthModels
    TaskViews --> TaskModels
    AuthModels --> MySQL
    TaskModels --> MySQL
    AuthViews --> AccountTemplates
    TaskViews --> TaskTemplates
    AccountTemplates & TaskTemplates --> Browser
    StaticAssets --> Browser
    ClientValidation --> AuthForms
    ClientValidation --> TaskForms
    AccountMigrations --> MySQL
    TaskMigrations --> MySQL

    %% Click events for component mapping
    click StaticAssets "https://github.com/Shivahir2003/Task_Management_System/tree/main/task_management_system/static"
    click AccountTemplates "https://github.com/Shivahir2003/Task_Management_System/tree/main/task_management_system/templates/accounts"
    click TaskTemplates "https://github.com/Shivahir2003/Task_Management_System/tree/main/task_management_system/templates/taskmanager"
    click BaseLayouts "https://github.com/Shivahir2003/Task_Management_System/tree/main/task_management_system/templates/layouts"
    click CommonComponents "https://github.com/Shivahir2003/Task_Management_System/tree/main/task_management_system/templates/includes"
    click AuthModels "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/accounts/models.py"
    click AuthViews "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/accounts/views.py"
    click AuthForms "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/accounts/forms.py"
    click AuthURLs "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/accounts/urls.py"
    click TaskModels "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/taskmanager/models.py"
    click TaskViews "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/taskmanager/views.py"
    click TaskForms "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/taskmanager/forms.py"
    click TaskURLs "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/taskmanager/urls.py"
    click ProgressTracker "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/taskmanager/templatetags/percentage_tag.py"
    click CoreSettings "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/task_management_system/settings.py"
    click MainURLs "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/task_management_system/urls.py"
    click WSGIConfig "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/task_management_system/wsgi.py"
    click ASGIConfig "https://github.com/Shivahir2003/Task_Management_System/blob/main/task_management_system/task_management_system/asgi.py"
    click AccountMigrations "https://github.com/Shivahir2003/Task_Management_System/tree/main/task_management_system/accounts/migrations"
    click TaskMigrations "https://github.com/Shivahir2003/Task_Management_System/tree/main/task_management_system/taskmanager/migrations"

    %% Styling
    classDef static fill:#B0C4DE
    classDef validation fill:#FFB6C1
    classDef router fill:#90EE90
    classDef auth fill:#FFD700
    classDef task fill:#98FB98
    classDef template fill:#DDA0DD
    classDef core fill:#F0E68C
    classDef migration fill:#E6E6FA

    %% Legend
    subgraph Legend
        L1["Static Components"]:::static
        L2["Validation Components"]:::validation
        L3["Routing Components"]:::router
        L4["Auth Components"]:::auth
        L5["Task Components"]:::task
        L6["Template Components"]:::template
        L7["Core Components"]:::core
        L8["Migration Components"]:::migration
    end
```
