# ahmed7assan1/coffee-management-system-vue architecture

> Architecture diagram of the GitHub repository ahmed7assan1/coffee-management-system-vue, 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/ahmed7assan1/coffee-management-system-vue
- Repository: https://github.com/ahmed7assan1/coffee-management-system-vue

## Overview

Abo7assan Coffee Shop is a Vue coffee catalog with product browsing, filtering, detail pages, and authenticated menu management. The user enters through the app shell and router; product views fetch coffee records from a local JSON API, while login state is persisted in browser storage. The README provides no architectural detail, so the graph relies on the supplied source excerpts and SOURCE INDEX; the API’s implementation is not included in the tree.

Main entry points: [`final_project/src/router/index.js`](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/router/index.js) (Route handling), [`final_project/src/stores/auth.js`](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/stores/auth.js) (Authentication state), [`final_project/src/main.js`](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/main.js) (App bootstrap), [`final_project/src/App.vue`](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/App.vue) (App shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_main["App bootstrap<br/>[main.js]"]
  node_app["App shell<br/>[App.vue]"]
end

subgraph group_navigation["Navigation and access"]
  node_navbar["Navigation bar<br/>[Navbar.vue]"]
  node_login["Login form<br/>[Login.vue]"]
  node_router["Route handling<br/>[index.js]"]
end

subgraph group_catalog["Coffee catalog"]
  node_home["Home page<br/>[Home.vue]"]
  node_products["Product listing<br/>[Products.vue]"]
  node_details["Product details<br/>[ProductDetails.vue]"]
  node_crud["Menu editor<br/>[CRUD.vue]"]
  node_notfound["Not found page<br/>[NotFound.vue]"]
end

subgraph group_persistence["State and API"]
  node_auth["Authentication state<br/>[auth.js]"]
  node_browserstore[("Browser local storage")]
  node_api["Coffee JSON API"]
end

node_user(("Shop user"))

node_user -->|"opens app"| node_main
node_main -->|"mounts"| node_app
node_main -->|"installs"| node_router
node_app -->|"renders"| node_navbar
node_app -->|"hosts routed views"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_products
node_router -->|"routes to"| node_details
node_router -->|"routes to"| node_crud
node_router -->|"routes to"| node_notfound
node_router -->|"routes to"| node_login
node_router -->|"checks access"| node_auth
node_login -->|"updates login"| node_auth
node_navbar -->|"reads and clears"| node_auth
node_auth -->|"reads and writes"| node_browserstore
node_products -->|"checks login"| node_auth
node_products -->|"fetches and deletes"| node_api
node_details -->|"fetches record"| node_api
node_crud -->|"loads and saves"| node_api

click node_main "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/main.js"
click node_app "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/App.vue"
click node_home "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/Home.vue"
click node_products "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/Products.vue"
click node_details "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/ProductDetails.vue"
click node_crud "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/CRUD.vue"
click node_notfound "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/NotFound.vue"
click node_navbar "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/components/Navbar.vue"
click node_login "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/components/Login.vue"
click node_router "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/router/index.js"
click node_auth "https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/stores/auth.js"

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_main,node_app,node_user toneBlue
class node_navbar,node_login,node_router toneAmber
class node_home,node_products,node_details,node_crud,node_notfound toneMint
class node_auth,node_browserstore,node_api toneRose
```

## Components

### Application shell

- [App bootstrap](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/main.js): `final_project/src/main.js`
- [App shell](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/App.vue): `final_project/src/App.vue`

### Navigation and access

- [Navigation bar](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/components/Navbar.vue): `final_project/src/components/Navbar.vue`
- [Login form](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/components/Login.vue): `final_project/src/components/Login.vue`
- [Route handling](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/router/index.js): `final_project/src/router/index.js`

### Coffee catalog

- [Home page](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/Home.vue): `final_project/src/views/Home.vue`
- [Product listing](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/Products.vue): `final_project/src/views/Products.vue`
- [Product details](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/ProductDetails.vue): `final_project/src/views/ProductDetails.vue`
- [Menu editor](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/CRUD.vue): `final_project/src/views/CRUD.vue`
- [Not found page](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/views/NotFound.vue): `final_project/src/views/NotFound.vue`

### State and API

- [Authentication state](https://github.com/ahmed7assan1/coffee-management-system-vue/blob/main/final_project/src/stores/auth.js): `final_project/src/stores/auth.js`
- **Browser local storage**
- **Coffee JSON API**

### Other components

- **Shop user**

## Connections

- Shop user → App bootstrap: opens app
- App bootstrap → App shell: mounts (evidence: `final_project/src/main.js`)
- App bootstrap → Route handling: installs (evidence: `final_project/src/main.js`)
- App shell → Navigation bar: renders (evidence: `final_project/src/App.vue`)
- App shell → Route handling: hosts routed views (evidence: `final_project/src/App.vue`)
- Route handling → Home page: routes to (evidence: `final_project/src/router/index.js`)
- Route handling → Product listing: routes to (evidence: `final_project/src/router/index.js`)
- Route handling → Product details: routes to (evidence: `final_project/src/router/index.js`)
- Route handling → Menu editor: routes to (evidence: `final_project/src/router/index.js`)
- Route handling → Not found page: routes to (evidence: `final_project/src/router/index.js`)
- Route handling → Login form: routes to (evidence: `final_project/src/router/index.js`)
- Route handling → Authentication state: checks access (evidence: `final_project/src/router/index.js`)
- Login form → Authentication state: updates login (evidence: `final_project/src/components/Login.vue`)
- Navigation bar → Authentication state: reads and clears (evidence: `final_project/src/components/Navbar.vue`)
- Authentication state → Browser local storage: reads and writes (evidence: `final_project/src/stores/auth.js`)
- Product listing → Authentication state: checks login (evidence: `final_project/src/views/Products.vue`)
- Product listing → Coffee JSON API: fetches and deletes (evidence: `final_project/src/views/Products.vue`)
- Product details → Coffee JSON API: fetches record (evidence: `final_project/src/views/ProductDetails.vue`)
- Menu editor → Coffee JSON API: loads and saves (evidence: `final_project/src/views/CRUD.vue`)
