# abiimunoz/grupo-14-itba architecture

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

- Interactive diagram: https://gitdiagram.com/abiimunoz/grupo-14-itba
- Repository: https://github.com/abiimunoz/grupo-14-itba

## Overview

This is a furniture-store e-commerce demo. The current Sprint 3–4 workflow is: a shopper browses the React app, which fetches products from the Express API; the shopper can search, view a product detail, and add items to the in-memory cart, or submit a contact form that displays confirmation. The earlier static site remains in Sprint 1–2. Edges reflect shown imports, calls, or README statements; unsampled middleware wiring is limited to what the server excerpt shows.

Main entry points: [`Sprint 3-4/client/src/App.jsx`](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/App.jsx) (App and cart state), [`Sprint 3-4/backend/server.js`](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/server.js) (Express server), [`Sprint 3-4/client/src/components/ProductList.jsx`](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/ProductList.jsx) (Product search and list), [`Sprint 3-4/client/src/components/Catalogo.jsx`](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/Catalogo.jsx) (Catalog view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Storefront"]
  node_app["App and cart state<br/>[App.jsx]"]
  node_home["Home page<br/>[Home.jsx]"]
  node_navbar["Navigation and cart count<br/>[NavBar.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_catalog["Catalog and cart"]
  node_catalogue["Catalog view<br/>[Catalogo.jsx]"]
  node_productlist["Product search and list<br/>[ProductList.jsx]"]
  node_productcard["Product card<br/>[ProductCard.jsx]"]
  node_detail["Product detail<br/>[ProductDetail.jsx]"]
end

subgraph group_backend["Product API"]
  node_api["Express server<br/>[server.js]"]
  node_routes["Product routes<br/>[productos.js]"]
  node_products[("Product data<br/>[productos.js]")]
  node_logger["Request logger<br/>[logger.js]"]
  node_notfound["Not-found handler<br/>[notFound.js]"]
  node_errors["Error handler<br/>[errorHandler.js]"]
end

subgraph group_contact["Contact"]
  node_contact["Contact form<br/>[ContactForm.jsx]"]
end

node_shopper(("Shopper"))

node_shopper -->|"uses storefront"| node_app
node_app -->|"renders route"| node_home
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_footer
node_app -->|"renders route"| node_catalogue
node_app -->|"renders detail"| node_detail
node_app -->|"renders route"| node_contact
node_app -->|"passes cart count"| node_navbar
node_app -->|"passes cart action"| node_detail
node_catalogue -->|"renders"| node_productlist
node_productlist -->|"fetches products"| node_api
node_api -->|"mounts route"| node_routes
node_routes -->|"reads product data"| node_products
node_productlist -->|"renders results"| node_productcard
node_productcard -->|"selects product"| node_app
node_api -->|"registers middleware"| node_logger
node_api -->|"registers middleware"| node_notfound
node_api -->|"registers middleware"| node_errors

click node_app "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/App.jsx"
click node_home "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/Home.jsx"
click node_navbar "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/NavBar.jsx"
click node_footer "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/Footer.jsx"
click node_catalogue "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/Catalogo.jsx"
click node_productlist "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/ProductList.jsx"
click node_productcard "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/ProductCard.jsx"
click node_detail "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/ProductDetail.jsx"
click node_api "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/server.js"
click node_routes "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/routes/productos.js"
click node_products "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/data/productos.js"
click node_logger "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/middlewares/logger.js"
click node_notfound "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/middlewares/notFound.js"
click node_errors "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/middlewares/errorHandler.js"
click node_contact "https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/ContactForm.jsx"

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_home,node_navbar,node_footer toneBlue
class node_catalogue,node_productlist,node_productcard,node_detail toneAmber
class node_api,node_routes,node_products,node_logger,node_notfound,node_errors toneMint
class node_contact toneRose
class node_shopper toneIndigo
```

## Components

### Storefront

- [App and cart state](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/App.jsx): `Sprint 3-4/client/src/App.jsx`
- [Home page](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/Home.jsx): `Sprint 3-4/client/src/components/Home.jsx`
- [Navigation and cart count](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/NavBar.jsx): `Sprint 3-4/client/src/components/NavBar.jsx`
- [Footer](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/Footer.jsx): `Sprint 3-4/client/src/components/Footer.jsx`

### Catalog and cart

- [Catalog view](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/Catalogo.jsx): `Sprint 3-4/client/src/components/Catalogo.jsx`
- [Product search and list](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/ProductList.jsx): `Sprint 3-4/client/src/components/ProductList.jsx`
- [Product card](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/ProductCard.jsx): `Sprint 3-4/client/src/components/ProductCard.jsx`
- [Product detail](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/ProductDetail.jsx): `Sprint 3-4/client/src/components/ProductDetail.jsx`

### Product API

- [Express server](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/server.js): `Sprint 3-4/backend/server.js`
- [Product routes](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/routes/productos.js): `Sprint 3-4/backend/routes/productos.js`
- [Product data](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/data/productos.js): `Sprint 3-4/backend/data/productos.js`
- [Request logger](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/middlewares/logger.js): `Sprint 3-4/backend/middlewares/logger.js`
- [Not-found handler](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/middlewares/notFound.js): `Sprint 3-4/backend/middlewares/notFound.js`
- [Error handler](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/backend/middlewares/errorHandler.js): `Sprint 3-4/backend/middlewares/errorHandler.js`

### Contact

- [Contact form](https://github.com/abiimunoz/grupo-14-itba/blob/main/Sprint%203-4/client/src/components/ContactForm.jsx): `Sprint 3-4/client/src/components/ContactForm.jsx`

### Other components

- **Shopper**

## Connections

- Shopper → App and cart state: uses storefront (evidence: `README.md`)
- App and cart state → Home page: renders route (evidence: `Sprint 3-4/client/src/App.jsx`)
- App and cart state → Navigation and cart count: renders (evidence: `Sprint 3-4/client/src/App.jsx`)
- App and cart state → Footer: renders (evidence: `Sprint 3-4/client/src/App.jsx`)
- App and cart state → Catalog view: renders route (evidence: `Sprint 3-4/client/src/App.jsx`)
- App and cart state → Product detail: renders detail (evidence: `Sprint 3-4/client/src/App.jsx`)
- App and cart state → Contact form: renders route (evidence: `Sprint 3-4/client/src/App.jsx`)
- App and cart state → Navigation and cart count: passes cart count (evidence: `Sprint 3-4/client/src/App.jsx`)
- App and cart state → Product detail: passes cart action (evidence: `Sprint 3-4/client/src/App.jsx`)
- Catalog view → Product search and list: renders (evidence: `Sprint 3-4/client/src/components/Catalogo.jsx`)
- Product search and list → Express server: fetches products (evidence: `Sprint 3-4/client/src/components/ProductList.jsx`)
- Express server → Product routes: mounts route (evidence: `Sprint 3-4/backend/server.js`)
- Product routes → Product data: reads product data (evidence: `Sprint 3-4/backend/routes/productos.js`)
- Product search and list → Product card: renders results (evidence: `Sprint 3-4/client/src/components/ProductList.jsx`)
- Product card → App and cart state: selects product (evidence: `Sprint 3-4/client/src/App.jsx`)
- Express server → Request logger: registers middleware (evidence: `Sprint 3-4/backend/server.js`)
- Express server → Not-found handler: registers middleware (evidence: `Sprint 3-4/backend/server.js`)
- Express server → Error handler: registers middleware (evidence: `Sprint 3-4/backend/server.js`)
