# angeljunebayarcal-pixel/silkmart architecture

> Architecture diagram of the GitHub repository angeljunebayarcal-pixel/silkmart, 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/angeljunebayarcal-pixel/silkmart
- Repository: https://github.com/angeljunebayarcal-pixel/silkmart

## Overview

SilkOrderSystem is an Angular storefront and operations portal for silk products. Customers authenticate, browse published stock, place and track orders, manage profiles, and receive order notifications; staff manage inventory and products, process orders and delivery, and handle visits and job applications. Routing separates customer and administrator workspaces, while services encapsulate authentication, profiles, orders, chat, visits, and applications. The README only describes Angular tooling; feature scope is inferred from the route map, source index, and sampled excerpts, so unsampled interactions are omitted.

Main entry points: [`src/app/app.routes.ts`](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/app.routes.ts) (Route map), [`src/app/services/order.serv.ts`](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/order.serv.ts) (Order service), [`src/app/component/auth/login/login.ts`](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/auth/login/login.ts) (Login and registration), [`src/app/services/user.serv.ts`](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/user.serv.ts) (Profile service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_app["Angular app<br/>[app.ts]"]
  node_routes["Route map<br/>[app.routes.ts]"]
end

subgraph group_customer["Customer commerce"]
  node_login["Login and registration<br/>[login.ts]"]
  node_cust_home["Customer workspace<br/>[home-cust.ts]"]
  node_shop["Product browsing<br/>[shopsilk.ts]"]
  node_cart["Cart and checkout<br/>[add2cart.ts]"]
  node_orders["Customer orders<br/>[order.ts]"]
  node_cust_profile["Customer profile<br/>[profile-cust.ts]"]
  node_cust_notif["Customer notifications<br/>[notif-cust.ts]"]
  node_cust_topbar["Customer navigation<br/>[topbar-cust.ts]"]
  node_tracking["Visit tracking<br/>[track-visit.ts]"]
  node_app_tracking["Application tracking<br/>[track-jobapp.ts]"]
end

subgraph group_admin["Staff operations"]
  node_adm_home["Staff workspace<br/>[home-adm.ts]"]
  node_inventory["Inventory management<br/>[inventory.ts]"]
  node_products["Product listings<br/>[products.ts]"]
  node_cust_orders["Order processing<br/>[cust-order.ts]"]
  node_delivery["Delivery operations<br/>[delivery.ts]"]
  node_adm_notif["Staff notifications<br/>[notf-adm.ts]"]
  node_adm_profile["Staff profile<br/>[profile-adm.ts]"]
  node_staff_approval["Staff approval<br/>[stf-aprv.ts]"]
  node_visit["Visit management<br/>[visit.ts]"]
  node_jobapp["Job applications<br/>[jobapp.ts]"]
  node_adm_topbar["Staff navigation<br/>[topbar-adm.ts]"]
end

subgraph group_services["Domain services"]
  node_auth_service["Authentication service<br/>[auth.serv.ts]"]
  node_user_service["Profile service<br/>[user.serv.ts]"]
  node_order_service["Order service<br/>[order.serv.ts]"]
  node_chat_service["Order chat<br/>[order-chat.serv.ts]"]
  node_visit_service["Visit service<br/>[visit.serv.ts]"]
  node_job_service["Application service<br/>[jobbapp.serv.ts]"]
end

subgraph group_platform["Firebase platform"]
  node_config["Firebase setup<br/>[app.config.ts]"]
  node_firebase_auth{{"Firebase Authentication"}}
  node_firestore[("Cloud Firestore")]
  node_storage[("Firebase Storage")]
end

node_user(("User"))

node_user -->|"opens"| node_app
node_app -->|"hosts routes"| node_routes
node_routes -->|"routes to"| node_login
node_routes -->|"routes to"| node_cust_home
node_routes -->|"routes to"| node_shop
node_routes -->|"routes to"| node_cart
node_routes -->|"routes to"| node_orders
node_routes -->|"routes to"| node_cust_profile
node_routes -->|"routes to"| node_cust_notif
node_routes -->|"routes to"| node_adm_home
node_routes -->|"routes to"| node_inventory
node_routes -->|"routes to"| node_products
node_routes -->|"routes to"| node_cust_orders
node_routes -->|"routes to"| node_delivery
node_routes -->|"routes to"| node_adm_notif
node_routes -->|"routes to"| node_adm_profile
node_routes -->|"routes to"| node_staff_approval
node_routes -->|"routes to"| node_visit
node_routes -->|"routes to"| node_jobapp
node_routes -->|"routes to"| node_tracking
node_routes -->|"routes to"| node_app_tracking
node_login -->|"uses"| node_auth_service
node_login -->|"uses"| node_user_service
node_login -->|"uses"| node_visit_service
node_login -->|"uses"| node_job_service
node_shop -->|"uses"| node_auth_service
node_shop -->|"uses"| node_user_service
node_shop -->|"uses"| node_order_service
node_cust_profile -->|"uses"| node_auth_service
node_cust_profile -->|"uses"| node_user_service
node_cust_profile -->|"uses"| node_order_service
node_cart -->|"uses"| node_order_service
node_orders -->|"uses"| node_order_service
node_cust_notif -->|"uses"| node_order_service
node_cust_notif -->|"uses"| node_chat_service
node_cust_orders -->|"uses"| node_order_service
node_cust_orders -->|"uses"| node_chat_service
node_delivery -->|"uses"| node_order_service
node_adm_notif -->|"uses"| node_order_service
node_adm_notif -->|"uses"| node_chat_service
node_visit -->|"uses"| node_visit_service
node_jobapp -->|"uses"| node_job_service
node_tracking -->|"uses"| node_visit_service
node_app_tracking -->|"uses"| node_job_service
node_cust_topbar -->|"uses"| node_user_service
node_cust_topbar -->|"uses"| node_order_service
node_cust_topbar -->|"uses"| node_chat_service
node_adm_topbar -->|"uses"| node_user_service

click node_app "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/app.ts"
click node_routes "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/app.routes.ts"
click node_login "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/auth/login/login.ts"
click node_cust_home "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/home-cust/home-cust.ts"
click node_shop "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/shopsilk/shopsilk.ts"
click node_cart "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/add2cart/add2cart.ts"
click node_orders "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/order/order.ts"
click node_cust_profile "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/profile-cust/profile-cust.ts"
click node_cust_notif "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/notif-cust/notif-cust.ts"
click node_cust_topbar "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/home-cust/topbar-cust/topbar-cust.ts"
click node_adm_home "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/home-adm/home-adm.ts"
click node_inventory "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/inventory/inventory.ts"
click node_products "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/products/products.ts"
click node_cust_orders "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/cust-order/cust-order.ts"
click node_delivery "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/delivery/delivery.ts"
click node_adm_notif "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/notf-adm/notf-adm.ts"
click node_adm_profile "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/profile-adm/profile-adm.ts"
click node_staff_approval "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/stf-aprv/stf-aprv.ts"
click node_visit "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/visit/visit.ts"
click node_jobapp "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/jobapp/jobapp.ts"
click node_tracking "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/track-visit/track-visit.ts"
click node_app_tracking "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/track-jobapp/track-jobapp.ts"
click node_adm_topbar "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/home-adm/topbar-adm/topbar-adm.ts"
click node_auth_service "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/auth.serv.ts"
click node_user_service "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/user.serv.ts"
click node_order_service "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/order.serv.ts"
click node_chat_service "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/order-chat.serv.ts"
click node_visit_service "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/visit.serv.ts"
click node_job_service "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/jobbapp.serv.ts"
click node_config "https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/app.config.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_app,node_routes,node_user toneBlue
class node_login,node_cust_home,node_shop,node_cart,node_orders,node_cust_profile,node_cust_notif,node_cust_topbar,node_tracking,node_app_tracking toneAmber
class node_adm_home,node_inventory,node_products,node_cust_orders,node_delivery,node_adm_notif,node_adm_profile,node_staff_approval,node_visit,node_jobapp,node_adm_topbar toneMint
class node_auth_service,node_user_service,node_order_service,node_chat_service,node_visit_service,node_job_service toneRose
class node_config,node_firebase_auth,node_firestore,node_storage toneIndigo
```

## Components

### Application entry

- [Angular app](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/app.ts): `src/app/app.ts`
- [Route map](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`

### Customer commerce

- [Login and registration](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/auth/login/login.ts): `src/app/component/auth/login/login.ts`
- [Customer workspace](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/home-cust/home-cust.ts): `src/app/component/home-cust/home-cust.ts`
- [Product browsing](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/shopsilk/shopsilk.ts): `src/app/component/pages/shopsilk/shopsilk.ts`
- [Cart and checkout](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/add2cart/add2cart.ts): `src/app/component/pages/add2cart/add2cart.ts`
- [Customer orders](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/order/order.ts): `src/app/component/pages/order/order.ts`
- [Customer profile](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/profile-cust/profile-cust.ts): `src/app/component/pages/profile-cust/profile-cust.ts`
- [Customer notifications](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/notif-cust/notif-cust.ts): `src/app/component/pages/notif-cust/notif-cust.ts`
- [Customer navigation](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/home-cust/topbar-cust/topbar-cust.ts): `src/app/component/home-cust/topbar-cust/topbar-cust.ts`
- [Visit tracking](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/track-visit/track-visit.ts): `src/app/component/pages/track-visit/track-visit.ts`
- [Application tracking](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages/track-jobapp/track-jobapp.ts): `src/app/component/pages/track-jobapp/track-jobapp.ts`

### Staff operations

- [Staff workspace](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/home-adm/home-adm.ts): `src/app/component/home-adm/home-adm.ts`
- [Inventory management](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/inventory/inventory.ts): `src/app/component/pages-adm/inventory/inventory.ts`
- [Product listings](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/products/products.ts): `src/app/component/pages-adm/products/products.ts`
- [Order processing](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/cust-order/cust-order.ts): `src/app/component/pages-adm/cust-order/cust-order.ts`
- [Delivery operations](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/delivery/delivery.ts): `src/app/component/pages-adm/delivery/delivery.ts`
- [Staff notifications](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/notf-adm/notf-adm.ts): `src/app/component/pages-adm/notf-adm/notf-adm.ts`
- [Staff profile](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/profile-adm/profile-adm.ts): `src/app/component/pages-adm/profile-adm/profile-adm.ts`
- [Staff approval](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/stf-aprv/stf-aprv.ts): `src/app/component/pages-adm/stf-aprv/stf-aprv.ts`
- [Visit management](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/visit/visit.ts): `src/app/component/pages-adm/visit/visit.ts`
- [Job applications](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/pages-adm/jobapp/jobapp.ts): `src/app/component/pages-adm/jobapp/jobapp.ts`
- [Staff navigation](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/component/home-adm/topbar-adm/topbar-adm.ts): `src/app/component/home-adm/topbar-adm/topbar-adm.ts`

### Domain services

- [Authentication service](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/auth.serv.ts): `src/app/services/auth.serv.ts`
- [Profile service](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/user.serv.ts): `src/app/services/user.serv.ts`
- [Order service](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/order.serv.ts): `src/app/services/order.serv.ts`
- [Order chat](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/order-chat.serv.ts): `src/app/services/order-chat.serv.ts`
- [Visit service](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/visit.serv.ts): `src/app/services/visit.serv.ts`
- [Application service](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/services/jobbapp.serv.ts): `src/app/services/jobbapp.serv.ts`

### Firebase platform

- [Firebase setup](https://github.com/angeljunebayarcal-pixel/silkmart/blob/main/src/app/app.config.ts): `src/app/app.config.ts`
- **Firebase Authentication**
- **Cloud Firestore**
- **Firebase Storage**

### Other components

- **User**

## Connections

- User → Angular app: opens (evidence: `src/app/app.ts`)
- Angular app → Route map: hosts routes (evidence: `src/app/app.routes.ts`)
- Route map → Login and registration: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Customer workspace: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Product browsing: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Cart and checkout: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Customer orders: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Customer profile: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Customer notifications: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Staff workspace: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Inventory management: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Product listings: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Order processing: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Delivery operations: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Staff notifications: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Staff profile: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Staff approval: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Visit management: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Job applications: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Visit tracking: routes to (evidence: `src/app/app.routes.ts`)
- Route map → Application tracking: routes to (evidence: `src/app/app.routes.ts`)
- Login and registration → Authentication service: uses (evidence: `src/app/component/auth/login/login.ts`)
- Login and registration → Profile service: uses (evidence: `src/app/component/auth/login/login.ts`)
- Login and registration → Visit service: uses (evidence: `src/app/component/auth/login/login.ts`)
- Login and registration → Application service: uses (evidence: `src/app/component/auth/login/login.ts`)
- Product browsing → Authentication service: uses (evidence: `src/app/component/pages/shopsilk/shopsilk.ts`)
- Product browsing → Profile service: uses (evidence: `src/app/component/pages/shopsilk/shopsilk.ts`)
- Product browsing → Order service: uses (evidence: `src/app/component/pages/shopsilk/shopsilk.ts`)
- Customer profile → Authentication service: uses (evidence: `src/app/component/pages/profile-cust/profile-cust.ts`)
- Customer profile → Profile service: uses (evidence: `src/app/component/pages/profile-cust/profile-cust.ts`)
- Customer profile → Order service: uses (evidence: `src/app/component/pages/profile-cust/profile-cust.ts`)
- Cart and checkout → Order service: uses (evidence: `src/app/component/pages/add2cart/add2cart.ts`)
- Customer orders → Order service: uses (evidence: `src/app/component/pages/order/order.ts`)
- Customer notifications → Order service: uses (evidence: `src/app/component/pages/notif-cust/notif-cust.ts`)
- Customer notifications → Order chat: uses (evidence: `src/app/component/pages/notif-cust/notif-cust.ts`)
- Order processing → Order service: uses (evidence: `src/app/component/pages-adm/cust-order/cust-order.ts`)
- Order processing → Order chat: uses (evidence: `src/app/component/pages-adm/cust-order/cust-order.ts`)
- Delivery operations → Order service: uses (evidence: `src/app/component/pages-adm/delivery/delivery.ts`)
- Staff notifications → Order service: uses (evidence: `src/app/component/pages-adm/notf-adm/notf-adm.ts`)
- Staff notifications → Order chat: uses (evidence: `src/app/component/pages-adm/notf-adm/notf-adm.ts`)
- Visit management → Visit service: uses (evidence: `src/app/component/pages-adm/visit/visit.ts`)
- Job applications → Application service: uses (evidence: `src/app/component/pages-adm/jobapp/jobapp.ts`)
- Visit tracking → Visit service: uses (evidence: `src/app/component/pages/track-visit/track-visit.ts`)
- Application tracking → Application service: uses (evidence: `src/app/component/pages/track-jobapp/track-jobapp.ts`)
- Customer navigation → Profile service: uses (evidence: `src/app/component/home-cust/topbar-cust/topbar-cust.ts`)
- Customer navigation → Order service: uses (evidence: `src/app/component/home-cust/topbar-cust/topbar-cust.ts`)
- Customer navigation → Order chat: uses (evidence: `src/app/component/home-cust/topbar-cust/topbar-cust.ts`)
- Staff navigation → Profile service: uses (evidence: `src/app/component/home-adm/topbar-adm/topbar-adm.ts`)
