# abdelrahman681/store99 architecture

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

- Interactive diagram: https://gitdiagram.com/abdelrahman681/store99
- Repository: https://github.com/abdelrahman681/store99

## Overview

Store99 is an Angular e-commerce frontend. The main customer journey is product discovery, basket updates, authenticated checkout and order follow-up; alongside it are account access, admin management, and auxiliary capabilities such as addresses, wishlist, reviews, notifications, and contact. The graph uses sampled source and README/tree evidence; several feature implementations are not excerpted, so those connections are shown only where documented or routed.

Main entry points: [`src/app/app.routes.ts`](https://github.com/abdelrahman681/store99/blob/main/src/app/app.routes.ts) (App routes), [`src/app/features/orders/checkout/checkout.component.ts`](https://github.com/abdelrahman681/store99/blob/main/src/app/features/orders/checkout/checkout.component.ts) (Checkout), [`src/app/store/auth`](https://github.com/abdelrahman681/store99/tree/main/src/app/store/auth) (Auth state), [`src/app/core/guards`](https://github.com/abdelrahman681/store99/tree/main/src/app/core/guards) (Route guards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer["Shopping"]
  node_routing["App routes<br/>[app.routes.ts]"]
  node_catalog["Product catalog"]
  node_basket["Basket page"]
  node_checkout["Checkout"]
  node_orders["Order history"]
  node_payment["Payment provider"]
  node_app["Application shell<br/>[app.component.ts]"]
end

subgraph group_state["State and API"]
  node_authstate["Auth state"]
  node_productstate["Product state"]
  node_basketstate["Basket state"]
  node_orderstate["Order state"]
  node_productapi["Product API service<br/>[product.service.ts]"]
  node_basketapi["Basket API service<br/>[basket.service.ts]"]
  node_orderapi["Order API service<br/>[order.service.ts]"]
  node_backend["Store99 API"]
end

subgraph group_account["Identity"]
  node_authpages["Sign in and register"]
  node_identity["Authentication API<br/>[auth.service.ts]"]
  node_guards["Route guards"]
end

subgraph group_admin["Administration"]
  node_adminui["Admin dashboard"]
  node_adminservices["Admin services"]
end

subgraph group_support["Customer services"]
  node_addresses["Address book"]
  node_wishlist["Wishlist"]
  node_reviews["Product reviews"]
  node_reviewapi["Review API service<br/>[review.service.ts]"]
  node_notifications["Notifications"]
  node_contact["Contact form"]
end

node_shopper(("Shopper"))

node_shopper -->|"navigates"| node_routing
node_routing -->|"routes to"| node_catalog
node_routing -->|"routes to"| node_basket
node_routing -->|"routes to"| node_checkout
node_routing -->|"routes to"| node_orders
node_routing -->|"routes to"| node_authpages
node_routing -->|"routes to"| node_adminui
node_routing -->|"routes to"| node_addresses
node_routing -->|"routes to"| node_wishlist
node_routing -->|"routes to"| node_notifications
node_routing -->|"routes to"| node_contact
node_routing -->|"protects routes"| node_guards
node_authpages -.->|"dispatches auth"| node_authstate
node_authstate -->|"calls service"| node_identity
node_identity -->|"sends account requests"| node_backend
node_guards -->|"checks session"| node_identity
node_guards -->|"reads auth state"| node_authstate
node_app -->|"restores session"| node_authstate
node_app -->|"loads basket"| node_basketstate
node_catalog -.->|"loads products"| node_productstate
node_productstate -->|"calls service"| node_productapi
node_productapi -->|"requests catalog"| node_backend
node_basket -.->|"dispatches changes"| node_basketstate
node_basketstate -->|"synchronizes basket"| node_basketapi
node_basketapi -->|"reads and updates"| node_backend
node_checkout -->|"reads basket"| node_basketapi
node_checkout -.->|"initiates payment"| node_payment
node_checkout -->|"dispatches order"| node_orderstate
node_orderstate -->|"calls service"| node_orderapi
node_orderapi -->|"requests orders"| node_backend
node_adminui -->|"manages catalog"| node_adminservices
node_adminservices -.->|"sends management requests"| node_backend
node_reviews -->|"loads and edits"| node_reviewapi
node_reviewapi -->|"sends review requests"| node_backend

click node_routing "https://github.com/abdelrahman681/store99/blob/main/src/app/app.routes.ts"
click node_catalog "https://github.com/abdelrahman681/store99/tree/main/src/app/features/products"
click node_basket "https://github.com/abdelrahman681/store99/tree/main/src/app/features/basket/basket-page"
click node_checkout "https://github.com/abdelrahman681/store99/blob/main/src/app/features/orders/checkout/checkout.component.ts"
click node_orders "https://github.com/abdelrahman681/store99/tree/main/src/app/features/orders"
click node_authpages "https://github.com/abdelrahman681/store99/tree/main/src/app/features/auth"
click node_identity "https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/auth.service.ts"
click node_guards "https://github.com/abdelrahman681/store99/tree/main/src/app/core/guards"
click node_authstate "https://github.com/abdelrahman681/store99/tree/main/src/app/store/auth"
click node_productstate "https://github.com/abdelrahman681/store99/tree/main/src/app/store/products"
click node_basketstate "https://github.com/abdelrahman681/store99/tree/main/src/app/store/basket"
click node_orderstate "https://github.com/abdelrahman681/store99/tree/main/src/app/store/orders"
click node_productapi "https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/product.service.ts"
click node_basketapi "https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/basket.service.ts"
click node_orderapi "https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/order.service.ts"
click node_adminui "https://github.com/abdelrahman681/store99/tree/main/src/app/features/dashboard"
click node_adminservices "https://github.com/abdelrahman681/store99/tree/main/src/app/core/services"
click node_addresses "https://github.com/abdelrahman681/store99/blob/main/src/app/features/addresses/address-list/address-list.component.ts"
click node_wishlist "https://github.com/abdelrahman681/store99/tree/main/src/app/features/wishlist"
click node_reviews "https://github.com/abdelrahman681/store99/blob/main/src/app/shared/components/product-reviews/product-reviews.component.ts"
click node_reviewapi "https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/review.service.ts"
click node_notifications "https://github.com/abdelrahman681/store99/tree/main/src/app/features/notifications"
click node_contact "https://github.com/abdelrahman681/store99/blob/main/src/app/features/contact/contact.component.ts"
click node_app "https://github.com/abdelrahman681/store99/blob/main/src/app/app.component.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_routing,node_catalog,node_basket,node_checkout,node_orders,node_payment,node_app toneBlue
class node_authstate,node_productstate,node_basketstate,node_orderstate,node_productapi,node_basketapi,node_orderapi,node_backend toneAmber
class node_authpages,node_identity,node_guards toneMint
class node_adminui,node_adminservices toneRose
class node_addresses,node_wishlist,node_reviews,node_reviewapi,node_notifications,node_contact,node_shopper toneIndigo
```

## Components

### Shopping

- [App routes](https://github.com/abdelrahman681/store99/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Product catalog](https://github.com/abdelrahman681/store99/tree/main/src/app/features/products): `src/app/features/products`
- [Basket page](https://github.com/abdelrahman681/store99/tree/main/src/app/features/basket/basket-page): `src/app/features/basket/basket-page`
- [Checkout](https://github.com/abdelrahman681/store99/blob/main/src/app/features/orders/checkout/checkout.component.ts): `src/app/features/orders/checkout/checkout.component.ts`
- [Order history](https://github.com/abdelrahman681/store99/tree/main/src/app/features/orders): `src/app/features/orders`
- **Payment provider**
- [Application shell](https://github.com/abdelrahman681/store99/blob/main/src/app/app.component.ts): `src/app/app.component.ts`

### State and API

- [Auth state](https://github.com/abdelrahman681/store99/tree/main/src/app/store/auth): `src/app/store/auth`
- [Product state](https://github.com/abdelrahman681/store99/tree/main/src/app/store/products): `src/app/store/products`
- [Basket state](https://github.com/abdelrahman681/store99/tree/main/src/app/store/basket): `src/app/store/basket`
- [Order state](https://github.com/abdelrahman681/store99/tree/main/src/app/store/orders): `src/app/store/orders`
- [Product API service](https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/product.service.ts): `src/app/core/services/product.service.ts`
- [Basket API service](https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/basket.service.ts): `src/app/core/services/basket.service.ts`
- [Order API service](https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/order.service.ts): `src/app/core/services/order.service.ts`
- **Store99 API**

### Identity

- [Sign in and register](https://github.com/abdelrahman681/store99/tree/main/src/app/features/auth): `src/app/features/auth`
- [Authentication API](https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/auth.service.ts): `src/app/core/services/auth.service.ts`
- [Route guards](https://github.com/abdelrahman681/store99/tree/main/src/app/core/guards): `src/app/core/guards`

### Administration

- [Admin dashboard](https://github.com/abdelrahman681/store99/tree/main/src/app/features/dashboard): `src/app/features/dashboard`
- [Admin services](https://github.com/abdelrahman681/store99/tree/main/src/app/core/services): `src/app/core/services`

### Customer services

- [Address book](https://github.com/abdelrahman681/store99/blob/main/src/app/features/addresses/address-list/address-list.component.ts): `src/app/features/addresses/address-list/address-list.component.ts`
- [Wishlist](https://github.com/abdelrahman681/store99/tree/main/src/app/features/wishlist): `src/app/features/wishlist`
- [Product reviews](https://github.com/abdelrahman681/store99/blob/main/src/app/shared/components/product-reviews/product-reviews.component.ts): `src/app/shared/components/product-reviews/product-reviews.component.ts`
- [Review API service](https://github.com/abdelrahman681/store99/blob/main/src/app/core/services/review.service.ts): `src/app/core/services/review.service.ts`
- [Notifications](https://github.com/abdelrahman681/store99/tree/main/src/app/features/notifications): `src/app/features/notifications`
- [Contact form](https://github.com/abdelrahman681/store99/blob/main/src/app/features/contact/contact.component.ts): `src/app/features/contact/contact.component.ts`

### Other components

- **Shopper**

## Connections

- Shopper → App routes: navigates (evidence: `src/app/app.routes.ts`)
- App routes → Product catalog: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Basket page: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Checkout: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Order history: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Sign in and register: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Admin dashboard: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Address book: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Wishlist: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Notifications: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Contact form: routes to (evidence: `src/app/app.routes.ts`)
- App routes → Route guards: protects routes (evidence: `src/app/app.routes.ts`)
- Sign in and register → Auth state: dispatches auth
- Auth state → Authentication API: calls service (evidence: `src/app/store/auth/auth.effects.ts`)
- Authentication API → Store99 API: sends account requests (evidence: `src/app/core/services/auth.service.ts`)
- Route guards → Authentication API: checks session (evidence: `src/app/core/guards/auth.guard.ts`)
- Route guards → Auth state: reads auth state (evidence: `src/app/core/guards/auth.guard.ts`)
- Application shell → Auth state: restores session (evidence: `src/app/app.component.ts`)
- Application shell → Basket state: loads basket (evidence: `src/app/app.component.ts`)
- Product catalog → Product state: loads products (evidence: `src/app/features/products/product-list/product-list.component.ts`)
- Product state → Product API service: calls service
- Product API service → Store99 API: requests catalog (evidence: `src/app/core/services/product.service.ts`)
- Basket page → Basket state: dispatches changes
- Basket state → Basket API service: synchronizes basket (evidence: `src/app/store/basket/basket.effects.ts`)
- Basket API service → Store99 API: reads and updates (evidence: `src/app/core/services/basket.service.ts`)
- Checkout → Basket API service: reads basket (evidence: `src/app/features/orders/checkout/checkout.component.ts`)
- Checkout → Payment provider: initiates payment
- Checkout → Order state: dispatches order (evidence: `src/app/features/orders/checkout/checkout.component.ts`)
- Order state → Order API service: calls service (evidence: `src/app/store/orders/orders.effects.ts`)
- Order API service → Store99 API: requests orders (evidence: `src/app/core/services/order.service.ts`)
- Admin dashboard → Admin services: manages catalog (evidence: `src/app/features/dashboard/products-management/products-management.component.ts`)
- Admin services → Store99 API: sends management requests
- Product reviews → Review API service: loads and edits (evidence: `src/app/shared/components/product-reviews/product-reviews.component.ts`)
- Review API service → Store99 API: sends review requests (evidence: `src/app/core/services/review.service.ts`)
