# aymen-hammami/potterymodel-master architecture

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

- Interactive diagram: https://gitdiagram.com/aymen-hammami/potterymodel-master
- Repository: https://github.com/aymen-hammami/potterymodel-master

## Overview

PotteryModel is a Vue pottery storefront and customization app. Users enter through welcome and authentication, then reach a home hub to draw a custom pottery model or browse products; custom dimensions proceed to a priced order form, while catalog items have separate purchase forms. Firebase provides authentication, and purchase forms submit through FormSubmit or EmailJS. Routing relationships are explicit in the router; only shown form submissions and Firebase usage are included, with no inferred persistence of models or orders.

Main entry points: [`PotteryModel-master/src/router/index.js`](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/router/index.js) (Route dispatch), [`PotteryModel-master/src/views/ShopView.vue`](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopView.vue) (Product catalog), [`PotteryModel-master/src/views/HomeView.vue`](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/HomeView.vue) (Home hub), [`PotteryModel-master/src/views/WelcomeView.vue`](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/WelcomeView.vue) (Welcome)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_app["Vue app shell<br/>[App.vue]"]
  node_router["Route dispatch<br/>[index.js]"]
  node_welcome["Welcome<br/>[WelcomeView.vue]"]
  node_home["Home hub<br/>[HomeView.vue]"]
end

subgraph group_identity["Account access"]
  node_firebase[("Firebase Auth")]
  node_login["Login<br/>[LoginView.vue]"]
  node_register["Registration<br/>[RegisterView.vue]"]
end

subgraph group_custom["Custom pottery"]
  node_model["Model drawing<br/>[ModelPottery.vue]"]
  node_dimensions["Model details<br/>[AboutView.vue]"]
  node_customorder["Custom order<br/>[PassCommande.vue]"]
  node_formsubmit["FormSubmit service"]
end

