How pollolopez/caninosmercedes works
Caninos Mercedes is a React storefront with product and tutorial browsing, cart and checkout, order follow-up, account access, and protected administration. The main customer flow is browsing products, adding them to the cart, submitting an order, then receiving confirmation or registering after purchase. Firebase provides authentication and Firestore access; the excerpts show order creation, product/tutorial reads, and account/order updates. Admin screens and order tracking are present in the tree, but their full behavior and the serverless functions’ role are not established by the sampled source.
Main entry points: App.jsx Route application · firebase.js Orders store · Checkout.jsx Checkout · Tienda.jsx Product catalog
Components 27
Storefront
- Product catalog
src/pages/Tienda/Tienda.jsx - Product reader
src/hooks/useFetchProductos.js - Product card
src/components/Tarjeta/Tarjeta.jsx - Tutorial library
src/pages/Tutoriales/Tutoriales.jsx - Tutorial reader
src/hooks/useFetchTutoriales.js - Tutorial card
src/components/TarjetaTutorial/TarjetaTutorial.jsx
Purchase and accounts
- Cart page
src/pages/Carrito/Carrito.jsx - Cart state
src/context/CartContext.jsx - Checkout
src/pages/Checkout/Checkout.jsx - Orders store
src/firebase.js - Order confirmation
src/pages/Checkout/OrderConfirmation.jsx - Post-purchase signup
src/pages/RegistroPostCompra.jsx - Account signup
src/pages/Registro.jsx - Order tracking
src/pages/SeguimientoOrden/SeguimientoOrden.jsx
Administration
- Admin login
src/pages/Admin/Login/Login.jsx - Admin dashboard
src/pages/Admin/AdminPanel/Admin.jsx - Product management
src/pages/AdminProductos.jsx - Product editor
src/pages/Admin/FormularioProducto.jsx - Order management
src/pages/Admin/Ordenes/Ordenes.jsx - Tutorial management
src/pages/Admin/AdminTutoriales.jsx - Tutorial creation
src/pages/Admin/CrearTutorial.jsx - Tutorial editing
src/pages/Admin/EditarTutorial.jsx
Shared platform
- Route application
src/App.jsx - Store layout
src/layout/LayoutPrincipal/LayoutPrincipal.jsx - Authentication state
src/context/AuthContext.jsx - Firebase services
src/config/firebaseConfig.js
Other components
- Shopper
Connections 37
- Shopper → Route application: opens
src/App.jsx - Route application → Store layout: renders
src/App.jsx - Route application → Product catalog: routes to
src/App.jsx - Route application → Tutorial library: routes to
src/App.jsx - Route application → Cart page: routes to
src/App.jsx - Route application → Checkout: routes to
src/App.jsx - Route application → Order confirmation: routes to
src/App.jsx - Route application → Post-purchase signup: routes to
src/App.jsx - Route application → Account signup: routes to
src/App.jsx - Route application → Order tracking: routes to
src/App.jsx - Route application → Admin login: routes to
src/App.jsx - Route application → Admin dashboard: routes to
src/App.jsx - Route application → Product management: routes to
src/App.jsx - Route application → Product editor: routes to
src/App.jsx - Route application → Order management: routes to
src/App.jsx - Route application → Tutorial management: routes to
src/App.jsx - Route application → Tutorial creation: routes to
src/App.jsx - Route application → Tutorial editing: routes to
src/App.jsx - Product catalog → Product reader: loads
src/pages/Tienda/Tienda.jsx - Product catalog → Cart state: updates
src/pages/Tienda/Tienda.jsx - Product catalog → Product card: renders
src/pages/Tienda/Tienda.jsx - Product reader → Firebase services: reads products
src/hooks/useFetchProductos.js - Tutorial library → Tutorial reader: loads
src/pages/Tutoriales/Tutoriales.jsx - Tutorial library → Tutorial card: renders
src/pages/Tutoriales/Tutoriales.jsx - Tutorial reader → Orders store: reads tutorials
src/hooks/useFetchTutoriales.js - Cart page → Cart state: uses
src/pages/Carrito/Carrito.jsx - Checkout → Cart state: reads and clears
src/pages/Checkout/Checkout.jsx - Checkout → Orders store: creates order
src/pages/Checkout/Checkout.jsx - Checkout → Post-purchase signup: navigates
src/pages/Checkout/Checkout.jsx - Checkout → Order confirmation: navigates
src/pages/Checkout/Checkout.jsx - Post-purchase signup → Orders store: updates order
src/pages/RegistroPostCompra.jsx - Post-purchase signup → Order confirmation: navigates
src/pages/RegistroPostCompra.jsx - Admin login → Authentication state: uses
src/pages/Admin/Login/Login.jsx - Order management → Orders store: uses
src/pages/Admin/Ordenes/Ordenes.jsx - Tutorial management → Orders store: uses
src/pages/Admin/AdminTutoriales.jsx - Tutorial creation → Orders store: uses
src/pages/Admin/CrearTutorial.jsx - Tutorial editing → Orders store: uses
src/pages/Admin/EditarTutorial.jsx