# davidmtz29122006-droid/bellaboutique architecture

> Architecture diagram of the GitHub repository davidmtz29122006-droid/bellaboutique, 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/davidmtz29122006-droid/bellaboutique
- Repository: https://github.com/davidmtz29122006-droid/bellaboutique

## Overview

Bella Boutique is a responsive point-of-sale system with a public product catalog and a role-based staff workspace. Staff use the workspace to manage store operations; the frontend requests data from the API, which persists operational records in SQLite. The README documents sales, inventory, cash, customers, suppliers, users, reports, returns and branch-aware access. The API is implemented in one server file, so its domain capabilities are represented as a single component rather than speculative internal modules; unsampled endpoint wiring is not expanded.

Main entry points: [`src/ProjectDocumentation.jsx`](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/ProjectDocumentation.jsx) (Project documentation), [`server/index.js`](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/server/index.js) (POS API), [`src/App.jsx`](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/App.jsx) (Staff workspace), [`src/Catalog.jsx`](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/Catalog.jsx) (Public catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User interfaces"]
  node_staff["Staff workspace<br/>[App.jsx]"]
  node_catalog["Public catalog<br/>[Catalog.jsx]"]
end

subgraph group_operations["Store operations"]
  node_api["POS API<br/>[index.js]"]
  node_auth["Authentication and roles<br/>[index.js]"]
end

subgraph group_persistence["Persistence"]
  node_sqlite[("Operational database<br/>[index.js]")]
end

subgraph group_project["Project information"]
  node_projectdocs["Project documentation"]
  node_projectdata["Planning content<br/>[project-data.js]"]
  node_originalpdf["Original project PDF"]
end

node_employee(("Store staff"))
node_shopper(("Catalog visitor"))

node_employee -->|"uses"| node_staff
node_staff -->|"requests data"| node_api
node_api -->|"reads and writes"| node_sqlite
node_api -->|"checks sessions"| node_auth
node_shopper -->|"browses"| node_catalog
node_staff -->|"opens"| node_projectdocs
node_projectdocs -->|"renders"| node_projectdata
node_projectdocs -->|"links to"| node_originalpdf
node_projectdocs -->|"requests PDF"| node_api

click node_staff "https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/App.jsx"
click node_catalog "https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/Catalog.jsx"
click node_api "https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/server/index.js"
click node_auth "https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/server/index.js"
click node_sqlite "https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/server/index.js"
click node_projectdocs "https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/ProjectDocumentation.jsx"
click node_projectdata "https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/project-data.js"
click node_originalpdf "https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/documents/Bella_Boutique_Documento_Corregido.pdf"

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_staff,node_catalog toneBlue
class node_api,node_auth toneAmber
class node_sqlite toneMint
class node_projectdocs,node_projectdata,node_originalpdf toneRose
class node_employee,node_shopper toneIndigo
```

## Components

### User interfaces

- [Staff workspace](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/App.jsx): `src/App.jsx`
- [Public catalog](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/Catalog.jsx): `src/Catalog.jsx`

### Store operations

- [POS API](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/server/index.js): `server/index.js`
- [Authentication and roles](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/server/index.js): `server/index.js`

### Persistence

- [Operational database](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/server/index.js): `server/index.js`

### Project information

- [Project documentation](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/ProjectDocumentation.jsx): `src/ProjectDocumentation.jsx`
- [Planning content](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/src/project-data.js): `src/project-data.js`
- [Original project PDF](https://github.com/davidmtz29122006-droid/bellaboutique/blob/main/documents/Bella_Boutique_Documento_Corregido.pdf): `documents/Bella_Boutique_Documento_Corregido.pdf`

### Other components

- **Store staff**
- **Catalog visitor**

## Connections

- Store staff → Staff workspace: uses (evidence: `README.md`)
- Staff workspace → POS API: requests data (evidence: `src/App.jsx`)
- POS API → Operational database: reads and writes (evidence: `server/index.js`)
- POS API → Authentication and roles: checks sessions (evidence: `server/index.js`)
- Catalog visitor → Public catalog: browses (evidence: `README.md`)
- Staff workspace → Project documentation: opens (evidence: `README.md`)
- Project documentation → Planning content: renders (evidence: `src/ProjectDocumentation.jsx`)
- Project documentation → Original project PDF: links to (evidence: `src/ProjectDocumentation.jsx`)
- Project documentation → POS API: requests PDF (evidence: `src/ProjectDocumentation.jsx`)
