# deyyw0w/e-jeep architecture

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

- Interactive diagram: https://gitdiagram.com/deyyw0w/e-jeep
- Repository: https://github.com/deyyw0w/e-jeep

## Overview

E-JEEP Ticket Reservation is a CodeIgniter bus-reservation web application. The main customer journey is to find a schedule, select seats, place an order, submit payment confirmation, and access an e-ticket; the README also documents account verification, email alerts, and ticket lookup. Backend users manage schedules and related data, process orders, and view reservation reports. The excerpts show seat selection and order handling, but do not expose the full payment or persistence implementation, so some documented links are dashed and unverified.

Main entry points: [`application/config/database.php`](https://github.com/deyyw0w/e-jeep/blob/main/application/config/database.php) (Application database), [`application/controllers/backend/Order.php`](https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/backend/Order.php) (Order processing), [`system/core/Router.php`](https://github.com/deyyw0w/e-jeep/blob/main/system/core/Router.php) (URI routing), [`application/controllers/Tiket.php`](https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/Tiket.php) (Schedule search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Customer booking"]
  node_account["Registration and login<br/>[Login.php]"]
  node_schedule["Schedule search<br/>[Tiket.php]"]
  node_seat["Seat selection<br/>[beli_step1.php]"]
  node_order["Booking and payment<br/>[Tiket.php]"]
  node_ticket["Ticket lookup<br/>[Tiket.php]"]
  node_customer_views["Customer pages<br/>[checkout.php]"]
end

subgraph group_operations["Admin operations"]
  node_fleet["Bus and schedule CRUD<br/>[Bus.php]"]
  node_order_ops["Order processing<br/>[Order.php]"]
  node_reports["Reservation reports<br/>[Laporan.php]"]
  node_admin_views["Admin pages<br/>[laporan.php]"]
  node_database[("Application database<br/>[database.php]")]
end

subgraph group_framework["Application runtime"]
  node_front_controller["HTTP entry point<br/>[index.php]"]
  node_bootstrap["Framework bootstrap<br/>[CodeIgniter.php]"]
  node_router["URI routing<br/>[Router.php]"]
  node_controller_base["Controller base<br/>[Controller.php]"]
end

node_traveler(("Traveler"))
node_admin(("Admin user"))

node_traveler -->|"sends request"| node_front_controller
node_front_controller -->|"starts"| node_bootstrap
node_bootstrap -->|"loads router"| node_router
node_router -.->|"routes request"| node_schedule
node_router -.->|"routes request"| node_account
node_router -.->|"routes request"| node_order_ops
node_schedule -.->|"queries schedules"| node_database
node_schedule -.->|"shows seats"| node_seat
node_seat -.->|"submits booking"| node_order
node_order -.->|"reads and writes"| node_database
node_order -.->|"renders pages"| node_customer_views
node_traveler -.->|"looks up ticket"| node_ticket
node_account -.->|"verifies by email"| node_traveler
node_order_ops -->|"reads and writes"| node_database
node_order_ops -->|"renders order view"| node_admin_views
node_order_ops -.->|"emails e-ticket"| node_admin
node_admin -.->|"manages schedules"| node_fleet
node_fleet -.->|"updates records"| node_database
node_admin -.->|"requests reports"| node_reports
node_reports -.->|"reads reservations"| node_database
node_reports -.->|"shows reports"| node_admin_views

click node_account "https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/Login.php"
click node_schedule "https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/Tiket.php"
click node_seat "https://github.com/deyyw0w/e-jeep/blob/main/application/views/frontend/beli_step1.php"
click node_order "https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/Tiket.php"
click node_ticket "https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/Tiket.php"
click node_customer_views "https://github.com/deyyw0w/e-jeep/blob/main/application/views/frontend/checkout.php"
click node_fleet "https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/backend/Bus.php"
click node_order_ops "https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/backend/Order.php"
click node_reports "https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/backend/Laporan.php"
click node_admin_views "https://github.com/deyyw0w/e-jeep/blob/main/application/views/backend/laporan.php"
click node_database "https://github.com/deyyw0w/e-jeep/blob/main/application/config/database.php"
click node_front_controller "https://github.com/deyyw0w/e-jeep/blob/main/index.php"
click node_bootstrap "https://github.com/deyyw0w/e-jeep/blob/main/system/core/CodeIgniter.php"
click node_router "https://github.com/deyyw0w/e-jeep/blob/main/system/core/Router.php"
click node_controller_base "https://github.com/deyyw0w/e-jeep/blob/main/system/core/Controller.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_account,node_schedule,node_seat,node_order,node_ticket,node_customer_views,node_admin toneBlue
class node_fleet,node_order_ops,node_reports,node_admin_views,node_database toneAmber
class node_front_controller,node_bootstrap,node_router,node_controller_base toneMint
class node_traveler toneIndigo
```

## Components

### Customer booking

- [Registration and login](https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/Login.php): `application/controllers/Login.php`
- [Schedule search](https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/Tiket.php): `application/controllers/Tiket.php`
- [Seat selection](https://github.com/deyyw0w/e-jeep/blob/main/application/views/frontend/beli_step1.php): `application/views/frontend/beli_step1.php`
- [Booking and payment](https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/Tiket.php): `application/controllers/Tiket.php`
- [Ticket lookup](https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/Tiket.php): `application/controllers/Tiket.php`
- [Customer pages](https://github.com/deyyw0w/e-jeep/blob/main/application/views/frontend/checkout.php): `application/views/frontend/checkout.php`

### Admin operations

- [Bus and schedule CRUD](https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/backend/Bus.php): `application/controllers/backend/Bus.php`
- [Order processing](https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/backend/Order.php): `application/controllers/backend/Order.php`
- [Reservation reports](https://github.com/deyyw0w/e-jeep/blob/main/application/controllers/backend/Laporan.php): `application/controllers/backend/Laporan.php`
- [Admin pages](https://github.com/deyyw0w/e-jeep/blob/main/application/views/backend/laporan.php): `application/views/backend/laporan.php`
- [Application database](https://github.com/deyyw0w/e-jeep/blob/main/application/config/database.php): `application/config/database.php`

### Application runtime

- [HTTP entry point](https://github.com/deyyw0w/e-jeep/blob/main/index.php): `index.php`
- [Framework bootstrap](https://github.com/deyyw0w/e-jeep/blob/main/system/core/CodeIgniter.php): `system/core/CodeIgniter.php`
- [URI routing](https://github.com/deyyw0w/e-jeep/blob/main/system/core/Router.php): `system/core/Router.php`
- [Controller base](https://github.com/deyyw0w/e-jeep/blob/main/system/core/Controller.php): `system/core/Controller.php`

### Other components

- **Traveler**
- **Admin user**

## Connections

- Traveler → HTTP entry point: sends request (evidence: `index.php`)
- HTTP entry point → Framework bootstrap: starts (evidence: `index.php`)
- Framework bootstrap → URI routing: loads router (evidence: `system/core/CodeIgniter.php`)
- URI routing → Schedule search: routes request
- URI routing → Registration and login: routes request
- URI routing → Order processing: routes request
- Schedule search → Application database: queries schedules
- Schedule search → Seat selection: shows seats
- Seat selection → Booking and payment: submits booking
- Booking and payment → Application database: reads and writes
- Booking and payment → Customer pages: renders pages
- Traveler → Ticket lookup: looks up ticket (evidence: `README.md`)
- Registration and login → Traveler: verifies by email (evidence: `README.md`)
- Order processing → Application database: reads and writes (evidence: `application/controllers/backend/Order.php`)
- Order processing → Admin pages: renders order view (evidence: `application/controllers/backend/Order.php`)
- Order processing → Admin user: emails e-ticket (evidence: `README.md`)
- Admin user → Bus and schedule CRUD: manages schedules (evidence: `README.md`)
- Bus and schedule CRUD → Application database: updates records (evidence: `README.md`)
- Admin user → Reservation reports: requests reports (evidence: `README.md`)
- Reservation reports → Application database: reads reservations (evidence: `README.md`)
- Reservation reports → Admin pages: shows reports (evidence: `README.md`)
