How beniciocaraccio77/tp-final-leo works
Tienda de Pádel is a mobile storefront for browsing products, viewing details, managing a shared cart, and completing a simulated purchase. The app retrieves the catalog from a FastAPI backend; checkout validates product availability, records an order and its line items, and updates stock in Supabase. The README documents these capabilities and the Supabase-backed deployment. The sampled frontend and backend show the main calls; unsampled routing and other details are represented only where the tree or README supports them.
Main entry points: app/index.jsx Product catalog · carrito/index.jsx Cart and checkout · main.py Catalog and checkout API · estilos.js Shared styling
Components 12
Storefront
- Product catalog
frontend/tienda-padel/src/app/index.jsx - Product cards
frontend/tienda-padel/components/tarjeta.jsx - Store heading
frontend/tienda-padel/components/titulos.jsx - Product detail
frontend/tienda-padel/src/app/detalle/[id].jsx - App routes
frontend/tienda-padel/src/app/_layout.jsx - Shared styling
frontend/tienda-padel/styles/estilos.js
Cart and checkout
- Shared cart state
frontend/tienda-padel/hooks/useCarrito.js - Cart and checkout
frontend/tienda-padel/src/app/carrito/index.jsx
Backend API
- Catalog and checkout API
backend/main.py
Supabase data
- Supabase client
backend/config/supabase.py - Product and order data
Other components
- Shopper
Connections 15
- Shopper → Product catalog: browses
README.md - Product catalog → Catalog and checkout API: fetches catalog
frontend/tienda-padel/src/app/index.jsx - Product catalog → Product cards: renders
frontend/tienda-padel/src/app/index.jsx - Product catalog → Store heading: renders
frontend/tienda-padel/src/app/index.jsx - Product catalog → Product detail: opens details
frontend/tienda-padel/src/app/index.jsx - Product detail → Shared cart state: adds product
frontend/tienda-padel/src/app/detalle/[id].jsx - Cart and checkout → Shared cart state: reads and updates
frontend/tienda-padel/src/app/carrito/index.jsx - Shopper → Cart and checkout: checks out
README.md - Cart and checkout → Catalog and checkout API: posts checkout
frontend/tienda-padel/src/app/carrito/index.jsx - Catalog and checkout API → Supabase client: uses client
backend/main.py - Catalog and checkout API → Product and order data: reads and writes
backend/main.py - Supabase client → Product and order data: connects to
backend/config/supabase.py - Product catalog → Shared styling: uses styles
frontend/tienda-padel/src/app/index.jsx - Product cards → Shared styling: uses styles
frontend/tienda-padel/components/tarjeta.jsx - Cart and checkout → Shared styling: uses styles
frontend/tienda-padel/src/app/carrito/index.jsx