# aayushman024/project_managment-backend architecture

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

- Interactive diagram: https://gitdiagram.com/aayushman024/project_managment-backend
- Repository: https://github.com/aayushman024/project_managment-backend

## Overview

##### Project type and purpose
- This is a Django-based REST API for project management (“pm_api” app) within a “project_management” Django project.
- It exposes endpoints for managing projects, feedback, daily progress, comments, etc., backed by an SQLite database.

##### File structure
- Top level:
- manage.py
- db.sqlite3 (development DB)
- requirements.txt
- project_management/ (Django settings, ASGI/WSGI entrypoints, URL router)
- pm_api/ (the core Django app)
- pm_api substructure:
- models.py – ORM models for Project, Feedback, DailyProgress, Comment
- serializers.py – DRF serializers
- views.py – APIView/ViewSet classes
- urls.py – app URL router
- admin.py – Django admin registration
- management/commands/update_feedback_indexes.py – custom management command
- migrations/ – schema evolution
- No frontend code: this is a pure backend/API service.

##### README insights
- We infer that this service will run under Gunicorn/Uvicorn (ASGI/WSGI) behind a reverse proxy/Nginx and could be deployed via GitLab CI to K8s, EC2, or ECS.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Clients
    subgraph "Clients" 
        direction TB
        WebUI["Web UI"]:::apiflow
        MobileApp["Mobile App"]:::apiflow
        Scripts["3rd-Party Scripts"]:::apiflow
    end

    WebUI -->|HTTP/HTTPS| ReverseProxy
    MobileApp -->|HTTP/HTTPS| ReverseProxy
    Scripts -->|HTTP/HTTPS| ReverseProxy

    %% Infrastructure
    ReverseProxy["Nginx / AWS ALB"]:::infra
    AppServer["Gunicorn / Uvicorn"]:::infra

    ReverseProxy -->|Proxy| AppServer

    %% CI/CD Pipeline
    subgraph "CI/CD Pipeline" 
        direction TB
        GitLabCI["GitLab CI/CD"]:::external
        DockerRegistry["Docker Registry"]:::external
        Kubernetes["Kubernetes / ECS / EC2"]:::infra
    end

    GitLabCI -->|Build & Push| DockerRegistry
    DockerRegistry -->|Deploy| Kubernetes
    Kubernetes -->|Run| AppServer

    AppServer -->|Loads Django Project| ProjectManagement

    %% Django Project
    subgraph "project_management (Django Project)" 
        direction TB
        PM_settings["settings.py"]:::code
        PM_urls["urls.py"]:::code
        PM_asgi["asgi.py"]:::code
        PM_wsgi["wsgi.py"]:::code
    end

    click PM_settings "https://github.com/aayushman024/project_managment-backend/blob/main/project_management/settings.py"
    click PM_urls "https://github.com/aayushman024/project_managment-backend/blob/main/project_management/urls.py"
    click PM_asgi "https://github.com/aayushman024/project_managment-backend/blob/main/project_management/asgi.py"
    click PM_wsgi "https://github.com/aayushman024/project_managment-backend/blob/main/project_management/wsgi.py"

    ProjectManagement["project_management"]:::code
    ProjectManagement --> PM_settings
    ProjectManagement --> PM_urls
    ProjectManagement --> PM_asgi
    ProjectManagement --> PM_wsgi

    PM_urls -->|Route to| PM_api

    %% Django App
    subgraph "pm_api (Django App)" 
        direction TB
        Apps["apps.py"]:::code
        API_urls["urls.py"]:::code
        Views["views.py"]:::code
        Serializers["serializers.py"]:::code
        Models["models.py"]:::code
        Admin["admin.py"]:::code
        Tests["tests.py"]:::code
        Migrations["migrations/"]:::code
        ManageCmd["update_feedback_indexes.py"]:::code
    end

    click Apps "https://github.com/aayushman024/project_managment-backend/blob/main/pm_api/apps.py"
    click API_urls "https://github.com/aayushman024/project_managment-backend/blob/main/pm_api/urls.py"
    click Views "https://github.com/aayushman024/project_managment-backend/blob/main/pm_api/views.py"
    click Serializers "https://github.com/aayushman024/project_managment-backend/blob/main/pm_api/serializers.py"
    click Models "https://github.com/aayushman024/project_managment-backend/blob/main/pm_api/models.py"
    click Admin "https://github.com/aayushman024/project_managment-backend/blob/main/pm_api/admin.py"
    click Tests "https://github.com/aayushman024/project_managment-backend/blob/main/pm_api/tests.py"
    click Migrations "https://github.com/aayushman024/project_managment-backend/tree/main/pm_api/migrations/"
    click ManageCmd "https://github.com/aayushman024/project_managment-backend/blob/main/pm_api/management/commands/update_feedback_indexes.py"

    PM_api["pm_api"]:::code
    PM_api --> Apps
    PM_api --> API_urls
    PM_api --> Views
    PM_api --> Serializers
    PM_api --> Models
    PM_api --> Admin
    PM_api --> Tests
    PM_api --> Migrations
    PM_api --> ManageCmd

    PM_settings --> PM_api
    PM_asgi --> PM_api
    PM_wsgi --> PM_api

    API_urls --> Views
    Views --> Serializers
    Serializers --> Models

    %% Database
    DB["SQLite / PostgreSQL"]:::data
    click DB "https://github.com/aayushman024/project_managment-backend/blob/main/db.sqlite3"

    Models -->|SQL| DB
    Admin -->|SQL| DB
    ManageCmd -->|SQL| DB

    %% Management Script
    ManageScript["manage.py"]:::code
    click ManageScript "https://github.com/aayushman024/project_managment-backend/blob/main/manage.py"
    ManageScript -->|executes| ManageCmd

    Requirements["requirements.txt"]:::code
    click Requirements "https://github.com/aayushman024/project_managment-backend/blob/main/requirements.txt"
    Requirements -->|Dependencies| AppServer

    classDef apiflow fill:#D6E9FF,stroke:#333,stroke-width:1px
    classDef data fill:#DFF2BF,stroke:#333,stroke-width:1px
    classDef infra fill:#FEEFB3,stroke:#333,stroke-width:1px
    classDef code fill:#E8EAF6,stroke:#333,stroke-width:1px
    classDef external fill:#CCCCCC,stroke:#333,stroke-width:1px
```
