# maram0103/glow_skin_front architecture

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

- Interactive diagram: https://gitdiagram.com/maram0103/glow_skin_front
- Repository: https://github.com/maram0103/glow_skin_front

## Overview

GlowSkin is an Angular storefront and order-management frontend. Shoppers browse and search products, inspect details, manage a cart, and proceed through order creation; staff use role-specific preparation, delivery, and administration screens. The frontend delegates catalog, account, and order operations to an external API, while authentication state is stored locally. Routes and the admin component are excerpted; several other component-to-service relationships are supported only by the source index, so those links are marked unverified rather than asserted as confirmed calls.

Main entry points: [`src/app/app.routes.ts`](https://github.com/maram0103/glow_skin_front/blob/main/src/app/app.routes.ts) (Route registry), [`src/app/services/auth-service.ts`](https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/auth-service.ts) (Authentication service), [`src/app/components/admin/admin.ts`](https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/admin/admin.ts) (Admin console), [`src/app/services/produit-service.ts`](https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/produit-service.ts) (Product service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_routes["Route registry<br/>[app.routes.ts]"]
  node_navbar["Navigation and search<br/>[navbar.ts]"]
  node_catalogue["Product catalogue<br/>[catalogue.ts]"]
  node_detail["Product detail<br/>[produit-detail.ts]"]
  node_cart["Shopping cart<br/>[panier.ts]"]
  node_login["Sign in<br/>[login.ts]"]
  node_register["Registration<br/>[register.ts]"]
  node_guard["Role guard<br/>[auth-guard.ts]"]
end

subgraph group_fulfillment["Order fulfillment"]
  node_prep["Preparation dashboard"]
  node_delivery["Delivery dashboard"]
end

subgraph group_management["Administration"]
  node_admin["Admin console<br/>[admin.ts]"]
end

subgraph group_domain["Domain and services"]
  node_auth["Authentication service<br/>[auth-service.ts]"]
  node_products["Product service<br/>[produit-service.ts]"]
  node_categories["Category service"]
  node_orders["Order service"]
  node_cartstate["Cart state<br/>[panier-service.ts]"]
  node_users["User service<br/>[user-service.ts]"]
  node_models["Domain models"]
  node_environment["API configuration<br/>[environment.ts]"]
end

node_shopper(("Shopper"))
node_api{{"Backend API"}}
node_localstorage[("Browser local storage")]

node_shopper -->|"opens app"| node_routes
node_routes -->|"routes to"| node_catalogue
node_routes -->|"routes to"| node_detail
node_routes -->|"routes to"| node_cart
node_routes -->|"routes to"| node_login
node_routes -->|"routes to"| node_register
node_routes -->|"routes to"| node_prep
node_routes -->|"routes to"| node_delivery
node_routes -->|"routes to"| node_admin
node_routes -->|"guards with"| node_guard
node_navbar -->|"searches"| node_products
node_navbar -->|"adds dropped items"| node_cartstate
node_navbar -->|"checks session"| node_auth
node_login -->|"authenticates"| node_auth
node_register -->|"registers with"| node_auth
node_guard -.->|"checks role"| node_auth
node_auth -->|"reads and writes"| node_localstorage
node_admin -->|"loads and updates"| node_orders
node_admin -->|"manages products"| node_products
node_admin -->|"manages categories"| node_categories
node_admin -->|"manages personnel"| node_users
node_admin -->|"logs out through"| node_auth
node_catalogue -.->|"loads products"| node_products
node_catalogue -.->|"loads categories"| node_categories
node_catalogue -.->|"adds items"| node_cartstate
node_detail -.->|"loads product"| node_products
node_detail -.->|"adds item"| node_cartstate
node_cart -.->|"uses cart"| node_cartstate
node_cart -.->|"creates order"| node_orders
node_cart -.->|"checks account"| node_auth
node_prep -.->|"handles preparation"| node_orders
node_delivery -.->|"handles delivery"| node_orders
node_products -->|"requests products"| node_api
node_orders -->|"requests orders"| node_api
node_auth -->|"auth requests"| node_api
node_categories -.->|"category requests"| node_api
node_users -.->|"user requests"| node_api
node_products -->|"uses API config"| node_environment
node_orders -->|"uses API config"| node_environment
node_auth -->|"uses API config"| node_environment
node_categories -.->|"uses API config"| node_environment
node_users -.->|"uses API config"| node_environment

click node_routes "https://github.com/maram0103/glow_skin_front/blob/main/src/app/app.routes.ts"
click node_navbar "https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/navbar/navbar.ts"
click node_catalogue "https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/produits/catalogue/catalogue.ts"
click node_detail "https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/produits/produit-detail/produit-detail.ts"
click node_cart "https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/panier/panier.ts"
click node_login "https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/login/login.ts"
click node_register "https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/register/register.ts"
click node_guard "https://github.com/maram0103/glow_skin_front/blob/main/src/app/Gaurds/auth-guard.ts"
click node_prep "https://github.com/maram0103/glow_skin_front/blob/main/src/app/dashboards/preparateur-dashboard/preparateur-dashboard.ts"
click node_delivery "https://github.com/maram0103/glow_skin_front/blob/main/src/app/dashboards/livreur-dashboard/livreur-dashboard.ts"
click node_admin "https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/admin/admin.ts"
click node_auth "https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/auth-service.ts"
click node_products "https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/produit-service.ts"
click node_categories "https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/categorie-service.ts"
click node_orders "https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/commande-service.ts"
click node_cartstate "https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/panier-service.ts"
click node_users "https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/user-service.ts"
click node_models "https://github.com/maram0103/glow_skin_front/tree/main/src/app/models"
click node_environment "https://github.com/maram0103/glow_skin_front/blob/main/src/app/environments/environment.ts"

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_routes,node_navbar,node_catalogue,node_detail,node_cart,node_login,node_register,node_guard toneBlue
class node_prep,node_delivery,node_localstorage toneAmber
class node_admin,node_api toneMint
class node_auth,node_products,node_categories,node_orders,node_cartstate,node_users,node_models,node_environment toneRose
class node_shopper toneIndigo
```

## Components

### Storefront

- [Route registry](https://github.com/maram0103/glow_skin_front/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Navigation and search](https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/navbar/navbar.ts): `src/app/components/navbar/navbar.ts`
- [Product catalogue](https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/produits/catalogue/catalogue.ts): `src/app/components/produits/catalogue/catalogue.ts`
- [Product detail](https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/produits/produit-detail/produit-detail.ts): `src/app/components/produits/produit-detail/produit-detail.ts`
- [Shopping cart](https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/panier/panier.ts): `src/app/components/panier/panier.ts`
- [Sign in](https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/login/login.ts): `src/app/components/login/login.ts`
- [Registration](https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/register/register.ts): `src/app/components/register/register.ts`
- [Role guard](https://github.com/maram0103/glow_skin_front/blob/main/src/app/Gaurds/auth-guard.ts): `src/app/Gaurds/auth-guard.ts`

### Order fulfillment

- [Preparation dashboard](https://github.com/maram0103/glow_skin_front/blob/main/src/app/dashboards/preparateur-dashboard/preparateur-dashboard.ts): `src/app/dashboards/preparateur-dashboard/preparateur-dashboard.ts`
- [Delivery dashboard](https://github.com/maram0103/glow_skin_front/blob/main/src/app/dashboards/livreur-dashboard/livreur-dashboard.ts): `src/app/dashboards/livreur-dashboard/livreur-dashboard.ts`

### Administration

- [Admin console](https://github.com/maram0103/glow_skin_front/blob/main/src/app/components/admin/admin.ts): `src/app/components/admin/admin.ts`

### Domain and services

- [Authentication service](https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/auth-service.ts): `src/app/services/auth-service.ts`
- [Product service](https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/produit-service.ts): `src/app/services/produit-service.ts`
- [Category service](https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/categorie-service.ts): `src/app/services/categorie-service.ts`
- [Order service](https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/commande-service.ts): `src/app/services/commande-service.ts`
- [Cart state](https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/panier-service.ts): `src/app/services/panier-service.ts`
- [User service](https://github.com/maram0103/glow_skin_front/blob/main/src/app/services/user-service.ts): `src/app/services/user-service.ts`
- [Domain models](https://github.com/maram0103/glow_skin_front/tree/main/src/app/models): `src/app/models`
- [API configuration](https://github.com/maram0103/glow_skin_front/blob/main/src/app/environments/environment.ts): `src/app/environments/environment.ts`

### Other components

- **Shopper**
- **Backend API**
- **Browser local storage**

## Connections

- Shopper → Route registry: opens app (evidence: `src/app/app.routes.ts`)
- Route registry → Product catalogue: routes to (evidence: `src/app/app.routes.ts`)
- Route registry → Product detail: routes to (evidence: `src/app/app.routes.ts`)
- Route registry → Shopping cart: routes to (evidence: `src/app/app.routes.ts`)
- Route registry → Sign in: routes to (evidence: `src/app/app.routes.ts`)
- Route registry → Registration: routes to (evidence: `src/app/app.routes.ts`)
- Route registry → Preparation dashboard: routes to (evidence: `src/app/app.routes.ts`)
- Route registry → Delivery dashboard: routes to (evidence: `src/app/app.routes.ts`)
- Route registry → Admin console: routes to (evidence: `src/app/app.routes.ts`)
- Route registry → Role guard: guards with (evidence: `src/app/app.routes.ts`)
- Navigation and search → Product service: searches (evidence: `src/app/components/navbar/navbar.ts`)
- Navigation and search → Cart state: adds dropped items (evidence: `src/app/components/navbar/navbar.ts`)
- Navigation and search → Authentication service: checks session (evidence: `src/app/components/navbar/navbar.ts`)
- Sign in → Authentication service: authenticates (evidence: `src/app/components/login/login.ts`)
- Registration → Authentication service: registers with (evidence: `src/app/components/register/register.ts`)
- Role guard → Authentication service: checks role
- Authentication service → Browser local storage: reads and writes (evidence: `src/app/services/auth-service.ts`)
- Admin console → Order service: loads and updates (evidence: `src/app/components/admin/admin.ts`)
- Admin console → Product service: manages products (evidence: `src/app/components/admin/admin.ts`)
- Admin console → Category service: manages categories (evidence: `src/app/components/admin/admin.ts`)
- Admin console → User service: manages personnel (evidence: `src/app/components/admin/admin.ts`)
- Admin console → Authentication service: logs out through (evidence: `src/app/components/admin/admin.ts`)
- Product catalogue → Product service: loads products (evidence: `src/app/components/produits/catalogue/catalogue.ts`)
- Product catalogue → Category service: loads categories (evidence: `src/app/components/produits/catalogue/catalogue.ts`)
- Product catalogue → Cart state: adds items (evidence: `src/app/components/produits/catalogue/catalogue.ts`)
- Product detail → Product service: loads product (evidence: `src/app/components/produits/produit-detail/produit-detail.ts`)
- Product detail → Cart state: adds item (evidence: `src/app/components/produits/produit-detail/produit-detail.ts`)
- Shopping cart → Cart state: uses cart (evidence: `src/app/components/panier/panier.ts`)
- Shopping cart → Order service: creates order (evidence: `src/app/components/panier/panier.ts`)
- Shopping cart → Authentication service: checks account (evidence: `src/app/components/panier/panier.ts`)
- Preparation dashboard → Order service: handles preparation (evidence: `src/app/dashboards/preparateur-dashboard/preparateur-dashboard.ts`)
- Delivery dashboard → Order service: handles delivery (evidence: `src/app/dashboards/livreur-dashboard/livreur-dashboard.ts`)
- Product service → Backend API: requests products (evidence: `src/app/services/produit-service.ts`)
- Order service → Backend API: requests orders (evidence: `src/app/services/commande-service.ts`)
- Authentication service → Backend API: auth requests (evidence: `src/app/services/auth-service.ts`)
- Category service → Backend API: category requests
- User service → Backend API: user requests
- Product service → API configuration: uses API config (evidence: `src/app/services/produit-service.ts`)
- Order service → API configuration: uses API config (evidence: `src/app/services/commande-service.ts`)
- Authentication service → API configuration: uses API config (evidence: `src/app/services/auth-service.ts`)
- Category service → API configuration: uses API config (evidence: `src/app/services/categorie-service.ts`)
- User service → API configuration: uses API config (evidence: `src/app/services/user-service.ts`)
