How constanza05-ctrl/ps-sonido-vivo works
Sonido Vivo is a React storefront and product-catalog application. The main shopping workflow is browsing and filtering the in-memory product catalog, adding an item to a persisted cart, and proceeding through checkout, which also stores orders locally. A separate admin page manages product records. The graph includes the documented public-facing pages and the sampled product/cart layers; several page implementations and checkout internals were not excerpted, so their internal behavior is not inferred.
Main entry points: App.jsx Route dispatcher · AdminProductos.jsx Product administration · productoService.js Product operations · Checkout.jsx Checkout
Components 26
Application routing
- Route dispatcher
src/App.jsx
Catalog and inventory
- Catalog page
src/pages/Catalogo.jsx - Product detail
src/pages/ProductoDetalle.jsx - Product administration
src/pages/AdminProductos.jsx - Product state
src/context/ProductoContext.jsx - Product operations
src/services/productoService.js - Initial products
src/data/productos.js - Product categories
src/data/categorias.js - Product validation
src/utils/validarProducto.js - Offer pricing
src/utils/precioProducto.js - Catalog layout
src/components/templates/CatalogoTemplate.jsx - Product listing
src/components/organisms/ListaProductos.jsx - Product card
src/components/molecules/ProductoCard.jsx
Cart and checkout
- Cart page
src/pages/Carrito.jsx - Cart state
src/context/CarritoContext.jsx - Cart and order storage
src/services/carritoService.js - Cart layout
src/components/templates/CarritoTemplate.jsx - Cart item list
src/components/organisms/ListaCarrito.jsx - Checkout
src/pages/Checkout.jsx - Purchase result
src/pages/ResultadoCompra.jsx
Storefront presentation
- Home page
src/pages/Inicio.jsx - Public information pages
src/pages - Profile page
src/pages/Perfil.jsx
Other components
- Shopper
- Administrator
- Browser local storage
Connections 32
- Shopper → Route dispatcher: opens store
README.md - Administrator → Route dispatcher: opens store
README.md - Route dispatcher → Home page: routes to
src/App.jsx - Route dispatcher → Catalog page: routes to
src/App.jsx - Route dispatcher → Cart page: routes to
src/App.jsx - Route dispatcher → Checkout: routes to
src/App.jsx - Route dispatcher → Product administration: routes to
src/App.jsx - Route dispatcher → Public information pages: routes to
src/App.jsx - Route dispatcher → Profile page: routes to
src/App.jsx - Catalog page → Product state: reads products
src/pages/Catalogo.jsx - Catalog page → Catalog layout: renders
src/pages/Catalogo.jsx - Product detail → Product state: reads products
src/pages/ProductoDetalle.jsx - Product administration → Product state: manages products
src/pages/AdminProductos.jsx - Product administration → Product categories: uses categories
src/pages/AdminProductos.jsx - Product administration → Offer pricing: calculates preview
src/pages/AdminProductos.jsx - Product state → Product operations: delegates operations
src/context/ProductoContext.jsx - Product operations → Initial products: loads defaults
src/services/productoService.js - Product operations → Product validation: validates records
src/services/productoService.js - Product operations → Browser local storage: reads and writes
src/services/productoService.js - Product validation → Product categories: checks category
src/utils/validarProducto.js - Catalog layout → Product listing: renders
src/components/templates/CatalogoTemplate.jsx - Product listing → Product card: renders items
src/components/organisms/ListaProductos.jsx - Product card → Cart state: adds product
src/components/molecules/ProductoCard.jsx - Product card → Offer pricing: calculates display price
src/components/molecules/ProductoCard.jsx - Cart page → Cart layout: renders
src/pages/Carrito.jsx - Cart layout → Cart item list: renders
src/components/templates/CarritoTemplate.jsx - Cart state → Cart and order storage: loads and saves cart
src/context/CarritoContext.jsx - Cart state → Offer pricing: calculates item price
src/context/CarritoContext.jsx - Cart and order storage → Browser local storage: reads and writes
src/services/carritoService.js - Checkout → Cart state: reads cart state
src/pages/Checkout.jsx - Checkout → Cart and order storage: stores orders
src/pages/Checkout.jsx - Checkout → Purchase result: shows outcome