# gueallestyo/bakmie-al-ridha architecture

> Architecture diagram of the GitHub repository gueallestyo/bakmie-al-ridha, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gueallestyo/bakmie-al-ridha
- Repository: https://github.com/gueallestyo/bakmie-al-ridha

## Overview

Bakmie Al-Ridha is a digital cashier application whose documented capabilities include daily portion validation and sales reporting. The intended user workflow is cashier interaction through the frontend, with API/business logic and database support; however, the repository contains only placeholder files, so those runtime connections are unverified. Capability paths point to the documented backend source area, not inspected implementations.

Main entry points: [`backend/src`](https://github.com/gueallestyo/bakmie-al-ridha/tree/main/backend/src) (API), [`frontend/src`](https://github.com/gueallestyo/bakmie-al-ridha/tree/main/frontend/src) (Cashier UI), [`supabase`](https://github.com/gueallestyo/bakmie-al-ridha/tree/main/supabase) (Supabase Database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Cashier Interface"]
  node_ui["Cashier UI"]
end

subgraph group_backend["Business Logic"]
  node_api["API"]
  node_portions["Daily Portion Validation"]
  node_reports["Sales Reports"]
end

subgraph group_data["Database"]
  node_db[("Supabase Database")]
end

node_cashier(("Cashier"))

node_cashier -.->|"uses"| node_ui
node_ui -.->|"requests"| node_api
node_api -.->|"validates portions"| node_portions
node_api -.->|"provides reports"| node_reports
node_api -.->|"accesses data"| node_db

click node_ui "https://github.com/gueallestyo/bakmie-al-ridha/tree/main/frontend/src"
click node_api "https://github.com/gueallestyo/bakmie-al-ridha/tree/main/backend/src"
click node_portions "https://github.com/gueallestyo/bakmie-al-ridha/tree/main/backend/src"
click node_reports "https://github.com/gueallestyo/bakmie-al-ridha/tree/main/backend/src"
click node_db "https://github.com/gueallestyo/bakmie-al-ridha/tree/main/supabase"

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_ui toneBlue
class node_api,node_portions,node_reports toneAmber
class node_db toneMint
class node_cashier toneIndigo
```

## Components

### Cashier Interface

- [Cashier UI](https://github.com/gueallestyo/bakmie-al-ridha/tree/main/frontend/src): `frontend/src`

### Business Logic

- [API](https://github.com/gueallestyo/bakmie-al-ridha/tree/main/backend/src): `backend/src`
- [Daily Portion Validation](https://github.com/gueallestyo/bakmie-al-ridha/tree/main/backend/src): `backend/src`
- [Sales Reports](https://github.com/gueallestyo/bakmie-al-ridha/tree/main/backend/src): `backend/src`

### Database

- [Supabase Database](https://github.com/gueallestyo/bakmie-al-ridha/tree/main/supabase): `supabase`

### Other components

- **Cashier**

## Connections

- Cashier → Cashier UI: uses
- Cashier UI → API: requests
- API → Daily Portion Validation: validates portions
- API → Sales Reports: provides reports
- API → Supabase Database: accesses data
