# houda-farrag/dashboard-dubizzle architecture

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

- Interactive diagram: https://gitdiagram.com/houda-farrag/dashboard-dubizzle
- Repository: https://github.com/houda-farrag/dashboard-dubizzle

## Overview

ProjectTest is an Angular administration dashboard for an online marketplace: administrators sign in, navigate protected dashboard pages, inspect users and listings, and manage marketplace data. Its main flow is route dispatch into page components, which use services to request categories, subcategories, products, users, and admin data from a backend; the home dashboard also computes counts and a top seller and presents charts. The README describes only a generated Angular project. Edges are limited to explicit route wiring and calls visible in sampled source; many page-to-service relationships are not shown in excerpts.

Main entry points: [`src/app/app.routes.ts`](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/app.routes.ts) (Route Dispatch), [`src/Pages/home/home.component.ts`](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/home/home.component.ts) (Dashboard Page), [`src/Services/Products/products.service.ts`](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Products/products.service.ts) (Product Service), [`src/Services/Sub-Categories/sub-categories-service.service.ts`](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Sub-Categories/sub-categories-service.service.ts) (Subcategory Service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_router["Route Dispatch<br/>[app.routes.ts]"]
  node_shell["App Shell<br/>[app.component.ts]"]
  node_contracts["Domain Contracts<br/>[iproduct.ts]"]
end

subgraph group_access["Access Control"]
  node_guard["Auth Guard<br/>[auth.guard.ts]"]
  node_signin["Sign In"]
  node_adminservice["Admin Service<br/>[admin.service.ts]"]
end

subgraph group_catalog["Marketplace Catalog"]
  node_categories["Categories Page"]
  node_categoryservice["Category Service"]
  node_subcategories["Subcategory Pages"]
  node_subcategorydetails["Subcategory Details"]
  node_subcategoryservice["Subcategory Service"]
  node_products["Product Listing"]
  node_productdetails["Product Details"]
  node_productupdate["Product Update"]
  node_properties["Property Listings"]
  node_productservice["Product Service"]
  node_subcard["Subcategory Card"]
end

subgraph group_people["People Administration"]
  node_users["User Listing<br/>[users.component.ts]"]
  node_userdetails["User Details"]
  node_userupdate["User Update"]
  node_profile["Admin Profile"]
  node_team["Admin Team<br/>[team.component.ts]"]
  node_userservice["User Service<br/>[users.service.ts]"]
end

subgraph group_insights["Dashboard Insights"]
  node_home["Dashboard Page<br/>[home.component.ts]"]
  node_charts["Category Charts"]
  node_productcharts["Product Charts"]
  node_charts3d["3D Charts"]
  node_usercharts["User Charts"]
end

node_admin(("Administrator"))
node_backend{{"Marketplace API"}}

node_admin -->|"navigates"| node_router
node_router -->|"routes to"| node_home
node_router -->|"routes to"| node_users
node_router -->|"routes to"| node_categories
node_router -->|"routes to"| node_subcategories
node_router -->|"routes to"| node_properties
node_router -->|"routes to"| node_products
node_router -->|"routes to"| node_productdetails
node_router -->|"routes to"| node_userdetails
node_router -->|"routes to"| node_productupdate
node_router -->|"routes to"| node_team
node_router -->|"routes to"| node_profile
node_router -->|"routes to"| node_subcategorydetails
node_router -->|"routes to"| node_signin
node_router -->|"guards routes"| node_guard
node_shell -->|"checks session"| node_adminservice
node_shell -->|"navigates"| node_router
node_home -->|"fetches users"| node_userservice
node_home -->|"fetches categories"| node_categoryservice
node_home -->|"fetches subcategories"| node_subcategoryservice
node_home -->|"fetches products"| node_productservice
node_home -->|"renders"| node_charts
node_home -->|"renders"| node_productcharts
node_home -->|"renders"| node_charts3d
node_productservice -->|"loads subcategories"| node_subcategoryservice
node_adminservice -->|"HTTP requests"| node_backend
node_userservice -->|"HTTP requests"| node_backend
node_categoryservice -->|"HTTP requests"| node_backend
node_subcategoryservice -->|"HTTP requests"| node_backend
node_productservice -->|"HTTP requests"| node_backend

click node_router "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/app.routes.ts"
click node_shell "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/app.component.ts"
click node_guard "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Guards/auth.guard.ts"
click node_signin "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/sign-in/sign-in.component.ts"
click node_adminservice "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Admin/admin.service.ts"
click node_home "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/home/home.component.ts"
click node_charts "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/charts-component/charts-component.component.ts"
click node_productcharts "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/product-charts/product-charts.component.ts"
click node_charts3d "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/charts3-d/charts3-d.component.ts"
click node_usercharts "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/user-charts/user-charts.component.ts"
click node_categories "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/category/category.component.ts"
click node_categoryservice "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Categories/categories-service.service.ts"
click node_subcategories "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/sub-category/sub-category.component.ts"
click node_subcategorydetails "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/sub-category-details/sub-category-details.component.ts"
click node_subcategoryservice "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Sub-Categories/sub-categories-service.service.ts"
click node_products "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/products/products.component.ts"
click node_productdetails "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/product-details/product-details.component.ts"
click node_productupdate "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/update-product/update-product.component.ts"
click node_properties "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/properties/properties.component.ts"
click node_productservice "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Products/products.service.ts"
click node_subcard "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/sub-cate-card/sub-cate-card.component.ts"
click node_users "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/users/users.component.ts"
click node_userdetails "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/user-details/user-details.component.ts"
click node_userupdate "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/update-user/update-user.component.ts"
click node_profile "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/profile/profile.component.ts"
click node_team "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/team/team.component.ts"
click node_userservice "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/UserService/users.service.ts"
click node_contracts "https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Models/iproduct.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_router,node_shell,node_contracts toneBlue
class node_guard,node_signin,node_adminservice toneAmber
class node_categories,node_categoryservice,node_subcategories,node_subcategorydetails,node_subcategoryservice,node_products,node_productdetails,node_productupdate,node_properties,node_productservice,node_subcard,node_backend toneMint
class node_users,node_userdetails,node_userupdate,node_profile,node_team,node_userservice toneRose
class node_home,node_charts,node_productcharts,node_charts3d,node_usercharts,node_admin toneIndigo
```

## Components

### Application Shell

- [Route Dispatch](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [App Shell](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/app.component.ts): `src/app/app.component.ts`
- [Domain Contracts](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Models/iproduct.ts): `src/app/Models/iproduct.ts`

### Access Control

- [Auth Guard](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Guards/auth.guard.ts): `src/app/Guards/auth.guard.ts`
- [Sign In](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/sign-in/sign-in.component.ts): `src/Pages/sign-in/sign-in.component.ts`
- [Admin Service](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Admin/admin.service.ts): `src/Services/Admin/admin.service.ts`

### Marketplace Catalog

- [Categories Page](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/category/category.component.ts): `src/Pages/category/category.component.ts`
- [Category Service](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Categories/categories-service.service.ts): `src/Services/Categories/categories-service.service.ts`
- [Subcategory Pages](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/sub-category/sub-category.component.ts): `src/Pages/sub-category/sub-category.component.ts`
- [Subcategory Details](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/sub-category-details/sub-category-details.component.ts): `src/Pages/sub-category-details/sub-category-details.component.ts`
- [Subcategory Service](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Sub-Categories/sub-categories-service.service.ts): `src/Services/Sub-Categories/sub-categories-service.service.ts`
- [Product Listing](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/products/products.component.ts): `src/Pages/products/products.component.ts`
- [Product Details](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/product-details/product-details.component.ts): `src/Pages/product-details/product-details.component.ts`
- [Product Update](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/update-product/update-product.component.ts): `src/Pages/update-product/update-product.component.ts`
- [Property Listings](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/properties/properties.component.ts): `src/Pages/properties/properties.component.ts`
- [Product Service](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/Products/products.service.ts): `src/Services/Products/products.service.ts`
- [Subcategory Card](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/sub-cate-card/sub-cate-card.component.ts): `src/app/Components/sub-cate-card/sub-cate-card.component.ts`

### People Administration

- [User Listing](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/users/users.component.ts): `src/Pages/users/users.component.ts`
- [User Details](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/user-details/user-details.component.ts): `src/Pages/user-details/user-details.component.ts`
- [User Update](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/update-user/update-user.component.ts): `src/Pages/update-user/update-user.component.ts`
- [Admin Profile](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/profile/profile.component.ts): `src/Pages/profile/profile.component.ts`
- [Admin Team](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/team/team.component.ts): `src/Pages/team/team.component.ts`
- [User Service](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Services/UserService/users.service.ts): `src/Services/UserService/users.service.ts`

### Dashboard Insights

- [Dashboard Page](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/Pages/home/home.component.ts): `src/Pages/home/home.component.ts`
- [Category Charts](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/charts-component/charts-component.component.ts): `src/app/Components/charts-component/charts-component.component.ts`
- [Product Charts](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/product-charts/product-charts.component.ts): `src/app/Components/product-charts/product-charts.component.ts`
- [3D Charts](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/charts3-d/charts3-d.component.ts): `src/app/Components/charts3-d/charts3-d.component.ts`
- [User Charts](https://github.com/houda-farrag/dashboard-dubizzle/blob/main/src/app/Components/user-charts/user-charts.component.ts): `src/app/Components/user-charts/user-charts.component.ts`

### Other components

- **Administrator**
- **Marketplace API**

## Connections

- Administrator → Route Dispatch: navigates (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Dashboard Page: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → User Listing: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Categories Page: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Subcategory Pages: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Property Listings: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Product Listing: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Product Details: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → User Details: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Product Update: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Admin Team: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Admin Profile: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Subcategory Details: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Sign In: routes to (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Auth Guard: guards routes (evidence: `src/app/app.routes.ts`)
- App Shell → Admin Service: checks session (evidence: `src/app/app.component.ts`)
- App Shell → Route Dispatch: navigates (evidence: `src/app/app.component.ts`)
- Dashboard Page → User Service: fetches users (evidence: `src/Pages/home/home.component.ts`)
- Dashboard Page → Category Service: fetches categories (evidence: `src/Pages/home/home.component.ts`)
- Dashboard Page → Subcategory Service: fetches subcategories (evidence: `src/Pages/home/home.component.ts`)
- Dashboard Page → Product Service: fetches products (evidence: `src/Pages/home/home.component.ts`)
- Dashboard Page → Category Charts: renders (evidence: `src/Pages/home/home.component.ts`)
- Dashboard Page → Product Charts: renders (evidence: `src/Pages/home/home.component.ts`)
- Dashboard Page → 3D Charts: renders (evidence: `src/Pages/home/home.component.ts`)
- Product Service → Subcategory Service: loads subcategories (evidence: `src/Services/Products/products.service.ts`)
- Admin Service → Marketplace API: HTTP requests (evidence: `src/Services/Admin/admin.service.ts`)
- User Service → Marketplace API: HTTP requests (evidence: `src/Services/UserService/users.service.ts`)
- Category Service → Marketplace API: HTTP requests (evidence: `src/Services/Categories/categories-service.service.ts`)
- Subcategory Service → Marketplace API: HTTP requests (evidence: `src/Services/Sub-Categories/sub-categories-service.service.ts`)
- Product Service → Marketplace API: HTTP requests (evidence: `src/Services/Products/products.service.ts`)
