# truongmanhdat07/web_development architecture

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

- Interactive diagram: https://gitdiagram.com/truongmanhdat07/web_development
- Repository: https://github.com/truongmanhdat07/web_development

## Overview

This repository is a browser-based library-management website. Its apparent user workflow spans browsing books, submitting a borrowing request, and managing returns; separate pages also support book search/addition, reader-card management, and feedback. The sampled JavaScript validates forms and updates the page or displays browser alerts, but shows no backend or persistent storage. The README is empty, and HTML files were not sampled, so page-to-script wiring and unsampled capabilities are not asserted as verified.

Main entry points: [`BTL_ThietKeWeb/js/script.js`](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js) (Borrow validation), [`BTL_ThietKeWeb/index.html`](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/index.html) (Home page), [`BTL_ThietKeWeb/books.html`](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/books.html) (Books page), [`BTL_ThietKeWeb/borrow.html`](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/borrow.html) (Borrow page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["Website pages"]
  node_home["Home page<br/>[index.html]"]
  node_books["Books page<br/>[books.html]"]
  node_borrow["Borrow page<br/>[borrow.html]"]
  node_readers_page["Readers page<br/>[readers.html]"]
  node_contact["Contact page<br/>[contact.html]"]
end

subgraph group_catalog["Book catalog"]
  node_book_search["Book search and filter<br/>[script.js]"]
  node_book_add["Book addition checks<br/>[script.js]"]
end

subgraph group_circulation["Circulation"]
  node_borrow_validation["Borrow validation<br/>[script.js]"]
  node_loan_dates["Loan date defaults<br/>[script.js]"]
  node_return_actions["Return and collect<br/>[script.js]"]
end

subgraph group_readers["Reader management"]
  node_reader_card["Reader card status<br/>[script.js]"]
  node_reader_validation["Reader form validation<br/>[script.js]"]
end

subgraph group_feedback["Feedback"]
  node_feedback_form["Feedback validation<br/>[script.js]"]
end

node_visitor(("Library user"))

node_visitor -.->|"uses"| node_home
node_visitor -.->|"uses"| node_books
node_visitor -.->|"submits request"| node_borrow
node_visitor -.->|"manages readers"| node_readers_page
node_visitor -.->|"sends feedback"| node_contact
node_borrow_validation -->|"sets dates"| node_loan_dates
node_borrow_validation -.->|"separate page action"| node_return_actions

click node_home "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/index.html"
click node_books "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/books.html"
click node_borrow "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/borrow.html"
click node_readers_page "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/readers.html"
click node_contact "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/contact.html"
click node_book_search "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js"
click node_book_add "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js"
click node_borrow_validation "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js"
click node_loan_dates "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js"
click node_return_actions "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js"
click node_reader_card "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js"
click node_reader_validation "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js"
click node_feedback_form "https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.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_home,node_books,node_borrow,node_readers_page,node_contact,node_visitor toneBlue
class node_book_search,node_book_add toneAmber
class node_borrow_validation,node_loan_dates,node_return_actions toneMint
class node_reader_card,node_reader_validation toneRose
class node_feedback_form toneIndigo
```

## Components

### Website pages

- [Home page](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/index.html): `BTL_ThietKeWeb/index.html`
- [Books page](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/books.html): `BTL_ThietKeWeb/books.html`
- [Borrow page](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/borrow.html): `BTL_ThietKeWeb/borrow.html`
- [Readers page](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/readers.html): `BTL_ThietKeWeb/readers.html`
- [Contact page](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/contact.html): `BTL_ThietKeWeb/contact.html`

### Book catalog

- [Book search and filter](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js): `BTL_ThietKeWeb/js/script.js`
- [Book addition checks](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js): `BTL_ThietKeWeb/js/script.js`

### Circulation

- [Borrow validation](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js): `BTL_ThietKeWeb/js/script.js`
- [Loan date defaults](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js): `BTL_ThietKeWeb/js/script.js`
- [Return and collect](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js): `BTL_ThietKeWeb/js/script.js`

### Reader management

- [Reader card status](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js): `BTL_ThietKeWeb/js/script.js`
- [Reader form validation](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js): `BTL_ThietKeWeb/js/script.js`

### Feedback

- [Feedback validation](https://github.com/truongmanhdat07/web_development/blob/main/BTL_ThietKeWeb/js/script.js): `BTL_ThietKeWeb/js/script.js`

### Other components

- **Library user**

## Connections

- Library user → Home page: uses
- Library user → Books page: uses
- Library user → Borrow page: submits request
- Library user → Readers page: manages readers
- Library user → Contact page: sends feedback
- Borrow validation → Loan date defaults: sets dates (evidence: `BTL_ThietKeWeb/js/script.js`)
- Borrow validation → Return and collect: separate page action (evidence: `BTL_ThietKeWeb/js/script.js`)
