# enes-sen/frontend-blog architecture

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

- Interactive diagram: https://gitdiagram.com/enes-sen/frontend-blog
- Repository: https://github.com/enes-sen/frontend-blog

## Overview

FistBlog is a React/Redux blog frontend. Visitors enter the routed app, browse posts, open a post, and can publish posts or add comments; Redux actions coordinate API requests and update client state. The sampled source shows the UI routes and request ownership. The README is empty, so backend behavior beyond the API endpoints is not described here.

Main entry points: [`src/redux/actions/postActions.js`](https://github.com/enes-sen/frontend-blog/blob/main/src/redux/actions/postActions.js) (Post Actions), [`src/components/root/App.js`](https://github.com/enes-sen/frontend-blog/blob/main/src/components/root/App.js) (App Routes), [`src/components/post/SinglePost.js`](https://github.com/enes-sen/frontend-blog/blob/main/src/components/post/SinglePost.js) (Post Detail), [`src/index.js`](https://github.com/enes-sen/frontend-blog/blob/main/src/index.js) (App Entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and Navigation"]
  node_entry["App Entry<br/>[index.js]"]
  node_router["App Routes<br/>[App.js]"]
  node_navigation["Navigation<br/>[navi.js]"]
end

subgraph group_posts["Post Experience"]
  node_post_list["Post List<br/>[postsList.js]"]
  node_single_post["Post Detail<br/>[SinglePost.js]"]
  node_post_form["Post Form<br/>[AddpostForm.js]"]
  node_comment_form["Comment Form<br/>[AddCommentForm.js]"]
  node_comment_list["Comment List<br/>[CommentList.js]"]
end

subgraph group_state["State and Requests"]
  node_actions["Post Actions<br/>[postActions.js]"]
  node_action_types["Action Types<br/>[actionTypes.js]"]
  node_post_state["Post State<br/>[postReducer.js]"]
  node_store["Redux Store<br/>[config.js]"]
  node_api["API Client<br/>[api.js]"]
end

subgraph group_backend["Remote Service"]
  node_service["Blog API"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_entry
node_entry -->|"renders"| node_router
node_entry -->|"provides"| node_store
node_router -->|"renders"| node_navigation
node_router -->|"routes to"| node_post_list
node_router -->|"routes to"| node_single_post
node_router -->|"routes to"| node_post_form
node_post_list -->|"dispatches fetch"| node_actions
node_single_post -->|"dispatches fetch/delete"| node_actions
node_single_post -->|"renders"| node_comment_form
node_single_post -->|"renders"| node_comment_list
node_post_form -->|"dispatches create"| node_actions
node_comment_form -->|"dispatches create"| node_actions
node_comment_list -->|"dispatches fetch"| node_actions
node_actions -->|"calls"| node_api
node_api -->|"sends requests"| node_service
node_actions -->|"uses"| node_action_types
node_post_state -->|"handles"| node_action_types
node_store -.->|"combines"| node_post_state
node_actions -.->|"dispatches updates"| node_post_state

click node_entry "https://github.com/enes-sen/frontend-blog/blob/main/src/index.js"
click node_router "https://github.com/enes-sen/frontend-blog/blob/main/src/components/root/App.js"
click node_navigation "https://github.com/enes-sen/frontend-blog/blob/main/src/components/navi/navi.js"
click node_post_list "https://github.com/enes-sen/frontend-blog/blob/main/src/components/post/postsList.js"
click node_single_post "https://github.com/enes-sen/frontend-blog/blob/main/src/components/post/SinglePost.js"
click node_post_form "https://github.com/enes-sen/frontend-blog/blob/main/src/components/forms/AddpostForm.js"
click node_comment_form "https://github.com/enes-sen/frontend-blog/blob/main/src/components/forms/AddCommentForm.js"
click node_comment_list "https://github.com/enes-sen/frontend-blog/blob/main/src/components/post/CommentList.js"
click node_actions "https://github.com/enes-sen/frontend-blog/blob/main/src/redux/actions/postActions.js"
click node_action_types "https://github.com/enes-sen/frontend-blog/blob/main/src/redux/actions/actionTypes.js"
click node_post_state "https://github.com/enes-sen/frontend-blog/blob/main/src/redux/reducers/postReducer.js"
click node_store "https://github.com/enes-sen/frontend-blog/blob/main/src/redux/reducers/config.js"
click node_api "https://github.com/enes-sen/frontend-blog/blob/main/src/api/api.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_entry,node_router,node_navigation toneBlue
class node_post_list,node_single_post,node_post_form,node_comment_form,node_comment_list toneAmber
class node_actions,node_action_types,node_post_state,node_store,node_api toneMint
class node_service toneRose
class node_visitor toneIndigo
```

## Components

### App and Navigation

- [App Entry](https://github.com/enes-sen/frontend-blog/blob/main/src/index.js): `src/index.js`
- [App Routes](https://github.com/enes-sen/frontend-blog/blob/main/src/components/root/App.js): `src/components/root/App.js`
- [Navigation](https://github.com/enes-sen/frontend-blog/blob/main/src/components/navi/navi.js): `src/components/navi/navi.js`

### Post Experience

- [Post List](https://github.com/enes-sen/frontend-blog/blob/main/src/components/post/postsList.js): `src/components/post/postsList.js`
- [Post Detail](https://github.com/enes-sen/frontend-blog/blob/main/src/components/post/SinglePost.js): `src/components/post/SinglePost.js`
- [Post Form](https://github.com/enes-sen/frontend-blog/blob/main/src/components/forms/AddpostForm.js): `src/components/forms/AddpostForm.js`
- [Comment Form](https://github.com/enes-sen/frontend-blog/blob/main/src/components/forms/AddCommentForm.js): `src/components/forms/AddCommentForm.js`
- [Comment List](https://github.com/enes-sen/frontend-blog/blob/main/src/components/post/CommentList.js): `src/components/post/CommentList.js`

### State and Requests

- [Post Actions](https://github.com/enes-sen/frontend-blog/blob/main/src/redux/actions/postActions.js): `src/redux/actions/postActions.js`
- [Action Types](https://github.com/enes-sen/frontend-blog/blob/main/src/redux/actions/actionTypes.js): `src/redux/actions/actionTypes.js`
- [Post State](https://github.com/enes-sen/frontend-blog/blob/main/src/redux/reducers/postReducer.js): `src/redux/reducers/postReducer.js`
- [Redux Store](https://github.com/enes-sen/frontend-blog/blob/main/src/redux/reducers/config.js): `src/redux/reducers/config.js`
- [API Client](https://github.com/enes-sen/frontend-blog/blob/main/src/api/api.js): `src/api/api.js`

### Remote Service

- **Blog API**

### Other components

- **Visitor**

## Connections

- Visitor → App Entry: opens
- App Entry → App Routes: renders (evidence: `src/index.js`)
- App Entry → Redux Store: provides (evidence: `src/index.js`)
- App Routes → Navigation: renders (evidence: `src/components/root/App.js`)
- App Routes → Post List: routes to (evidence: `src/components/root/App.js`)
- App Routes → Post Detail: routes to (evidence: `src/components/root/App.js`)
- App Routes → Post Form: routes to (evidence: `src/components/root/App.js`)
- Post List → Post Actions: dispatches fetch (evidence: `src/components/post/postsList.js`)
- Post Detail → Post Actions: dispatches fetch/delete (evidence: `src/components/post/SinglePost.js`)
- Post Detail → Comment Form: renders (evidence: `src/components/post/SinglePost.js`)
- Post Detail → Comment List: renders (evidence: `src/components/post/SinglePost.js`)
- Post Form → Post Actions: dispatches create (evidence: `src/components/forms/AddpostForm.js`)
- Comment Form → Post Actions: dispatches create (evidence: `src/components/forms/AddCommentForm.js`)
- Comment List → Post Actions: dispatches fetch (evidence: `src/components/post/CommentList.js`)
- Post Actions → API Client: calls (evidence: `src/redux/actions/postActions.js`)
- API Client → Blog API: sends requests (evidence: `src/api/api.js`)
- Post Actions → Action Types: uses (evidence: `src/redux/actions/postActions.js`)
- Post State → Action Types: handles (evidence: `src/redux/reducers/postReducer.js`)
- Redux Store → Post State: combines
- Post Actions → Post State: dispatches updates
