How agusarik/ecommerce-dsw-frontend works
This is a React frontend for browsing and purchasing furniture, backed by an HTTP API at the configured backend. The main user flow routes from the shared app shell to the home/catalog and furniture detail views, then uses cart and favorites state; account, order, and login pages provide supporting flows. Admin screens create and edit catalog data. Edges are limited to routing, imports and calls visible in the supplied excerpts or SOURCE INDEX; unsampled page behavior is not inferred.
Main entry points: App.tsx App router · axiosInstance.tsx Axios client · FavoriteButton.tsx Favorite button · productoshome.tsx Featured furniture
Components 25
App and discovery
- App router
src/App.tsx - Home
src/pages/home.tsx - Home carousel
src/components/carrusell.tsx - Featured furniture
src/components/productoshome.tsx - Header
src/components/header.tsx - Search bar
src/components/SearchBar.tsx - Furniture catalog
src/pages/muebles.tsx - Search results
src/pages/buscador.tsx - Furniture detail
src/pages/muebleDetail.tsx
Shopping and state
- Cart page
src/pages/carrito.tsx - Cart state
src/context/carritoContext.tsx - Favorites page
src/pages/favoritos.tsx - Favorite button
src/components/FavoriteButton.tsx - Favorites state
src/context/favoritosContext.tsx
Accounts and orders
Catalog administration
- Create catalog
src/pages/adminCrear.tsx
Shared services
- Axios client
src/api/axiosInstance.tsx - Currency formatter
src/utils/formatCurrency.ts - Domain types
src/types.tsx - Footer
src/components/footer.tsx
Other components
- Shopper
- Backend API
Connections 47
- Shopper → App router: uses
src/App.tsx - App router → Home: routes
src/App.tsx - App router → Furniture catalog: routes
src/App.tsx - App router → Search results: routes
src/App.tsx - App router → Furniture detail: routes
src/App.tsx - App router → Cart page: routes
src/App.tsx - App router → Favorites page: routes
src/App.tsx - App router → Login: routes
src/App.tsx - App router → Profile: routes
src/App.tsx - App router → My orders: routes
src/App.tsx - App router → Customers: routes
src/App.tsx - App router → Create catalog: routes
src/App.tsx - App router → Header: renders
src/App.tsx - App router → Footer: renders
src/App.tsx - Home → Home carousel: renders
src/pages/home.tsx - Home → Featured furniture: renders
src/pages/home.tsx - Header → Search bar: renders
src/components/header.tsx - Featured furniture → Axios client: fetches furniture
src/components/productoshome.tsx - Furniture catalog → Axios client: fetches furniture
src/pages/muebles.tsx - Search results → Axios client: searches furniture
src/pages/buscador.tsx - Furniture detail → Axios client: loads and edits
src/pages/muebleDetail.tsx - Create catalog → Axios client: creates catalog data
src/pages/adminCrear.tsx - Login → Axios client: authenticates
src/pages/login.tsx - Profile → Axios client: loads profile
src/pages/perfil.tsx - My orders → Axios client: loads orders
src/pages/misPedidos.tsx - Customers → Axios client: loads customers
src/pages/clientes.tsx - Favorites state → Axios client: loads and updates
src/context/favoritosContext.tsx - Axios client → Backend API: sends HTTP requests
src/api/axiosInstance.tsx - Featured furniture → Cart state: adds item
src/components/productoshome.tsx - Furniture detail → Cart state: adds item
src/pages/muebleDetail.tsx - Cart page → Cart state: uses cart
src/pages/carrito.tsx - Header → Cart state: reads cart
src/components/header.tsx - Cart page → Currency formatter: formats prices
src/pages/carrito.tsx - My orders → Currency formatter: formats prices
src/pages/misPedidos.tsx - Furniture catalog → Currency formatter: formats prices
src/pages/muebles.tsx - Search results → Currency formatter: formats prices
src/pages/buscador.tsx - Furniture detail → Currency formatter: formats prices
src/pages/muebleDetail.tsx - Featured furniture → Favorite button: renders
src/components/productoshome.tsx - Furniture catalog → Favorite button: renders
src/pages/muebles.tsx - Search results → Favorite button: renders
src/pages/buscador.tsx - Furniture detail → Favorite button: renders
src/pages/muebleDetail.tsx - Favorites page → Favorite button: renders
src/pages/favoritos.tsx - Favorite button → Favorites state: toggles favorite
src/components/FavoriteButton.tsx - Favorites page → Favorites state: reads favorites
src/pages/favoritos.tsx - Featured furniture → Domain types: uses furniture types
src/components/productoshome.tsx - Cart state → Domain types: uses cart types
src/context/carritoContext.tsx - Favorites state → Domain types: uses furniture types
src/context/favoritosContext.tsx