# rudian420/370-project architecture

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

- Interactive diagram: https://gitdiagram.com/rudian420/370-project
- Repository: https://github.com/rudian420/370-project

## Overview

##### Project type and purpose
- From the file tree and README, this is a PHP‐based full-stack web application (“370-Project”) that serves both public pages (index.php, career listings, partner pages, static HTML/CSS/JS) and an administrative backend (backend/DashBoard, career module, login/logout).
- It relies on a LAMP stack (PHP, MySQL via .sql files, Apache/Nginx) plus frontend assets built with Bootstrap, FontAwesome, Chart.js, and custom JS/CSS.

##### File structure
- Top-level:
- index.php, navbar.php, footer.php, various .html/.css/.js for public UI
- Database/ – SQL schema and db.php connection scripts
- Action/ – filter.php for form processing
- backend/ – entire admin panel:
– backend/Assets/ (CSS, JS, fonts, images)
– backend/DashBoard/ (PHP pages, actions, asset subfolders)
– backend/Database/ (additional SQL, db.php)
– backend/career/ (public career module under backend)
– backend/login/ (login flows)
- Composer and node_modules suggest PHP libraries and potential front-end build/dependency management.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Nodes
    Browser["Web Browser"]:::frontend
    subgraph "PHP Application Server" 
        direction TB
        %% Public Module
        subgraph "Public Site Module" 
            direction TB
            PublicRouter["index.php (Router)"]:::server
            Navbar["navbar.php"]:::server
            Footer["footer.php"]:::server
            FILTER["Action/filter.php"]:::server
            subgraph "Public Views/Templates"
                direction TB
                PublicViews["*.php / *.html"]:::server
            end
        end
        %% Admin Module
        subgraph "Admin Panel Module"
            direction TB
            AdminEntry["backend/DashBoard/dashboard.php"]:::server
            subgraph "Admin Actions"
                direction TB
                JobReq["backend/DashBoard/Actions/jobreq.php"]:::server
                AddJob["backend/addJob_processing.php"]:::server
                BlogUp["backend/blogUpload_process.php"]:::server
            end
            subgraph "Login Module"
                direction TB
                PreLogin["backend/login/prelogin.php"]:::server
                LoginProc["backend/login/loging.php"]:::server
                Logout["backend/login/logout.php"]:::server
            end
            subgraph "Admin Views/Templates"
                direction TB
                AdminViews["backend/DashBoard/*.php / *.html"]:::server
            end
        end
        %% Shared Routing to DB
        PublicRouter -->|SQL| DBClient
        FILTER -->|SQL| DBClient
        AdminEntry -->|SQL| dbAdmin
        JobReq -->|SQL| dbAdmin
        AddJob -->|SQL| dbAdmin
        BlogUp -->|SQL| dbAdmin
    end
    %% Database Server
    DBClient["Database/db.php"]:::database
    DBScript["Database/db.sql"]:::database
    dbAdmin["backend/Database/db.php"]:::database
    SQLAdminFiles["backend/Database/*.sql"]:::database

    %% Static Assets
    subgraph "Static Asset Store"
        direction TB
        PublicAssets["root *.css / *.js / images"]:::assets
        AdminCSS["backend/Assets/css/"]:::assets
        AdminJS["backend/Assets/js/"]:::assets
        AdminFonts["backend/Assets/fonts/"]:::assets
        AdminImg["backend/Assets/img/"]:::assets
    end

    %% External Services
    External["External Services (Email, Analytics)"]:::external

    %% Connections
    Browser -->|HTTP| PublicRouter
    Browser -->|HTTP| AdminEntry
    Browser -->|GET assets| PublicAssets
    Browser -->|GET assets| AdminCSS
    Browser -->|GET assets| AdminJS
    Browser -->|GET assets| AdminFonts
    Browser -->|GET assets| AdminImg
    PublicRouter -->|uses| composer
    AdminEntry -->|uses| composer
    PublicRouter -->|uses| npm
    AdminEntry -->|uses| npm
    PHPApp["PHP Application Server"]:::serverInvisible
    PublicRouter --- PHPApp
    AdminEntry --- PHPApp
    PHPApp --> DBClient
    PHPApp --> dbAdmin
    PHPApp --> External

    %% Click Events
    click PublicRouter "https://github.com/rudian420/370-project/blob/main/index.php"
    click Navbar "https://github.com/rudian420/370-project/blob/main/navbar.php"
    click Footer "https://github.com/rudian420/370-project/blob/main/footer.php"
    click FILTER "https://github.com/rudian420/370-project/blob/main/Action/filter.php"
    click DBClient "https://github.com/rudian420/370-project/blob/main/Database/db.php"
    click DBScript "https://github.com/rudian420/370-project/blob/main/Database/db.sql"
    click AdminEntry "https://github.com/rudian420/370-project/blob/main/backend/DashBoard/dashboard.php"
    click JobReq "https://github.com/rudian420/370-project/blob/main/backend/DashBoard/Actions/jobreq.php"
    click AddJob "https://github.com/rudian420/370-project/blob/main/backend/addJob_processing.php"
    click BlogUp "https://github.com/rudian420/370-project/blob/main/backend/blogUpload_process.php"
    click PreLogin "https://github.com/rudian420/370-project/blob/main/backend/login/prelogin.php"
    click LoginProc "https://github.com/rudian420/370-project/blob/main/backend/login/loging.php"
    click Logout "https://github.com/rudian420/370-project/blob/main/backend/login/logout.php"
    click dbAdmin "https://github.com/rudian420/370-project/blob/main/backend/Database/db.php"
    click SQLAdminFiles "https://github.com/rudian420/370-project/tree/main/backend/Database/"
    click PublicViews "https://github.com/rudian420/370-project/blob/main/."
    click AdminViews "https://github.com/rudian420/370-project/tree/main/backend/DashBoard/"
    click AdminCSS "https://github.com/rudian420/370-project/tree/main/backend/Assets/css/"
    click AdminJS "https://github.com/rudian420/370-project/tree/main/backend/Assets/js/"
    click AdminFonts "https://github.com/rudian420/370-project/tree/main/backend/Assets/fonts/"
    click AdminImg "https://github.com/rudian420/370-project/tree/main/backend/Assets/img/"
    click composer "https://github.com/rudian420/370-project/blob/main/composer.json"
    click npm "https://github.com/rudian420/370-project/blob/main/package.json"

    %% Styles
    classDef frontend fill:#ADD8E6,stroke:#333,stroke-width:1px;
    classDef server fill:#90EE90,stroke:#333,stroke-width:1px;
    classDef database fill:#FFA500,stroke:#333,stroke-width:1px;
    classDef assets fill:#FFD700,stroke:#333,stroke-width:1px;
    classDef external fill:#D3D3D3,stroke:#333,stroke-width:1px;
    classDef serverInvisible fill:transparent,stroke-width:0px;
```
