# adamixlo21/kunst-eten-book architecture

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

- Interactive diagram: https://gitdiagram.com/adamixlo21/kunst-eten-book
- Repository: https://github.com/adamixlo21/kunst-eten-book

## Overview

This is a Laravel/Inertia art-commerce application: visitors browse paintings, submit private bids or place a book order, then complete payment; staff manage orders, artwork, bids and contacts. The map includes these distinct storefront, bidding, checkout, and fulfillment stages, plus authentication/settings and the React interface. Several frontend pages and backend controllers are represented at their exact tree paths but were not excerpted; their links are included only where routes or sampled code establish them.

Main entry points: [`routes/web.php`](https://github.com/adamixlo21/kunst-eten-book/blob/main/routes/web.php) (Web Route Dispatch), [`app/Http/Controllers/OrderController.php`](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/OrderController.php) (Order and Payment), [`app/Http/Controllers/Admin/OrderController.php`](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Admin/OrderController.php) (Order Fulfillment), [`app/Models/User.php`](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Models/User.php) (User Accounts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_home["Home Page<br/>[home.tsx]"]
  node_paintings["Painting Catalog"]
  node_painting_pages["Painting Views"]
  node_bidding["Bid Submission<br/>[BidController.php]"]
  node_bid_model[("Bid Records<br/>[Bid.php]")]
  node_painting_model[("Painting Records<br/>[Painting.php]")]
  node_contact["Contact Intake"]
end

subgraph group_commerce["Orders and Payments"]
  node_checkout["Checkout Page<br/>[checkout.tsx]"]
  node_order_flow["Order and Payment"]
  node_order_model[("Order Records<br/>[Order.php]")]
  node_order_mail["Order Emails"]
  node_cart["Book Cart State"]
end

subgraph group_operations["Admin Operations"]
  node_admin_orders["Order Fulfillment"]
  node_admin_pages["Admin Screens"]
  node_admin_paintings["Artwork Management"]
  node_admin_bids["Bid Management<br/>[BidController.php]"]
  node_admin_contacts["Contact Management"]
end

subgraph group_identity["Identity and Settings"]
  node_user[("User Accounts<br/>[User.php]")]
  node_profile["Profile Settings"]
  node_security["Security Settings"]
  node_validation["Profile Validation"]
  node_auth["Authentication Setup"]
end

subgraph group_platform["Application Interface"]
  node_routes["Web Route Dispatch<br/>[web.php]"]
  node_middleware["Web Middleware<br/>[app.php]"]
  node_inertia["Inertia Bridge"]
  node_frontend["React App Entry<br/>[app.tsx]"]
end

node_visitor(("Visitor"))
node_mollie["Mollie Payments"]
node_database[("Application Database")]

node_visitor -->|"sends requests"| node_routes
node_routes -->|"dispatches catalog"| node_paintings
node_routes -->|"dispatches bids"| node_bidding
node_routes -->|"dispatches contact"| node_contact
node_routes -->|"dispatches checkout"| node_order_flow
node_routes -->|"dispatches admin"| node_admin_orders
node_routes -->|"dispatches admin"| node_admin_paintings
node_routes -->|"dispatches admin"| node_admin_bids
node_routes -->|"dispatches admin"| node_admin_contacts
node_routes -->|"loads settings routes"| node_profile
node_bidding -->|"loads painting"| node_painting_model
node_bidding -->|"creates bid"| node_bid_model
node_order_flow -->|"creates and updates"| node_order_model
node_order_flow -->|"creates and checks payment"| node_mollie
node_order_flow -->|"sends confirmation"| node_order_mail
node_admin_orders -->|"updates fulfillment"| node_order_model
node_admin_orders -->|"sends shipping email"| node_order_mail
node_admin_paintings -->|"updates artwork"| node_painting_model
node_profile -.->|"validates profile"| node_validation
node_profile -->|"updates account"| node_user
node_security -->|"updates password"| node_user
node_auth -->|"creates accounts"| node_user
node_middleware -->|"configures routing"| node_routes
node_middleware -->|"registers middleware"| node_inertia
node_frontend -.->|"renders pages"| node_home
node_cart -.->|"provides cart state"| node_checkout
node_paintings -.->|"returns catalog view"| node_painting_pages
node_admin_orders -.->|"returns admin views"| node_admin_pages
node_order_model -.->|"persists records"| node_database
node_painting_model -.->|"persists records"| node_database
node_bid_model -.->|"persists records"| node_database
node_user -.->|"persists accounts"| node_database

click node_home "https://github.com/adamixlo21/kunst-eten-book/blob/main/resources/js/pages/home.tsx"
click node_paintings "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/PaintingController.php"
click node_painting_pages "https://github.com/adamixlo21/kunst-eten-book/tree/main/resources/js/pages/paintings"
click node_bidding "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/BidController.php"
click node_bid_model "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Models/Bid.php"
click node_painting_model "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Models/Painting.php"
click node_contact "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/ContactController.php"
click node_checkout "https://github.com/adamixlo21/kunst-eten-book/blob/main/resources/js/pages/checkout.tsx"
click node_order_flow "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/OrderController.php"
click node_order_model "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Models/Order.php"
click node_order_mail "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Mail/OrderConfirmation.php"
click node_admin_orders "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Admin/OrderController.php"
click node_admin_pages "https://github.com/adamixlo21/kunst-eten-book/tree/main/resources/js/pages/admin"
click node_admin_paintings "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Admin/PaintingController.php"
click node_admin_bids "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Admin/BidController.php"
click node_admin_contacts "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Admin/ContactController.php"
click node_user "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Models/User.php"
click node_profile "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Settings/ProfileController.php"
click node_security "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Settings/SecurityController.php"
click node_validation "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Concerns/ProfileValidationRules.php"
click node_auth "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Providers/FortifyServiceProvider.php"
click node_routes "https://github.com/adamixlo21/kunst-eten-book/blob/main/routes/web.php"
click node_middleware "https://github.com/adamixlo21/kunst-eten-book/blob/main/bootstrap/app.php"
click node_inertia "https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Middleware/HandleInertiaRequests.php"
click node_frontend "https://github.com/adamixlo21/kunst-eten-book/blob/main/resources/js/app.tsx"
click node_cart "https://github.com/adamixlo21/kunst-eten-book/blob/main/resources/js/components/BookCartContext.tsx"

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_paintings,node_painting_pages,node_bidding,node_bid_model,node_painting_model,node_contact toneBlue
class node_checkout,node_order_flow,node_order_model,node_order_mail,node_cart,node_database toneAmber
class node_admin_orders,node_admin_pages,node_admin_paintings,node_admin_bids,node_admin_contacts toneMint
class node_user,node_profile,node_security,node_validation,node_auth toneRose
class node_routes,node_middleware,node_inertia,node_frontend,node_visitor,node_mollie toneIndigo
```

## Components

### Storefront

- [Home Page](https://github.com/adamixlo21/kunst-eten-book/blob/main/resources/js/pages/home.tsx): `resources/js/pages/home.tsx`
- [Painting Catalog](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/PaintingController.php): `app/Http/Controllers/PaintingController.php`
- [Painting Views](https://github.com/adamixlo21/kunst-eten-book/tree/main/resources/js/pages/paintings): `resources/js/pages/paintings`
- [Bid Submission](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/BidController.php): `app/Http/Controllers/BidController.php`
- [Bid Records](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Models/Bid.php): `app/Models/Bid.php`
- [Painting Records](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Models/Painting.php): `app/Models/Painting.php`
- [Contact Intake](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/ContactController.php): `app/Http/Controllers/ContactController.php`

### Orders and Payments

- [Checkout Page](https://github.com/adamixlo21/kunst-eten-book/blob/main/resources/js/pages/checkout.tsx): `resources/js/pages/checkout.tsx`
- [Order and Payment](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/OrderController.php): `app/Http/Controllers/OrderController.php`
- [Order Records](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Models/Order.php): `app/Models/Order.php`
- [Order Emails](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Mail/OrderConfirmation.php): `app/Mail/OrderConfirmation.php`
- [Book Cart State](https://github.com/adamixlo21/kunst-eten-book/blob/main/resources/js/components/BookCartContext.tsx): `resources/js/components/BookCartContext.tsx`

### Admin Operations

- [Order Fulfillment](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Admin/OrderController.php): `app/Http/Controllers/Admin/OrderController.php`
- [Admin Screens](https://github.com/adamixlo21/kunst-eten-book/tree/main/resources/js/pages/admin): `resources/js/pages/admin`
- [Artwork Management](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Admin/PaintingController.php): `app/Http/Controllers/Admin/PaintingController.php`
- [Bid Management](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Admin/BidController.php): `app/Http/Controllers/Admin/BidController.php`
- [Contact Management](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Admin/ContactController.php): `app/Http/Controllers/Admin/ContactController.php`

### Identity and Settings

- [User Accounts](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Models/User.php): `app/Models/User.php`
- [Profile Settings](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Settings/ProfileController.php): `app/Http/Controllers/Settings/ProfileController.php`
- [Security Settings](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Controllers/Settings/SecurityController.php): `app/Http/Controllers/Settings/SecurityController.php`
- [Profile Validation](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Concerns/ProfileValidationRules.php): `app/Concerns/ProfileValidationRules.php`
- [Authentication Setup](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Providers/FortifyServiceProvider.php): `app/Providers/FortifyServiceProvider.php`

### Application Interface

- [Web Route Dispatch](https://github.com/adamixlo21/kunst-eten-book/blob/main/routes/web.php): `routes/web.php`
- [Web Middleware](https://github.com/adamixlo21/kunst-eten-book/blob/main/bootstrap/app.php): `bootstrap/app.php`
- [Inertia Bridge](https://github.com/adamixlo21/kunst-eten-book/blob/main/app/Http/Middleware/HandleInertiaRequests.php): `app/Http/Middleware/HandleInertiaRequests.php`
- [React App Entry](https://github.com/adamixlo21/kunst-eten-book/blob/main/resources/js/app.tsx): `resources/js/app.tsx`

### Other components

- **Visitor**
- **Mollie Payments**
- **Application Database**

## Connections

- Visitor → Web Route Dispatch: sends requests (evidence: `routes/web.php`)
- Web Route Dispatch → Painting Catalog: dispatches catalog (evidence: `routes/web.php`)
- Web Route Dispatch → Bid Submission: dispatches bids (evidence: `routes/web.php`)
- Web Route Dispatch → Contact Intake: dispatches contact (evidence: `routes/web.php`)
- Web Route Dispatch → Order and Payment: dispatches checkout (evidence: `routes/web.php`)
- Web Route Dispatch → Order Fulfillment: dispatches admin (evidence: `routes/web.php`)
- Web Route Dispatch → Artwork Management: dispatches admin (evidence: `routes/web.php`)
- Web Route Dispatch → Bid Management: dispatches admin (evidence: `routes/web.php`)
- Web Route Dispatch → Contact Management: dispatches admin (evidence: `routes/web.php`)
- Web Route Dispatch → Profile Settings: loads settings routes (evidence: `routes/web.php`)
- Bid Submission → Painting Records: loads painting (evidence: `app/Http/Controllers/BidController.php`)
- Bid Submission → Bid Records: creates bid (evidence: `app/Http/Controllers/BidController.php`)
- Order and Payment → Order Records: creates and updates (evidence: `app/Http/Controllers/OrderController.php`)
- Order and Payment → Mollie Payments: creates and checks payment (evidence: `app/Http/Controllers/OrderController.php`)
- Order and Payment → Order Emails: sends confirmation (evidence: `app/Http/Controllers/OrderController.php`)
- Order Fulfillment → Order Records: updates fulfillment (evidence: `app/Http/Controllers/Admin/OrderController.php`)
- Order Fulfillment → Order Emails: sends shipping email (evidence: `app/Http/Controllers/Admin/OrderController.php`)
- Artwork Management → Painting Records: updates artwork (evidence: `app/Http/Controllers/Admin/PaintingController.php`)
- Profile Settings → Profile Validation: validates profile
- Profile Settings → User Accounts: updates account (evidence: `app/Http/Controllers/Settings/ProfileController.php`)
- Security Settings → User Accounts: updates password (evidence: `app/Http/Controllers/Settings/SecurityController.php`)
- Authentication Setup → User Accounts: creates accounts (evidence: `app/Providers/FortifyServiceProvider.php`)
- Web Middleware → Web Route Dispatch: configures routing (evidence: `bootstrap/app.php`)
- Web Middleware → Inertia Bridge: registers middleware (evidence: `bootstrap/app.php`)
- React App Entry → Home Page: renders pages
- Book Cart State → Checkout Page: provides cart state
- Painting Catalog → Painting Views: returns catalog view
- Order Fulfillment → Admin Screens: returns admin views
- Order Records → Application Database: persists records
- Painting Records → Application Database: persists records
- Bid Records → Application Database: persists records
- User Accounts → Application Database: persists accounts
