# luthfiaziz25/gudangberas architecture

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

- Interactive diagram: https://gitdiagram.com/luthfiaziz25/gudangberas
- Repository: https://github.com/luthfiaziz25/gudangberas

## Overview

This is a CodeIgniter warehouse and inventory application: users enter through login, while staff-facing areas cover products, purchasing, transactions, and suppliers; management views include stock, requests, and reports, with separate administration and export features. The sampled product model confirms that sales confirmation records outgoing goods and reduces stock. The README is empty, and most application controllers and models were not sampled, so their detailed call wiring is not asserted; the graph shows only routing and database interactions supported by the available evidence.

Main entry points: [`system/core/Router.php`](https://github.com/luthfiaziz25/gudangberas/blob/master/system/core/Router.php) (Request router), [`application/config/routes.php`](https://github.com/luthfiaziz25/gudangberas/blob/master/application/config/routes.php) (Route configuration), [`application/models/m_produk.php`](https://github.com/luthfiaziz25/gudangberas/blob/master/application/models/m_produk.php) (Product and stock logic), [`application/config/database.php`](https://github.com/luthfiaziz25/gudangberas/blob/master/application/config/database.php) (Database settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Web runtime"]
  node_router["Request router<br/>[Router.php]"]
  node_routes["Route configuration<br/>[routes.php]"]
  node_controllers["Application controllers"]
  node_views["Role-based screens"]
end

subgraph group_access["Access and administration"]
  node_login["Login<br/>[c_login.php]"]
  node_admin["Administration<br/>[c_admin.php]"]
end

subgraph group_warehouse["Warehouse operations"]
  node_staffops["Staff operations<br/>[c_produk.php]"]
  node_orders["Order handling<br/>[c_pemesanan.php]"]
  node_transactions["Transactions<br/>[c_transaksi.php]"]
  node_suppliers["Supplier management<br/>[c_supplier.php]"]
  node_productmodel["Product and stock logic<br/>[m_produk.php]"]
end

subgraph group_management["Management and reporting"]
  node_manager["Manager workspace<br/>[c_kepala.php]"]
  node_policy["Policy management<br/>[c_kebijakan.php]"]
  node_exports["Reports and exports<br/>[c_excel.php]"]
  node_pdf["PDF output<br/>[c_pdf.php]"]
end

subgraph group_data["Data and persistence"]
  node_models["Application models"]
  node_databaseconfig["Database settings<br/>[database.php]"]
  node_database[("Gudang database")]
end

node_user(("Application users"))

node_routes -->|"sets default route"| node_router
node_router -->|"dispatches requests"| node_controllers
node_user -->|"sends request"| node_router
node_databaseconfig -->|"configures connection"| node_database
node_productmodel -->|"queries and updates"| node_database

click node_router "https://github.com/luthfiaziz25/gudangberas/blob/master/system/core/Router.php"
click node_routes "https://github.com/luthfiaziz25/gudangberas/blob/master/application/config/routes.php"
click node_controllers "https://github.com/luthfiaziz25/gudangberas/tree/master/application/controllers"
click node_login "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_login.php"
click node_admin "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_admin.php"
click node_staffops "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_produk.php"
click node_orders "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_pemesanan.php"
click node_transactions "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_transaksi.php"
click node_suppliers "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_supplier.php"
click node_productmodel "https://github.com/luthfiaziz25/gudangberas/blob/master/application/models/m_produk.php"
click node_manager "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_kepala.php"
click node_policy "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_kebijakan.php"
click node_exports "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_excel.php"
click node_pdf "https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_pdf.php"
click node_views "https://github.com/luthfiaziz25/gudangberas/tree/master/application/views"
click node_models "https://github.com/luthfiaziz25/gudangberas/tree/master/application/models"
click node_databaseconfig "https://github.com/luthfiaziz25/gudangberas/blob/master/application/config/database.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_router,node_routes,node_controllers,node_views,node_user toneBlue
class node_login,node_admin toneAmber
class node_staffops,node_orders,node_transactions,node_suppliers,node_productmodel toneMint
class node_manager,node_policy,node_exports,node_pdf toneRose
class node_models,node_databaseconfig,node_database toneIndigo
```

## Components

### Web runtime

- [Request router](https://github.com/luthfiaziz25/gudangberas/blob/master/system/core/Router.php): `system/core/Router.php`
- [Route configuration](https://github.com/luthfiaziz25/gudangberas/blob/master/application/config/routes.php): `application/config/routes.php`
- [Application controllers](https://github.com/luthfiaziz25/gudangberas/tree/master/application/controllers): `application/controllers`
- [Role-based screens](https://github.com/luthfiaziz25/gudangberas/tree/master/application/views): `application/views`

### Access and administration

- [Login](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_login.php): `application/controllers/c_login.php`
- [Administration](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_admin.php): `application/controllers/c_admin.php`

### Warehouse operations

- [Staff operations](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_produk.php): `application/controllers/c_produk.php`
- [Order handling](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_pemesanan.php): `application/controllers/c_pemesanan.php`
- [Transactions](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_transaksi.php): `application/controllers/c_transaksi.php`
- [Supplier management](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_supplier.php): `application/controllers/c_supplier.php`
- [Product and stock logic](https://github.com/luthfiaziz25/gudangberas/blob/master/application/models/m_produk.php): `application/models/m_produk.php`

### Management and reporting

- [Manager workspace](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_kepala.php): `application/controllers/c_kepala.php`
- [Policy management](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_kebijakan.php): `application/controllers/c_kebijakan.php`
- [Reports and exports](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_excel.php): `application/controllers/c_excel.php`
- [PDF output](https://github.com/luthfiaziz25/gudangberas/blob/master/application/controllers/c_pdf.php): `application/controllers/c_pdf.php`

### Data and persistence

- [Application models](https://github.com/luthfiaziz25/gudangberas/tree/master/application/models): `application/models`
- [Database settings](https://github.com/luthfiaziz25/gudangberas/blob/master/application/config/database.php): `application/config/database.php`
- **Gudang database**

### Other components

- **Application users**

## Connections

- Route configuration → Request router: sets default route
- Request router → Application controllers: dispatches requests
- Application users → Request router: sends request
- Database settings → Gudang database: configures connection
- Product and stock logic → Gudang database: queries and updates