subgraph group_store["Product store"]
  node_catalog["Product catalog<br/>[ShopView.vue]"]
  node_tajine["Tajine purchase<br/>[ShopCommand1.vue]"]
  node_vase["Vase purchase<br/>[ShopCommand2.vue]"]
  node_bin["Bin purchase<br/>[ShopCommand3.vue]"]
  node_bowls["Bowl purchase<br/>[ShopCommand4.vue]"]
  node_emailjs["EmailJS service"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_welcome
node_app -->|"renders routes"| node_router
node_app -->|"checks session"| node_firebase
node_router -->|"routes to"| node_welcome
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_login
node_router -->|"routes to"| node_register
node_welcome -->|"starts sign-in"| node_login
node_home -->|"signs out"| node_firebase
node_home -->|"opens editor"| node_model
node_home -->|"opens store"| node_catalog
node_router -->|"routes to"| node_model
node_router -->|"routes to"| node_dimensions
node_router -->|"routes to"| node_customorder
node_model -->|"continues to"| node_dimensions
node_dimensions -.->|"routes to"| node_customorder
node_customorder -->|"submits form"| node_formsubmit
node_router -->|"routes to"| node_catalog
node_catalog -->|"selects item"| node_tajine
node_catalog -->|"selects item"| node_vase
node_catalog -->|"selects item"| node_bin
node_catalog -->|"selects item"| node_bowls
node_router -->|"routes to"| node_tajine
node_router -->|"routes to"| node_vase
node_router -->|"routes to"| node_bin
node_router -->|"routes to"| node_bowls
node_vase -->|"sends purchase"| node_emailjs
node_bin -->|"sends purchase"| node_emailjs
node_bowls -->|"sends purchase"| node_emailjs
node_tajine -.->|"sends purchase"| node_emailjs

click node_app "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/App.vue"
click node_router "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/router/index.js"
click node_welcome "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/WelcomeView.vue"
click node_home "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/HomeView.vue"
click node_login "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/LoginView.vue"
click node_register "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/RegisterView.vue"
click node_model "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ModelPottery.vue"
click node_dimensions "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/AboutView.vue"
click node_customorder "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/PassCommande.vue"
click node_catalog "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopView.vue"
click node_tajine "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopCommand1.vue"
click node_vase "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopCommand2.vue"
click node_bin "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopCommand3.vue"
click node_bowls "https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopCommand4.vue"

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_app,node_router,node_welcome,node_home toneBlue
class node_firebase,node_login,node_register toneAmber
class node_model,node_dimensions,node_customorder,node_formsubmit toneMint
class node_catalog,node_tajine,node_vase,node_bin,node_bowls,node_emailjs toneRose
class node_visitor toneIndigo
```

## Components

### App navigation

- [Vue app shell](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/App.vue): `PotteryModel-master/src/App.vue`
- [Route dispatch](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/router/index.js): `PotteryModel-master/src/router/index.js`
- [Welcome](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/WelcomeView.vue): `PotteryModel-master/src/views/WelcomeView.vue`
- [Home hub](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/HomeView.vue): `PotteryModel-master/src/views/HomeView.vue`

### Account access

- **Firebase Auth**
- [Login](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/LoginView.vue): `PotteryModel-master/src/views/LoginView.vue`
- [Registration](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/RegisterView.vue): `PotteryModel-master/src/views/RegisterView.vue`

### Custom pottery

- [Model drawing](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ModelPottery.vue): `PotteryModel-master/src/views/ModelPottery.vue`
- [Model details](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/AboutView.vue): `PotteryModel-master/src/views/AboutView.vue`
- [Custom order](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/PassCommande.vue): `PotteryModel-master/src/views/PassCommande.vue`
- **FormSubmit service**

### Product store

- [Product catalog](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopView.vue): `PotteryModel-master/src/views/ShopView.vue`
- [Tajine purchase](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopCommand1.vue): `PotteryModel-master/src/views/ShopCommand1.vue`
- [Vase purchase](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopCommand2.vue): `PotteryModel-master/src/views/ShopCommand2.vue`
- [Bin purchase](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopCommand3.vue): `PotteryModel-master/src/views/ShopCommand3.vue`
- [Bowl purchase](https://github.com/aymen-hammami/potterymodel-master/blob/master/PotteryModel-master/src/views/ShopCommand4.vue): `PotteryModel-master/src/views/ShopCommand4.vue`
- **EmailJS service**

### Other components

- **Visitor**

## Connections

- Visitor → Welcome: opens
- Vue app shell → Route dispatch: renders routes (evidence: `PotteryModel-master/src/main.js`)
- Vue app shell → Firebase Auth: checks session (evidence: `PotteryModel-master/src/App.vue`)
- Route dispatch → Welcome: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Route dispatch → Home hub: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Route dispatch → Login: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Route dispatch → Registration: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Welcome → Login: starts sign-in (evidence: `PotteryModel-master/src/views/WelcomeView.vue`)
- Home hub → Firebase Auth: signs out (evidence: `PotteryModel-master/src/views/HomeView.vue`)
- Home hub → Model drawing: opens editor (evidence: `PotteryModel-master/src/router/index.js`)
- Home hub → Product catalog: opens store (evidence: `PotteryModel-master/src/router/index.js`)
- Route dispatch → Model drawing: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Route dispatch → Model details: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Route dispatch → Custom order: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Model drawing → Model details: continues to (evidence: `PotteryModel-master/src/views/ModelPottery.vue`)
- Model details → Custom order: routes to
- Custom order → FormSubmit service: submits form (evidence: `PotteryModel-master/src/views/PassCommande.vue`)
- Route dispatch → Product catalog: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Product catalog → Tajine purchase: selects item (evidence: `PotteryModel-master/src/views/ShopView.vue`)
- Product catalog → Vase purchase: selects item (evidence: `PotteryModel-master/src/views/ShopView.vue`)
- Product catalog → Bin purchase: selects item (evidence: `PotteryModel-master/src/views/ShopView.vue`)
- Product catalog → Bowl purchase: selects item (evidence: `PotteryModel-master/src/views/ShopView.vue`)
- Route dispatch → Tajine purchase: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Route dispatch → Vase purchase: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Route dispatch → Bin purchase: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Route dispatch → Bowl purchase: routes to (evidence: `PotteryModel-master/src/router/index.js`)
- Vase purchase → EmailJS service: sends purchase (evidence: `PotteryModel-master/src/views/ShopCommand2.vue`)
- Bin purchase → EmailJS service: sends purchase (evidence: `PotteryModel-master/src/views/ShopCommand3.vue`)
- Bowl purchase → EmailJS service: sends purchase (evidence: `PotteryModel-master/src/views/ShopCommand4.vue`)
- Tajine purchase → EmailJS service: sends purchase
