# davity333/frontend_lambi architecture

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

- Interactive diagram: https://gitdiagram.com/davity333/frontend_lambi
- Repository: https://github.com/davity333/frontend_lambi

## Overview

FrontendLambi is an Angular marketplace for buyers and sellers of local stands. Buyers enter through role selection or authentication, discover stands and products, manage favorites and a cart, and submit an order; sellers register or sign in, create stands, manage products, and review sales. The sampled code confirms routing, authentication, search/favorites, product operations, and order submission. Several other feature areas are visible only in the tree, so their internal interactions are not inferred.

Main entry points: [`src/app/app-routing.module.ts`](https://github.com/davity333/frontend_lambi/blob/main/src/app/app-routing.module.ts) (App routes), [`src/app/Pages/Auth/users.service.ts`](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/Auth/users.service.ts) (User service), [`src/app/Pages/payment/payment.component.ts`](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/payment/payment.component.ts) (Checkout), [`src/app/Pages/busqueda/services/category.service.ts`](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/busqueda/services/category.service.ts) (Search and favorites)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_router["App routes"]
  node_app_module["App module<br/>[app.module.ts]"]
end

subgraph group_identity["Identity"]
  node_role["Role selection<br/>[rol.component.ts]"]
  node_buyer_auth["Buyer auth<br/>[login.component.ts]"]
  node_seller_auth["Seller auth"]
  node_registration["Registration"]
  node_seller_registration["Seller registration"]
  node_auth_service["User service<br/>[users.service.ts]"]
end

subgraph group_discovery["Buyer discovery"]
  node_search["Stand search"]
  node_category_service["Search and favorites"]
  node_favorites["Favorites"]
  node_stand_browse["Stand browsing"]
  node_product_browse["Product browsing"]
  node_stand_view["Stand details"]
end

subgraph group_commerce["Commerce"]
  node_cart["Cart"]
  node_checkout["Checkout"]
  node_sell_model["Sell request<br/>[sell-request.ts]"]
  node_payment_service["Payment service<br/>[payment.service.ts]"]
  node_messaging["Buyer messaging"]
end

subgraph group_seller["Seller tools"]
  node_seller_stand["Stand creation"]
  node_stand_service["Stand operations<br/>[puesto.service.ts]"]
  node_product_management["Product management"]
  node_product_editor["Product editor"]
  node_products_service["Product service"]
  node_sales_management["Sales and stands"]
end

node_buyer(("Buyer"))
node_seller_actor(("Seller"))
node_api["Marketplace API"]

node_buyer -->|"navigates"| node_router
node_seller_actor -->|"navigates"| node_router
node_router -->|"routes to"| node_role
node_router -->|"routes to"| node_buyer_auth
node_router -->|"routes to"| node_seller_auth
node_router -->|"routes to"| node_registration
node_router -->|"routes to"| node_seller_registration
node_router -->|"routes to"| node_search
node_router -->|"routes to"| node_favorites
node_router -->|"routes to"| node_stand_browse
node_router -->|"routes to"| node_product_browse
node_router -->|"routes to"| node_seller_stand
node_router -->|"routes to"| node_product_management
node_router -->|"routes to"| node_stand_view
node_router -->|"routes to"| node_checkout
node_router -->|"routes to"| node_messaging
node_app_module -->|"imports"| node_router
node_buyer_auth -->|"authenticates"| node_auth_service
node_seller_auth -->|"authenticates"| node_auth_service
node_registration -->|"registers"| node_auth_service
node_seller_registration -->|"registers"| node_auth_service
node_auth_service -->|"requests"| node_api
node_search -->|"searches"| node_category_service
node_favorites -->|"loads favorites"| node_category_service
node_stand_browse -->|"loads categories"| node_category_service
node_category_service -->|"requests"| node_api
node_product_editor -->|"manages products"| node_products_service
node_product_management -.->|"uses editor"| node_product_editor
node_products_service -->|"requests"| node_api
node_seller_stand -.->|"uses"| node_stand_service
node_stand_service -->|"requests"| node_api
node_checkout -->|"reads cart"| node_products_service
node_checkout -->|"submits sale"| node_sales_management
node_checkout -->|"builds request"| node_sell_model
node_sales_management -->|"requests"| node_api
node_buyer -.->|"adds items"| node_cart

click node_router "https://github.com/davity333/frontend_lambi/blob/main/src/app/app-routing.module.ts"
click node_app_module "https://github.com/davity333/frontend_lambi/blob/main/src/app/app.module.ts"
click node_role "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/user-option/components/rol/rol.component.ts"
click node_buyer_auth "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/login/login.component.ts"
click node_seller_auth "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/loginSeller/components/login-seller/login-seller.component.ts"
click node_registration "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/register/register.component.ts"
click node_seller_registration "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/registerSeller/components/register-seller/register-seller.component.ts"
click node_auth_service "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/Auth/users.service.ts"
click node_search "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/busqueda/busqueda.component.ts"
click node_category_service "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/busqueda/services/category.service.ts"
click node_favorites "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/favorites/favorites.component.ts"
click node_stand_browse "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/negocios/negocios.component.ts"
click node_product_browse "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/products/products.component.ts"
click node_seller_stand "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/agregar-puesto/agregar-puesto.component.ts"
click node_stand_service "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/agregar-puesto/Services/puesto.service.ts"
click node_product_management "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/gestion-productos/gestion-productos.component.ts"
click node_product_editor "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/gestion-productos/Components/modal-product/modal-product.component.ts"
click node_products_service "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/gestion-productos/service/products.service.ts"
click node_sales_management "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/negocios/services/stand-by-client.service.ts"
click node_cart "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/gestion-productos/service/products.service.ts"
click node_checkout "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/payment/payment.component.ts"
click node_sell_model "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/payment/models/sell-request.ts"
click node_payment_service "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/payment/services/payment.service.ts"
click node_stand_view "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/viewstand/components/viewstand/viewstand.component.ts"
click node_messaging "https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/sendMessage/send-message/send-message.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_router,node_app_module toneBlue
class node_role,node_buyer_auth,node_seller_auth,node_registration,node_seller_registration,node_auth_service toneAmber
class node_search,node_category_service,node_favorites,node_stand_browse,node_product_browse,node_stand_view,node_api toneMint
class node_cart,node_checkout,node_sell_model,node_payment_service,node_messaging toneRose
class node_seller_stand,node_stand_service,node_product_management,node_product_editor,node_products_service,node_sales_management,node_buyer,node_seller_actor toneIndigo
```

## Components

### App entry

- [App routes](https://github.com/davity333/frontend_lambi/blob/main/src/app/app-routing.module.ts): `src/app/app-routing.module.ts`
- [App module](https://github.com/davity333/frontend_lambi/blob/main/src/app/app.module.ts): `src/app/app.module.ts`

### Identity

- [Role selection](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/user-option/components/rol/rol.component.ts): `src/app/Pages/user-option/components/rol/rol.component.ts`
- [Buyer auth](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/login/login.component.ts): `src/app/Pages/login/login.component.ts`
- [Seller auth](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/loginSeller/components/login-seller/login-seller.component.ts): `src/app/Pages/loginSeller/components/login-seller/login-seller.component.ts`
- [Registration](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/register/register.component.ts): `src/app/Pages/register/register.component.ts`
- [Seller registration](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/registerSeller/components/register-seller/register-seller.component.ts): `src/app/Pages/registerSeller/components/register-seller/register-seller.component.ts`
- [User service](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/Auth/users.service.ts): `src/app/Pages/Auth/users.service.ts`

### Buyer discovery

- [Stand search](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/busqueda/busqueda.component.ts): `src/app/Pages/busqueda/busqueda.component.ts`
- [Search and favorites](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/busqueda/services/category.service.ts): `src/app/Pages/busqueda/services/category.service.ts`
- [Favorites](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/favorites/favorites.component.ts): `src/app/Pages/favorites/favorites.component.ts`
- [Stand browsing](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/negocios/negocios.component.ts): `src/app/Pages/negocios/negocios.component.ts`
- [Product browsing](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/products/products.component.ts): `src/app/Pages/products/products.component.ts`
- [Stand details](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/viewstand/components/viewstand/viewstand.component.ts): `src/app/Pages/viewstand/components/viewstand/viewstand.component.ts`

### Commerce

- [Cart](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/gestion-productos/service/products.service.ts): `src/app/Pages/gestion-productos/service/products.service.ts`
- [Checkout](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/payment/payment.component.ts): `src/app/Pages/payment/payment.component.ts`
- [Sell request](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/payment/models/sell-request.ts): `src/app/Pages/payment/models/sell-request.ts`
- [Payment service](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/payment/services/payment.service.ts): `src/app/Pages/payment/services/payment.service.ts`
- [Buyer messaging](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/sendMessage/send-message/send-message.component.ts): `src/app/Pages/sendMessage/send-message/send-message.component.ts`

### Seller tools

- [Stand creation](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/agregar-puesto/agregar-puesto.component.ts): `src/app/Pages/agregar-puesto/agregar-puesto.component.ts`
- [Stand operations](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/agregar-puesto/Services/puesto.service.ts): `src/app/Pages/agregar-puesto/Services/puesto.service.ts`
- [Product management](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/gestion-productos/gestion-productos.component.ts): `src/app/Pages/gestion-productos/gestion-productos.component.ts`
- [Product editor](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/gestion-productos/Components/modal-product/modal-product.component.ts): `src/app/Pages/gestion-productos/Components/modal-product/modal-product.component.ts`
- [Product service](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/gestion-productos/service/products.service.ts): `src/app/Pages/gestion-productos/service/products.service.ts`
- [Sales and stands](https://github.com/davity333/frontend_lambi/blob/main/src/app/Pages/negocios/services/stand-by-client.service.ts): `src/app/Pages/negocios/services/stand-by-client.service.ts`

### Other components

- **Buyer**
- **Seller**
- **Marketplace API**

## Connections

- Buyer → App routes: navigates (evidence: `src/app/app-routing.module.ts`)
- Seller → App routes: navigates (evidence: `src/app/app-routing.module.ts`)
- App routes → Role selection: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Buyer auth: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Seller auth: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Registration: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Seller registration: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Stand search: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Favorites: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Stand browsing: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Product browsing: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Stand creation: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Product management: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Stand details: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Checkout: routes to (evidence: `src/app/app-routing.module.ts`)
- App routes → Buyer messaging: routes to (evidence: `src/app/app-routing.module.ts`)
- App module → App routes: imports (evidence: `src/app/app.module.ts`)
- Buyer auth → User service: authenticates (evidence: `src/app/Pages/login/login.component.ts`)
- Seller auth → User service: authenticates (evidence: `src/app/Pages/loginSeller/components/login-seller/login-seller.component.ts`)
- Registration → User service: registers (evidence: `src/app/Pages/register/register.component.ts`)
- Seller registration → User service: registers (evidence: `src/app/Pages/registerSeller/components/register-seller/register-seller.component.ts`)
- User service → Marketplace API: requests (evidence: `src/app/Pages/Auth/users.service.ts`)
- Stand search → Search and favorites: searches (evidence: `src/app/Pages/busqueda/busqueda.component.ts`)
- Favorites → Search and favorites: loads favorites (evidence: `src/app/Pages/favorites/favorites.component.ts`)
- Stand browsing → Search and favorites: loads categories
- Search and favorites → Marketplace API: requests (evidence: `src/app/Pages/busqueda/services/category.service.ts`)
- Product editor → Product service: manages products (evidence: `src/app/Pages/gestion-productos/Components/modal-product/modal-product.component.ts`)
- Product management → Product editor: uses editor
- Product service → Marketplace API: requests (evidence: `src/app/Pages/gestion-productos/service/products.service.ts`)
- Stand creation → Stand operations: uses
- Stand operations → Marketplace API: requests (evidence: `src/app/Pages/agregar-puesto/Services/puesto.service.ts`)
- Checkout → Product service: reads cart (evidence: `src/app/Pages/payment/payment.component.ts`)
- Checkout → Sales and stands: submits sale (evidence: `src/app/Pages/payment/payment.component.ts`)
- Checkout → Sell request: builds request (evidence: `src/app/Pages/payment/payment.component.ts`)
- Sales and stands → Marketplace API: requests (evidence: `src/app/Pages/negocios/services/stand-by-client.service.ts`)
- Buyer → Cart: adds items
