# hakkul/tugas-akhir architecture

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

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

## Overview

This is an early-stage room-loan web application. The implemented workflow loads the Vue page, checks the Hono backend, and displays dummy room data returned by its room route. The README also describes planned database-backed room management, authentication and roles, booking requests, conflict validation, approvals, and history; these are roadmap capabilities, not present implementations. The graph keeps those documented stages visible without implying they already run. Evidence is limited to the README and the excerpted source files.

Main entry points: [`README.md`](https://github.com/hakkul/tugas-akhir/blob/master/README.md) (Booking request), [`src/App.vue`](https://github.com/hakkul/tugas-akhir/blob/master/src/App.vue) (Room dashboard), [`worker/routes/ruang.ts`](https://github.com/hakkul/tugas-akhir/blob/master/worker/routes/ruang.ts) (Dummy room endpoint), [`worker/index.ts`](https://github.com/hakkul/tugas-akhir/blob/master/worker/index.ts) (Hono API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web interface"]
  node_app["Room dashboard<br/>[App.vue]"]
  node_mount["Vue app entry<br/>[main.ts]"]
end

subgraph group_backend["API runtime"]
  node_api["Hono API<br/>[index.ts]"]
  node_testing["Backend status endpoint<br/>[index.ts]"]
  node_rooms["Dummy room endpoint<br/>[ruang.ts]"]
end

subgraph group_roadmap["Planned capabilities"]
  node_database[("D1 room storage<br/>[README.md]")]
  node_roomcrud["Room CRUD<br/>[README.md]"]
  node_auth["Authentication and roles<br/>[README.md]"]
  node_request["Booking request<br/>[README.md]"]
  node_conflict["Schedule validation<br/>[README.md]"]
  node_approval["Request approval<br/>[README.md]"]
  node_history["Booking history<br/>[README.md]"]
end

node_user(("User"))
node_roomdata["Room list"]

node_user -.->|"opens app"| node_mount
node_mount -->|"mounts"| node_app
node_app -->|"checks status"| node_testing
node_app -->|"fetches rooms"| node_rooms
node_api -->|"serves"| node_testing
node_api -->|"routes requests"| node_rooms
node_rooms -->|"returns"| node_roomdata
node_database -.->|"planned persistence"| node_roomcrud
node_auth -.->|"planned access"| node_request
node_request -.->|"planned validation"| node_conflict
node_request -.->|"planned review"| node_approval
node_history -.->|"planned records"| node_request

click node_app "https://github.com/hakkul/tugas-akhir/blob/master/src/App.vue"
click node_mount "https://github.com/hakkul/tugas-akhir/blob/master/src/main.ts"
click node_api "https://github.com/hakkul/tugas-akhir/blob/master/worker/index.ts"
click node_testing "https://github.com/hakkul/tugas-akhir/blob/master/worker/index.ts"
click node_rooms "https://github.com/hakkul/tugas-akhir/blob/master/worker/routes/ruang.ts"
click node_database "https://github.com/hakkul/tugas-akhir/blob/master/README.md"
click node_roomcrud "https://github.com/hakkul/tugas-akhir/blob/master/README.md"
click node_auth "https://github.com/hakkul/tugas-akhir/blob/master/README.md"
click node_request "https://github.com/hakkul/tugas-akhir/blob/master/README.md"
click node_conflict "https://github.com/hakkul/tugas-akhir/blob/master/README.md"
click node_approval "https://github.com/hakkul/tugas-akhir/blob/master/README.md"
click node_history "https://github.com/hakkul/tugas-akhir/blob/master/README.md"

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_app,node_mount,node_user toneBlue
class node_api,node_testing,node_rooms toneAmber
class node_database,node_roomcrud,node_auth,node_request,node_conflict,node_approval,node_history toneMint
class node_roomdata toneIndigo
```

## Components

### Web interface

- [Room dashboard](https://github.com/hakkul/tugas-akhir/blob/master/src/App.vue): `src/App.vue`
- [Vue app entry](https://github.com/hakkul/tugas-akhir/blob/master/src/main.ts): `src/main.ts`

### API runtime

- [Hono API](https://github.com/hakkul/tugas-akhir/blob/master/worker/index.ts): `worker/index.ts`
- [Backend status endpoint](https://github.com/hakkul/tugas-akhir/blob/master/worker/index.ts): `worker/index.ts`
- [Dummy room endpoint](https://github.com/hakkul/tugas-akhir/blob/master/worker/routes/ruang.ts): `worker/routes/ruang.ts`

### Planned capabilities

- [D1 room storage](https://github.com/hakkul/tugas-akhir/blob/master/README.md): `README.md`
- [Room CRUD](https://github.com/hakkul/tugas-akhir/blob/master/README.md): `README.md`
- [Authentication and roles](https://github.com/hakkul/tugas-akhir/blob/master/README.md): `README.md`
- [Booking request](https://github.com/hakkul/tugas-akhir/blob/master/README.md): `README.md`
- [Schedule validation](https://github.com/hakkul/tugas-akhir/blob/master/README.md): `README.md`
- [Request approval](https://github.com/hakkul/tugas-akhir/blob/master/README.md): `README.md`
- [Booking history](https://github.com/hakkul/tugas-akhir/blob/master/README.md): `README.md`

### Other components

- **User**
- **Room list**

## Connections

- User → Vue app entry: opens app (evidence: `README.md`)
- Vue app entry → Room dashboard: mounts (evidence: `src/main.ts`)
- Room dashboard → Backend status endpoint: checks status (evidence: `src/App.vue`)
- Room dashboard → Dummy room endpoint: fetches rooms (evidence: `src/App.vue`)
- Hono API → Backend status endpoint: serves (evidence: `worker/index.ts`)
- Hono API → Dummy room endpoint: routes requests (evidence: `worker/index.ts`)
- Dummy room endpoint → Room list: returns (evidence: `worker/routes/ruang.ts`)
- D1 room storage → Room CRUD: planned persistence (evidence: `README.md`)
- Authentication and roles → Booking request: planned access (evidence: `README.md`)
- Booking request → Schedule validation: planned validation (evidence: `README.md`)
- Booking request → Request approval: planned review (evidence: `README.md`)
- Booking history → Booking request: planned records (evidence: `README.md`)
