# kx0809/cloud-deployed-bookstore-web-application architecture

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

- Interactive diagram: https://gitdiagram.com/kx0809/cloud-deployed-bookstore-web-application
- Repository: https://github.com/kx0809/cloud-deployed-bookstore-web-application

## Overview

Unpopular is a Laravel online bookstore. The main user journey is browsing books, adding selections to a cart, completing a simulated checkout, and viewing purchases; registered users also manage profiles and inquiries, while administrators manage books, inquiries, and admin accounts. The map includes the MVC data layer and documented AWS deployment capabilities. Some route wiring and several feature implementations were not sampled, so those links are omitted or marked unverified rather than inferred from filenames.

Main entry points: [`app/Http/Controllers/CartController.php`](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/CartController.php) (Cart and checkout), [`app/Http/Controllers/AdminBookManagingController.php`](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/AdminBookManagingController.php) (Book management), [`app/Http/Controllers/BookController.php`](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/BookController.php) (Book browsing), [`app/Http/Controllers/ContactUsController.php`](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/ContactUsController.php) (User inquiries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Catalog and administration"]
  node_catalog_ui["Book browsing views"]
  node_catalog_controller["Book browsing<br/>[BookController.php]"]
  node_book_admin["Book management"]
  node_book_model["Book records<br/>[Book.php]"]
end

subgraph group_purchase["Purchasing"]
  node_cart_controller["Cart and checkout<br/>[CartController.php]"]
  node_cart_model["Shopping cart records<br/>[ShoppingCart.php]"]
  node_purchase_model["Purchased book records<br/>[PurchasedBook.php]"]
  node_purchase_views["Cart and checkout views"]
end

subgraph group_accounts["Accounts and inquiries"]
  node_auth_login["Login"]
  node_auth_register["Registration"]
  node_auth_profile["Profile management"]
  node_contact_user["User inquiries"]
  node_contact_admin["Inquiry management"]
  node_contact_model["Inquiry records<br/>[ContactForm.php]"]
  node_admin_accounts["Admin account management"]
  node_user_model["User records<br/>[User.php]"]
end

subgraph group_platform["Application platform"]
  node_app_controller["Shared controller base<br/>[Controller.php]"]
  node_routing["Web route registration"]
  node_authz["Authorization gates"]
  node_app_config["Application configuration<br/>[app.php]"]
  node_database_config["Database configuration<br/>[database.php]"]
  node_exception_handler["Exception handling<br/>[Handler.php]"]
end

node_reader(("Guest or registered reader"))
node_admin(("Administrator"))
node_mysql_rds[("AWS RDS MySQL")]
node_aws_s3[("AWS S3 and Glacier")]
node_aws_runtime["Elastic Beanstalk and EC2"]
node_cloudwatch["CloudWatch"]

node_reader -.->|"browses"| node_catalog_controller
node_catalog_controller -.->|"shows listings"| node_catalog_ui
node_reader -.->|"checks out"| node_cart_controller
node_cart_controller -->|"reads and writes"| node_cart_model
node_cart_controller -->|"looks up books"| node_book_model
node_cart_controller -.->|"creates purchases"| node_purchase_model
node_cart_controller -.->|"shows checkout"| node_purchase_views
node_admin -->|"manages catalog"| node_book_admin
node_book_admin -->|"updates records"| node_book_model
node_book_admin -.->|"stores book files"| node_aws_s3
node_reader -.->|"signs in"| node_auth_login
node_reader -.->|"registers"| node_auth_register
node_reader -.->|"manages profile"| node_auth_profile
node_reader -.->|"sends inquiry"| node_contact_user
node_contact_user -.->|"records inquiry"| node_contact_model
node_admin -.->|"handles inquiries"| node_contact_admin
node_contact_admin -.->|"tracks status"| node_contact_model
node_admin -.->|"manages admins"| node_admin_accounts
node_routing -.->|"registers routes"| node_authz
node_database_config -.->|"configures database"| node_mysql_rds
node_aws_runtime -.->|"uses database"| node_mysql_rds
node_aws_runtime -.->|"stores assets"| node_aws_s3
node_aws_runtime -.->|"logs and monitors"| node_cloudwatch
node_app_config -->|"loads provider"| node_authz

click node_catalog_ui "https://github.com/kx0809/cloud-deployed-bookstore-web-application/tree/main/resources/views/book"
click node_catalog_controller "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/BookController.php"
click node_book_admin "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/AdminBookManagingController.php"
click node_book_model "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/Book.php"
click node_cart_controller "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/CartController.php"
click node_cart_model "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/ShoppingCart.php"
click node_purchase_model "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/PurchasedBook.php"
click node_purchase_views "https://github.com/kx0809/cloud-deployed-bookstore-web-application/tree/main/resources/views/user"
click node_auth_login "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/Auth/LoginController.php"
click node_auth_register "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/Auth/RegisterController.php"
click node_auth_profile "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/Auth/ProfileController.php"
click node_contact_user "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/ContactUsController.php"
click node_contact_admin "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/AdminContactFormController.php"
click node_contact_model "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/ContactForm.php"
click node_admin_accounts "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/AdminManageAdminController.php"
click node_user_model "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/User.php"
click node_app_controller "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/Controller.php"
click node_routing "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Providers/RouteServiceProvider.php"
click node_authz "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Providers/AuthServiceProvider.php"
click node_app_config "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/config/app.php"
click node_database_config "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/config/database.php"
click node_exception_handler "https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Exceptions/Handler.php"

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_catalog_ui,node_catalog_controller,node_book_admin,node_book_model toneBlue
class node_cart_controller,node_cart_model,node_purchase_model,node_purchase_views,node_mysql_rds,node_aws_s3 toneAmber
class node_auth_login,node_auth_register,node_auth_profile,node_contact_user,node_contact_admin,node_contact_model,node_admin_accounts,node_user_model toneMint
class node_app_controller,node_routing,node_authz,node_app_config,node_database_config,node_exception_handler toneRose
class node_reader,node_admin,node_aws_runtime,node_cloudwatch toneIndigo
```

## Components

### Catalog and administration

- [Book browsing views](https://github.com/kx0809/cloud-deployed-bookstore-web-application/tree/main/resources/views/book): `resources/views/book`
- [Book browsing](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/BookController.php): `app/Http/Controllers/BookController.php`
- [Book management](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/AdminBookManagingController.php): `app/Http/Controllers/AdminBookManagingController.php`
- [Book records](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/Book.php): `app/Models/Book.php`

### Purchasing

- [Cart and checkout](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/CartController.php): `app/Http/Controllers/CartController.php`
- [Shopping cart records](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/ShoppingCart.php): `app/Models/ShoppingCart.php`
- [Purchased book records](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/PurchasedBook.php): `app/Models/PurchasedBook.php`
- [Cart and checkout views](https://github.com/kx0809/cloud-deployed-bookstore-web-application/tree/main/resources/views/user): `resources/views/user`

### Accounts and inquiries

- [Login](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/Auth/LoginController.php): `app/Http/Controllers/Auth/LoginController.php`
- [Registration](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/Auth/RegisterController.php): `app/Http/Controllers/Auth/RegisterController.php`
- [Profile management](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/Auth/ProfileController.php): `app/Http/Controllers/Auth/ProfileController.php`
- [User inquiries](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/ContactUsController.php): `app/Http/Controllers/ContactUsController.php`
- [Inquiry management](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/AdminContactFormController.php): `app/Http/Controllers/AdminContactFormController.php`
- [Inquiry records](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/ContactForm.php): `app/Models/ContactForm.php`
- [Admin account management](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/AdminManageAdminController.php): `app/Http/Controllers/AdminManageAdminController.php`
- [User records](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Models/User.php): `app/Models/User.php`

### Application platform

- [Shared controller base](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Http/Controllers/Controller.php): `app/Http/Controllers/Controller.php`
- [Web route registration](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Providers/RouteServiceProvider.php): `app/Providers/RouteServiceProvider.php`
- [Authorization gates](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Providers/AuthServiceProvider.php): `app/Providers/AuthServiceProvider.php`
- [Application configuration](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/config/app.php): `config/app.php`
- [Database configuration](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/config/database.php): `config/database.php`
- [Exception handling](https://github.com/kx0809/cloud-deployed-bookstore-web-application/blob/main/app/Exceptions/Handler.php): `app/Exceptions/Handler.php`

### Other components

- **Guest or registered reader**
- **Administrator**
- **AWS RDS MySQL**
- **AWS S3 and Glacier**
- **Elastic Beanstalk and EC2**
- **CloudWatch**

## Connections

- Guest or registered reader → Book browsing: browses
- Book browsing → Book browsing views: shows listings
- Guest or registered reader → Cart and checkout: checks out
- Cart and checkout → Shopping cart records: reads and writes (evidence: `app/Http/Controllers/CartController.php`)
- Cart and checkout → Book records: looks up books (evidence: `app/Http/Controllers/CartController.php`)
- Cart and checkout → Purchased book records: creates purchases
- Cart and checkout → Cart and checkout views: shows checkout
- Administrator → Book management: manages catalog (evidence: `app/Http/Controllers/AdminBookManagingController.php`)
- Book management → Book records: updates records (evidence: `app/Http/Controllers/AdminBookManagingController.php`)
- Book management → AWS S3 and Glacier: stores book files
- Guest or registered reader → Login: signs in
- Guest or registered reader → Registration: registers
- Guest or registered reader → Profile management: manages profile
- Guest or registered reader → User inquiries: sends inquiry
- User inquiries → Inquiry records: records inquiry
- Administrator → Inquiry management: handles inquiries
- Inquiry management → Inquiry records: tracks status
- Administrator → Admin account management: manages admins
- Web route registration → Authorization gates: registers routes
- Database configuration → AWS RDS MySQL: configures database
- Elastic Beanstalk and EC2 → AWS RDS MySQL: uses database
- Elastic Beanstalk and EC2 → AWS S3 and Glacier: stores assets
- Elastic Beanstalk and EC2 → CloudWatch: logs and monitors
- Application configuration → Authorization gates: loads provider (evidence: `config/app.php`)
