# anoujpandey/dynamic-resume-cms architecture

> Architecture diagram of the GitHub repository anoujpandey/dynamic-resume-cms, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anoujpandey/dynamic-resume-cms
- Repository: https://github.com/anoujpandey/dynamic-resume-cms

## Overview

Dynamic Resume CMS serves a database-backed public portfolio and an authenticated admin workflow. Visitors load a resume whose profile, entries, and skills are read from MySQL and rendered dynamically. Administrators authenticate, update profile details or avatar, and create, edit, and delete resume entries. The graph includes the shared PDO connection and upload processing layer. Unexcerpted database schema and CRUD details are linked only where the README documents them; other relationships are based on shown source calls.

Main entry points: [`config/database.php`](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/config/database.php) (PDO Connection), [`public/index.php`](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/index.php) (Resume Renderer), [`public/admin.php`](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/admin.php) (Profile Dashboard), [`public/entry_form.php`](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/entry_form.php) (Entry Editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Portfolio"]
  node_public_resume["Resume Renderer<br/>[index.php]"]
end

subgraph group_admin["Administration"]
  node_login["Login<br/>[login.php]"]
  node_dashboard["Profile Dashboard<br/>[admin.php]"]
  node_entry_editor["Entry Editor<br/>[entry_form.php]"]
  node_entry_deletion["Entry Deletion<br/>[delete_entry.php]"]
  node_logout["Logout<br/>[logout.php]"]
end

subgraph group_shared["Shared Services"]
  node_avatar["Avatar Processor<br/>[functions.php]"]
  node_shared_functions["Auth and Escaping<br/>[functions.php]"]
  node_header["Page Header<br/>[header.php]"]
  node_footer["Page Footer<br/>[footer.php]"]
  node_pdo["PDO Connection<br/>[database.php]"]
end

subgraph group_storage["Persistence"]
  node_resume_db[("Resume Database<br/>[resume_db.sql]")]
  node_avatar_files[("Avatar Files")]
end

node_visitor(("Visitor"))
node_admin_user(("Administrator"))

node_visitor -->|"requests"| node_public_resume
node_public_resume -->|"queries profile and resume"| node_pdo
node_public_resume -->|"escapes output"| node_shared_functions
node_public_resume -->|"includes"| node_header
node_public_resume -->|"includes"| node_footer
node_admin_user -->|"signs in"| node_login
node_login -->|"checks credentials"| node_pdo
node_login -->|"escapes output"| node_shared_functions
node_admin_user -->|"manages profile"| node_dashboard
node_dashboard -->|"requires login"| node_shared_functions
node_dashboard -->|"reads and updates profile"| node_pdo
node_dashboard -->|"processes upload"| node_avatar
node_avatar -->|"writes thumbnail"| node_avatar_files
node_dashboard -->|"includes"| node_header
node_admin_user -->|"creates or edits"| node_entry_editor
node_entry_editor -->|"requires login"| node_shared_functions
node_entry_editor -->|"reads and saves entries"| node_pdo
node_entry_editor -->|"includes"| node_header
node_entry_editor -->|"includes"| node_footer
node_admin_user -->|"deletes entries"| node_entry_deletion
node_entry_deletion -->|"requires login"| node_shared_functions
node_entry_deletion -->|"deletes entry"| node_pdo
node_admin_user -->|"ends session"| node_logout
node_pdo -->|"connects to"| node_resume_db

click node_public_resume "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/index.php"
click node_login "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/login.php"
click node_dashboard "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/admin.php"
click node_entry_editor "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/entry_form.php"
click node_entry_deletion "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/delete_entry.php"
click node_logout "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/logout.php"
click node_avatar "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/includes/functions.php"
click node_shared_functions "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/includes/functions.php"
click node_header "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/includes/header.php"
click node_footer "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/includes/footer.php"
click node_pdo "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/config/database.php"
click node_resume_db "https://github.com/anoujpandey/dynamic-resume-cms/blob/main/resume_db.sql"
click node_avatar_files "https://github.com/anoujpandey/dynamic-resume-cms/tree/main/uploads"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_public_resume toneBlue
class node_login,node_dashboard,node_entry_editor,node_entry_deletion,node_logout toneAmber
class node_avatar,node_shared_functions,node_header,node_footer,node_pdo toneMint
class node_resume_db,node_avatar_files toneRose
class node_visitor,node_admin_user toneIndigo
```

## Components

### Public Portfolio

- [Resume Renderer](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/index.php): `public/index.php`

### Administration

- [Login](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/login.php): `public/login.php`
- [Profile Dashboard](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/admin.php): `public/admin.php`
- [Entry Editor](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/entry_form.php): `public/entry_form.php`
- [Entry Deletion](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/delete_entry.php): `public/delete_entry.php`
- [Logout](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/public/logout.php): `public/logout.php`

### Shared Services

- [Avatar Processor](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/includes/functions.php): `includes/functions.php`
- [Auth and Escaping](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/includes/functions.php): `includes/functions.php`
- [Page Header](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/includes/header.php): `includes/header.php`
- [Page Footer](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/includes/footer.php): `includes/footer.php`
- [PDO Connection](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/config/database.php): `config/database.php`

### Persistence

- [Resume Database](https://github.com/anoujpandey/dynamic-resume-cms/blob/main/resume_db.sql): `resume_db.sql`
- [Avatar Files](https://github.com/anoujpandey/dynamic-resume-cms/tree/main/uploads): `uploads`

### Other components

- **Visitor**
- **Administrator**

## Connections

- Visitor → Resume Renderer: requests (evidence: `README.md`)
- Resume Renderer → PDO Connection: queries profile and resume (evidence: `public/index.php`)
- Resume Renderer → Auth and Escaping: escapes output (evidence: `public/index.php`)
- Resume Renderer → Page Header: includes (evidence: `public/index.php`)
- Resume Renderer → Page Footer: includes (evidence: `public/index.php`)
- Administrator → Login: signs in (evidence: `README.md`)
- Login → PDO Connection: checks credentials (evidence: `public/login.php`)
- Login → Auth and Escaping: escapes output (evidence: `public/login.php`)
- Administrator → Profile Dashboard: manages profile (evidence: `README.md`)
- Profile Dashboard → Auth and Escaping: requires login (evidence: `public/admin.php`)
- Profile Dashboard → PDO Connection: reads and updates profile (evidence: `public/admin.php`)
- Profile Dashboard → Avatar Processor: processes upload (evidence: `public/admin.php`)
- Avatar Processor → Avatar Files: writes thumbnail (evidence: `includes/functions.php`)
- Profile Dashboard → Page Header: includes (evidence: `public/admin.php`)
- Administrator → Entry Editor: creates or edits (evidence: `README.md`)
- Entry Editor → Auth and Escaping: requires login (evidence: `public/entry_form.php`)
- Entry Editor → PDO Connection: reads and saves entries (evidence: `public/entry_form.php`)
- Entry Editor → Page Header: includes (evidence: `public/entry_form.php`)
- Entry Editor → Page Footer: includes (evidence: `public/entry_form.php`)
- Administrator → Entry Deletion: deletes entries (evidence: `README.md`)
- Entry Deletion → Auth and Escaping: requires login (evidence: `public/delete_entry.php`)
- Entry Deletion → PDO Connection: deletes entry (evidence: `public/delete_entry.php`)
- Administrator → Logout: ends session (evidence: `README.md`)
- PDO Connection → Resume Database: connects to (evidence: `README.md`)
