# thanusikaunicomtic/easygo architecture

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

- Interactive diagram: https://gitdiagram.com/thanusikaunicomtic/easygo
- Repository: https://github.com/thanusikaunicomtic/easygo

## Overview

EasyGo is a small Angular storefront prototype. The visible workflow is bootstrapping the app shell, presenting its in-memory phone catalog as a product list, and rendering each product through a card; the app also tracks a cart count when its handler is invoked. The README describes only Angular tooling, not additional product capabilities. Templates were not excerpted, so the user-facing bindings and the connection from card events to the app handler cannot be verified here.

Main entry points: [`src/app/app.ts`](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/app.ts) (Storefront app), [`src/app/models/product.model.ts`](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/models/product.model.ts) (Product model), [`src/app/components/product-list/product-list.ts`](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/components/product-list/product-list.ts) (Product list), [`src/app/components/product-card/product-card.ts`](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/components/product-card/product-card.ts) (Product card)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_bootstrap["App bootstrap<br/>[main.ts]"]
  node_app["Storefront app<br/>[app.ts]"]
  node_navbar["Navigation bar<br/>[navbar.ts]"]
  node_routes["Route config<br/>[app.routes.ts]"]
  node_app_config["App config<br/>[app.config.ts]"]
end

subgraph group_catalog["Product catalog"]
  node_product_list["Product list<br/>[product-list.ts]"]
  node_product_card["Product card<br/>[product-card.ts]"]
end

subgraph group_domain["Product domain"]
  node_product["Product model<br/>[product.model.ts]"]
end

node_shopper(("Shopper"))

node_shopper -.->|"browses"| node_app
node_bootstrap -->|"bootstraps"| node_app
node_app -->|"uses"| node_navbar
node_app -->|"uses"| node_product_list
node_app -->|"defines catalog"| node_product
node_product_list -->|"renders"| node_product_card
node_product_list -->|"uses type"| node_product
node_product_card -->|"uses type"| node_product
node_app -->|"uses type"| node_product
node_app_config -->|"provides routes"| node_routes

click node_bootstrap "https://github.com/thanusikaunicomtic/easygo/blob/main/src/main.ts"
click node_app "https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/app.ts"
click node_navbar "https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/components/navbar/navbar.ts"
click node_routes "https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/app.routes.ts"
click node_app_config "https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/app.config.ts"
click node_product_list "https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/components/product-list/product-list.ts"
click node_product_card "https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/components/product-card/product-card.ts"
click node_product "https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/models/product.model.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_bootstrap,node_app,node_navbar,node_routes,node_app_config toneBlue
class node_product_list,node_product_card toneAmber
class node_product toneMint
class node_shopper toneIndigo
```

## Components

### Application shell

- [App bootstrap](https://github.com/thanusikaunicomtic/easygo/blob/main/src/main.ts): `src/main.ts`
- [Storefront app](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/app.ts): `src/app/app.ts`
- [Navigation bar](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/components/navbar/navbar.ts): `src/app/components/navbar/navbar.ts`
- [Route config](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [App config](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/app.config.ts): `src/app/app.config.ts`

### Product catalog

- [Product list](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/components/product-list/product-list.ts): `src/app/components/product-list/product-list.ts`
- [Product card](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/components/product-card/product-card.ts): `src/app/components/product-card/product-card.ts`

### Product domain

- [Product model](https://github.com/thanusikaunicomtic/easygo/blob/main/src/app/models/product.model.ts): `src/app/models/product.model.ts`

### Other components

- **Shopper**

## Connections

- Shopper → Storefront app: browses
- App bootstrap → Storefront app: bootstraps (evidence: `src/main.ts`)
- Storefront app → Navigation bar: uses (evidence: `src/app/app.ts`)
- Storefront app → Product list: uses (evidence: `src/app/app.ts`)
- Storefront app → Product model: defines catalog (evidence: `src/app/app.ts`)
- Product list → Product card: renders (evidence: `src/app/components/product-list/product-list.ts`)
- Product list → Product model: uses type (evidence: `src/app/components/product-list/product-list.ts`)
- Product card → Product model: uses type (evidence: `src/app/components/product-card/product-card.ts`)
- Storefront app → Product model: uses type (evidence: `src/app/app.ts`)
- App config → Route config: provides routes (evidence: `src/app/app.config.ts`)
