# hakkul/web_programming architecture

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

- Interactive diagram: https://gitdiagram.com/hakkul/web_programming
- Repository: https://github.com/hakkul/web_programming

## Overview

This repository contains several independent Vue exercises rather than one integrated product. The clearest workflows are room-list retrieval from a Hono worker, a notes component mounted by the tugas6 app, and a bookstore flow from catalog to shared cart. Other coursework files are standalone examples, and the available excerpts do not establish their runtime behavior. Some route and worker wiring is only indirectly indicated by the source index, so uncertain links are omitted or marked unverified.

Main entry points: [`tugas7/src/App.vue`](https://github.com/hakkul/web_programming/blob/main/tugas7/src/App.vue) (Storefront shell), [`tugas7/src/router/index.js`](https://github.com/hakkul/web_programming/blob/main/tugas7/src/router/index.js) (Page router), [`tugas7/src/components/daftarProduk.vue`](https://github.com/hakkul/web_programming/blob/main/tugas7/src/components/daftarProduk.vue) (Product catalog), [`tugas7/src/stores/cartStore.js`](https://github.com/hakkul/web_programming/blob/main/tugas7/src/stores/cartStore.js) (Cart state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rooms["Room borrowing app"]
  node_room_ui["Room status and list<br/>[App.vue]"]
  node_room_api["Room API route<br/>[ruang.ts]"]
  node_room_worker["Worker entry<br/>[index.ts]"]
end

subgraph group_notes["Notes exercise"]
  node_notes_app["Notes app shell<br/>[App.vue]"]
  node_notes_component["Notebook component<br/>[BukuCatatan.vue]"]
end

subgraph group_bookstore["Bookstore exercise"]
  node_book_app["Storefront shell<br/>[App.vue]"]
  node_book_router["Page router<br/>[index.js]"]
  node_book_catalog["Product catalog<br/>[daftarProduk.vue]"]
  node_book_card["Product card<br/>[ProdukCard.vue]"]
  node_book_store["Cart state<br/>[cartStore.js]"]
  node_book_cart["Cart view<br/>[cardView.vue]"]
end

node_room_user(("Room app user"))
node_notes_user(("Notes app user"))
node_book_user(("Bookstore user"))

node_room_user -->|"views"| node_room_ui
node_room_ui -.->|"fetches rooms"| node_room_api
node_room_worker -.->|"routes to"| node_room_api
node_notes_user -->|"uses"| node_notes_app
node_notes_app -->|"renders"| node_notes_component
node_book_user -->|"uses"| node_book_app
node_book_app -->|"installs"| node_book_router
node_book_router -->|"routes to"| node_book_catalog
node_book_router -->|"routes to"| node_book_cart
node_book_app -->|"reads item count"| node_book_store
node_book_catalog -->|"renders"| node_book_card
node_book_catalog -->|"adds products"| node_book_store
node_book_cart -->|"reads and removes"| node_book_store

click node_room_ui "https://github.com/hakkul/web_programming/blob/main/ta-peminjaman-ruang/src/App.vue"
click node_room_api "https://github.com/hakkul/web_programming/blob/main/ta-peminjaman-ruang/worker/routes/ruang.ts"
click node_room_worker "https://github.com/hakkul/web_programming/blob/main/ta-peminjaman-ruang/worker/index.ts"
click node_notes_app "https://github.com/hakkul/web_programming/blob/main/tugas6/src/App.vue"
click node_notes_component "https://github.com/hakkul/web_programming/blob/main/tugas6/src/components/BukuCatatan.vue"
click node_book_app "https://github.com/hakkul/web_programming/blob/main/tugas7/src/App.vue"
click node_book_router "https://github.com/hakkul/web_programming/blob/main/tugas7/src/router/index.js"
click node_book_catalog "https://github.com/hakkul/web_programming/blob/main/tugas7/src/components/daftarProduk.vue"
click node_book_card "https://github.com/hakkul/web_programming/blob/main/tugas7/src/components/ProdukCard.vue"
click node_book_store "https://github.com/hakkul/web_programming/blob/main/tugas7/src/stores/cartStore.js"
click node_book_cart "https://github.com/hakkul/web_programming/blob/main/tugas7/src/views/cardView.vue"

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_room_ui,node_room_api,node_room_worker,node_room_user,node_notes_user,node_book_user toneBlue
class node_notes_app,node_notes_component toneAmber
class node_book_app,node_book_router,node_book_catalog,node_book_card,node_book_store,node_book_cart toneMint
```

## Components

### Room borrowing app

- [Room status and list](https://github.com/hakkul/web_programming/blob/main/ta-peminjaman-ruang/src/App.vue): `ta-peminjaman-ruang/src/App.vue`
- [Room API route](https://github.com/hakkul/web_programming/blob/main/ta-peminjaman-ruang/worker/routes/ruang.ts): `ta-peminjaman-ruang/worker/routes/ruang.ts`
- [Worker entry](https://github.com/hakkul/web_programming/blob/main/ta-peminjaman-ruang/worker/index.ts): `ta-peminjaman-ruang/worker/index.ts`

### Notes exercise

- [Notes app shell](https://github.com/hakkul/web_programming/blob/main/tugas6/src/App.vue): `tugas6/src/App.vue`
- [Notebook component](https://github.com/hakkul/web_programming/blob/main/tugas6/src/components/BukuCatatan.vue): `tugas6/src/components/BukuCatatan.vue`

### Bookstore exercise

- [Storefront shell](https://github.com/hakkul/web_programming/blob/main/tugas7/src/App.vue): `tugas7/src/App.vue`
- [Page router](https://github.com/hakkul/web_programming/blob/main/tugas7/src/router/index.js): `tugas7/src/router/index.js`
- [Product catalog](https://github.com/hakkul/web_programming/blob/main/tugas7/src/components/daftarProduk.vue): `tugas7/src/components/daftarProduk.vue`
- [Product card](https://github.com/hakkul/web_programming/blob/main/tugas7/src/components/ProdukCard.vue): `tugas7/src/components/ProdukCard.vue`
- [Cart state](https://github.com/hakkul/web_programming/blob/main/tugas7/src/stores/cartStore.js): `tugas7/src/stores/cartStore.js`
- [Cart view](https://github.com/hakkul/web_programming/blob/main/tugas7/src/views/cardView.vue): `tugas7/src/views/cardView.vue`

### Other components

- **Room app user**
- **Notes app user**
- **Bookstore user**

## Connections

- Room app user → Room status and list: views (evidence: `ta-peminjaman-ruang/src/App.vue`)
- Room status and list → Room API route: fetches rooms
- Worker entry → Room API route: routes to (evidence: `ta-peminjaman-ruang/worker/index.ts`)
- Notes app user → Notes app shell: uses
- Notes app shell → Notebook component: renders (evidence: `tugas6/src/App.vue`)
- Bookstore user → Storefront shell: uses
- Storefront shell → Page router: installs (evidence: `tugas7/src/main.js`)
- Page router → Product catalog: routes to (evidence: `tugas7/src/router/index.js`)
- Page router → Cart view: routes to (evidence: `tugas7/src/router/index.js`)
- Storefront shell → Cart state: reads item count (evidence: `tugas7/src/App.vue`)
- Product catalog → Product card: renders (evidence: `tugas7/src/components/daftarProduk.vue`)
- Product catalog → Cart state: adds products (evidence: `tugas7/src/components/daftarProduk.vue`)
- Cart view → Cart state: reads and removes (evidence: `tugas7/src/views/cardView.vue`)
