# tan-na/crud-board architecture

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

- Interactive diagram: https://gitdiagram.com/tan-na/crud-board
- Repository: https://github.com/tan-na/crud-board

## Overview

This repository contains a small React post-interface prototype and a separate Spring Boot service exposing a hello endpoint. The frontend routes to home, create, detail, and edit screens; the detail screen derives placeholder post content from the URL and links to editing. The create form has no evidenced submission behavior, and no frontend-to-backend connection is shown. The Spring application and endpoint are included as a separate runtime branch; their wiring is not shown in the sampled source.

Main entry points: [`react_t/src/App.jsx`](https://github.com/tan-na/crud-board/blob/main/react_t/src/App.jsx) (App router), [`react_t/src/PostDetail.jsx`](https://github.com/tan-na/crud-board/blob/main/react_t/src/PostDetail.jsx) (Post detail), [`react_t/src/PostEdit.jsx`](https://github.com/tan-na/crud-board/blob/main/react_t/src/PostEdit.jsx) (Post edit), [`react_t/src/main.jsx`](https://github.com/tan-na/crud-board/blob/main/react_t/src/main.jsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["React frontend"]
  node_react_entry["React entry<br/>[main.jsx]"]
  node_app_router["App router<br/>[App.jsx]"]
end

subgraph group_post_views["Post screens"]
  node_home["Home screen<br/>[Home.jsx]"]
  node_create_post["Create post<br/>[CreatePost.jsx]"]
  node_post_detail["Post detail<br/>[PostDetail.jsx]"]
  node_post_edit["Post edit<br/>[PostEdit.jsx]"]
end

subgraph group_service["Spring service"]
  node_spring_boot["Spring application"]
  node_hello_endpoint["Hello endpoint"]
end

node_user(("User"))

node_react_entry -->|"renders"| node_app_router
node_app_router -->|"routes to"| node_home
node_app_router -->|"routes to"| node_create_post
node_app_router -->|"routes to"| node_post_detail
node_app_router -->|"routes to"| node_post_edit
node_post_detail -->|"links to"| node_post_edit

click node_react_entry "https://github.com/tan-na/crud-board/blob/main/react_t/src/main.jsx"
click node_app_router "https://github.com/tan-na/crud-board/blob/main/react_t/src/App.jsx"
click node_home "https://github.com/tan-na/crud-board/blob/main/react_t/src/Home.jsx"
click node_create_post "https://github.com/tan-na/crud-board/blob/main/react_t/src/CreatePost.jsx"
click node_post_detail "https://github.com/tan-na/crud-board/blob/main/react_t/src/PostDetail.jsx"
click node_post_edit "https://github.com/tan-na/crud-board/blob/main/react_t/src/PostEdit.jsx"
click node_spring_boot "https://github.com/tan-na/crud-board/blob/main/tana/src/main/java/com/restapi/tana/TanaApplication.java"
click node_hello_endpoint "https://github.com/tan-na/crud-board/blob/main/tana/src/main/java/com/restapi/tana/controller/HelloController.java"

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_react_entry,node_app_router,node_user toneBlue
class node_home,node_create_post,node_post_detail,node_post_edit toneAmber
class node_spring_boot,node_hello_endpoint toneMint
```

## Components

### React frontend

- [React entry](https://github.com/tan-na/crud-board/blob/main/react_t/src/main.jsx): `react_t/src/main.jsx`
- [App router](https://github.com/tan-na/crud-board/blob/main/react_t/src/App.jsx): `react_t/src/App.jsx`

### Post screens

- [Home screen](https://github.com/tan-na/crud-board/blob/main/react_t/src/Home.jsx): `react_t/src/Home.jsx`
- [Create post](https://github.com/tan-na/crud-board/blob/main/react_t/src/CreatePost.jsx): `react_t/src/CreatePost.jsx`
- [Post detail](https://github.com/tan-na/crud-board/blob/main/react_t/src/PostDetail.jsx): `react_t/src/PostDetail.jsx`
- [Post edit](https://github.com/tan-na/crud-board/blob/main/react_t/src/PostEdit.jsx): `react_t/src/PostEdit.jsx`

### Spring service

- [Spring application](https://github.com/tan-na/crud-board/blob/main/tana/src/main/java/com/restapi/tana/TanaApplication.java): `tana/src/main/java/com/restapi/tana/TanaApplication.java`
- [Hello endpoint](https://github.com/tan-na/crud-board/blob/main/tana/src/main/java/com/restapi/tana/controller/HelloController.java): `tana/src/main/java/com/restapi/tana/controller/HelloController.java`

### Other components

- **User**

## Connections

- React entry → App router: renders (evidence: `react_t/src/main.jsx`)
- App router → Home screen: routes to (evidence: `react_t/src/App.jsx`)
- App router → Create post: routes to (evidence: `react_t/src/App.jsx`)
- App router → Post detail: routes to (evidence: `react_t/src/App.jsx`)
- App router → Post edit: routes to (evidence: `react_t/src/App.jsx`)
- Post detail → Post edit: links to (evidence: `react_t/src/PostDetail.jsx`)
