# sagarvssv/vcloudmaster_blog_application architecture

> Architecture diagram of the GitHub repository sagarvssv/vcloudmaster_blog_application, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sagarvssv/vcloudmaster_blog_application
- Repository: https://github.com/sagarvssv/vcloudmaster_blog_application

## Overview

VCloudMaster Blog is a React blog application for readers and administrators. Readers browse and filter posts, open articles, and interact through comments and reactions; administrators sign in to manage posts, comments, and publication. The graph follows routing into those workflows, then their API and session layers. The README only identifies the product as a blog, so feature details and connections rely on the supplied source excerpts and SOURCE INDEX; backend implementation is not present in the tree.

Main entry points: [`src/pages/PostPage.jsx`](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/PostPage.jsx) (Read article), [`src/api/posts.js`](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/api/posts.js) (Posts API), [`src/App.jsx`](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/App.jsx) (Route setup), [`src/pages/admin/PostEditor.jsx`](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/admin/PostEditor.jsx) (Post editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Application routing"]
  node_app["Route setup<br/>[App.jsx]"]
end

subgraph group_reading["Reader experience"]
  node_home["Browse posts<br/>[Home.jsx]"]
  node_postpage["Read article<br/>[PostPage.jsx]"]
  node_article["Article rendering<br/>[ArticleBody.jsx]"]
  node_comments["Comments<br/>[CommentSection.jsx]"]
  node_reactions["Post reactions<br/>[Reactions.jsx]"]
  node_postcard["Post cards<br/>[PostCard.jsx]"]
  node_lightbox["Image lightbox<br/>[ImageLightbox.jsx]"]
end

subgraph group_admin["Administration"]
  node_dashboard["Admin dashboard<br/>[Dashboard.jsx]"]
  node_editor["Post editor<br/>[PostEditor.jsx]"]
  node_commentadmin["Comment moderation<br/>[Comments.jsx]"]
end

subgraph group_services["API and shared services"]
  node_auth["Authentication state<br/>[AuthContext.jsx]"]
  node_authapi["Auth API<br/>[auth.js]"]
  node_postsapi["Posts API<br/>[posts.js]"]
  node_client["HTTP client<br/>[client.js]"]
  node_backend["Blog backend"]
  node_content["Content utilities<br/>[content.js]"]
  node_session[("Session storage<br/>[session.js]")]
end

node_reader(("Reader"))
node_adminuser(("Administrator"))

node_reader -->|"opens app"| node_app
node_adminuser -->|"opens app"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_postpage
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_editor
node_app -->|"routes to"| node_commentadmin
node_home -->|"fetches posts"| node_postsapi
node_home -->|"renders cards"| node_postcard
node_postpage -->|"fetches article"| node_postsapi
node_postpage -->|"fetches related"| node_postsapi
node_postpage -->|"renders body"| node_article
node_postpage -->|"renders comments"| node_comments
node_postpage -->|"renders reactions"| node_reactions
node_postpage -->|"renders related"| node_postcard
node_postpage -->|"opens image"| node_lightbox
node_article -->|"opens image"| node_lightbox
node_comments -->|"submits comments"| node_postsapi
node_reactions -->|"sends reaction"| node_postsapi
node_dashboard -->|"manages posts"| node_postsapi
node_editor -->|"saves posts"| node_postsapi
node_commentadmin -->|"moderates comments"| node_postsapi
node_editor -->|"previews body"| node_article
node_editor -->|"prepares content"| node_content
node_postpage -->|"prepares article"| node_content
node_postsapi -->|"sends requests"| node_client
node_authapi -->|"sends requests"| node_client
node_client -->|"calls API"| node_backend
node_auth -->|"checks session"| node_authapi
node_auth -->|"reads and saves"| node_session
node_client -->|"reads token"| node_session

click node_app "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/App.jsx"
click node_home "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/Home.jsx"
click node_postpage "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/PostPage.jsx"
click node_article "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/ArticleBody.jsx"
click node_comments "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/CommentSection.jsx"
click node_reactions "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/Reactions.jsx"
click node_postcard "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/PostCard.jsx"
click node_lightbox "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/ImageLightbox.jsx"
click node_dashboard "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/admin/Dashboard.jsx"
click node_editor "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/admin/PostEditor.jsx"
click node_commentadmin "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/admin/Comments.jsx"
click node_auth "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/context/AuthContext.jsx"
click node_authapi "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/api/auth.js"
click node_postsapi "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/api/posts.js"
click node_client "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/api/client.js"
click node_content "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/utils/content.js"
click node_session "https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/utils/session.js"

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_app toneBlue
class node_home,node_postpage,node_article,node_comments,node_reactions,node_postcard,node_lightbox toneAmber
class node_dashboard,node_editor,node_commentadmin toneMint
class node_auth,node_authapi,node_postsapi,node_client,node_backend,node_content,node_session toneRose
class node_reader,node_adminuser toneIndigo
```

## Components

### Application routing

- [Route setup](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/App.jsx): `src/App.jsx`

### Reader experience

- [Browse posts](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Read article](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/PostPage.jsx): `src/pages/PostPage.jsx`
- [Article rendering](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/ArticleBody.jsx): `src/components/blog/ArticleBody.jsx`
- [Comments](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/CommentSection.jsx): `src/components/blog/CommentSection.jsx`
- [Post reactions](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/Reactions.jsx): `src/components/blog/Reactions.jsx`
- [Post cards](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/PostCard.jsx): `src/components/blog/PostCard.jsx`
- [Image lightbox](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/components/blog/ImageLightbox.jsx): `src/components/blog/ImageLightbox.jsx`

### Administration

- [Admin dashboard](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/admin/Dashboard.jsx): `src/pages/admin/Dashboard.jsx`
- [Post editor](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/admin/PostEditor.jsx): `src/pages/admin/PostEditor.jsx`
- [Comment moderation](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/pages/admin/Comments.jsx): `src/pages/admin/Comments.jsx`

### API and shared services

- [Authentication state](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/context/AuthContext.jsx): `src/context/AuthContext.jsx`
- [Auth API](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/api/auth.js): `src/api/auth.js`
- [Posts API](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/api/posts.js): `src/api/posts.js`
- [HTTP client](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/api/client.js): `src/api/client.js`
- **Blog backend**
- [Content utilities](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/utils/content.js): `src/utils/content.js`
- [Session storage](https://github.com/sagarvssv/vcloudmaster_blog_application/blob/main/src/utils/session.js): `src/utils/session.js`

### Other components

- **Reader**
- **Administrator**

## Connections

- Reader → Route setup: opens app (evidence: `src/App.jsx`)
- Administrator → Route setup: opens app (evidence: `src/App.jsx`)
- Route setup → Browse posts: routes to (evidence: `src/App.jsx`)
- Route setup → Read article: routes to (evidence: `src/App.jsx`)
- Route setup → Admin dashboard: routes to (evidence: `src/App.jsx`)
- Route setup → Post editor: routes to (evidence: `src/App.jsx`)
- Route setup → Comment moderation: routes to (evidence: `src/App.jsx`)
- Browse posts → Posts API: fetches posts (evidence: `src/pages/Home.jsx`)
- Browse posts → Post cards: renders cards (evidence: `src/pages/Home.jsx`)
- Read article → Posts API: fetches article (evidence: `src/pages/PostPage.jsx`)
- Read article → Posts API: fetches related (evidence: `src/pages/PostPage.jsx`)
- Read article → Article rendering: renders body (evidence: `src/pages/PostPage.jsx`)
- Read article → Comments: renders comments (evidence: `src/pages/PostPage.jsx`)
- Read article → Post reactions: renders reactions (evidence: `src/pages/PostPage.jsx`)
- Read article → Post cards: renders related (evidence: `src/pages/PostPage.jsx`)
- Read article → Image lightbox: opens image (evidence: `src/pages/PostPage.jsx`)
- Article rendering → Image lightbox: opens image (evidence: `src/components/blog/ArticleBody.jsx`)
- Comments → Posts API: submits comments (evidence: `src/components/blog/CommentSection.jsx`)
- Post reactions → Posts API: sends reaction (evidence: `src/components/blog/Reactions.jsx`)
- Admin dashboard → Posts API: manages posts (evidence: `src/pages/admin/Dashboard.jsx`)
- Post editor → Posts API: saves posts (evidence: `src/pages/admin/PostEditor.jsx`)
- Comment moderation → Posts API: moderates comments (evidence: `src/pages/admin/Comments.jsx`)
- Post editor → Article rendering: previews body (evidence: `src/pages/admin/PostEditor.jsx`)
- Post editor → Content utilities: prepares content (evidence: `src/pages/admin/PostEditor.jsx`)
- Read article → Content utilities: prepares article (evidence: `src/pages/PostPage.jsx`)
- Posts API → HTTP client: sends requests (evidence: `src/api/posts.js`)
- Auth API → HTTP client: sends requests (evidence: `src/api/auth.js`)
- HTTP client → Blog backend: calls API (evidence: `src/api/client.js`)
- Authentication state → Auth API: checks session (evidence: `src/context/AuthContext.jsx`)
- Authentication state → Session storage: reads and saves (evidence: `src/context/AuthContext.jsx`)
- HTTP client → Session storage: reads token (evidence: `src/api/client.js`)
