How emabarra/react-fullstack2 works
Huerto Hogar is a React storefront and account/admin interface. Users enter through the browser router, browse product categories, and can manage a cart stored in browser local storage; account, loyalty, editorial, store-location, and administrative screens are also present. Login uses an API client that sends requests to a configured service. The README describes only the Vite template, so product capabilities are inferred from the source tree and sampled files; unsampled pages are included without speculative connections.
Main entry points: routes.jsx Page router · frutafresca.jsx Fresh fruit · verduraorganica.jsx Organic vegetables · productoslacteos.jsx Dairy products
Components 28
App entry and routing
- React entry
src/main.jsx - Page router
src/routes.jsx
Storefront and shopping
- Home
src/pages/inicio/inicio.jsx - Product categories
src/pages - Fresh fruit
src/pages/frutafresca/frutafresca.jsx - Organic vegetables
src/pages/verduraorganica/verduraorganica.jsx - Dairy products
src/pages/productoslacteos/productoslacteos.jsx - Cart storage
- Loyalty program
src/pages/fidelizacion/fidelizacion.jsx - News blog
src/pages/blog/blog.jsx - Store locations
src/pages/tiendas/tiendas.jsx - Contact and reviews
src/pages
Accounts and administration
- Account access
src/pages - Login
src/pages/login/login.jsx - Registration
src/pages/registrarse/registrarse.jsx - User profile
src/pages/perfilusuario/perfilusuario.jsx - Purchase history
src/pages/historialcompras/historialcompras.jsx - Admin dashboard
src/pages/admin/admin.jsx - Product management
src/pages/gestionprod/gestionprod.jsx - User management
src/pages/gestionuser/gestionuser.jsx
Shared UI and services
- Store navigation
src/components/navbar/navbar.jsx - Admin navigation
src/components/navbarAdmin/navbarAdmin.jsx - User navigation
src/components/navbarUsuario/navbarUsuario.jsx - Alert display
src/components/alert/alert.jsx - Auth API adapter
src/api/authApi.js - HTTP client
src/api/client.js
Other components
- Browser user
- Configured API
Connections 33
- Browser user → React entry: opens app
src/main.jsx - React entry → Page router: mounts router
src/main.jsx - Page router → Home: routes to
src/routes.jsx - Page router → Product categories: routes to
src/routes.jsx - Page router → Fresh fruit: routes to
src/routes.jsx - Page router → Organic vegetables: routes to
src/routes.jsx - Page router → Dairy products: routes to
src/routes.jsx - Page router → Loyalty program: routes to
src/routes.jsx - Page router → News blog: routes to
src/routes.jsx - Page router → Store locations: routes to
src/routes.jsx - Page router → Account access: routes to
src/routes.jsx - Page router → Login: routes to
src/routes.jsx - Page router → Registration: routes to
src/routes.jsx - Page router → User profile: routes to
src/routes.jsx - Page router → Purchase history: routes to
src/routes.jsx - Page router → Admin dashboard: routes to
src/routes.jsx - Page router → Product management: routes to
src/routes.jsx - Page router → User management: routes to
src/routes.jsx - Page router → Contact and reviews: routes to
src/routes.jsx - Fresh fruit → Cart storage: reads and writes
src/pages/frutafresca/frutafresca.jsx - Organic vegetables → Cart storage: reads and writes
src/pages/verduraorganica/verduraorganica.jsx - Dairy products → Cart storage: reads and writes
src/pages/productoslacteos/productoslacteos.jsx - Login → Auth API adapter: calls
src/pages/login/login.jsx - Auth API adapter → HTTP client: uses
src/api/authApi.js - HTTP client → Configured API: sends requests
src/api/client.js - Product management → Admin navigation: renders
src/pages/gestionprod/gestionprod.jsx - User management → Admin navigation: renders
src/pages/gestionuser/gestionuser.jsx - Product management → Alert display: renders
src/pages/gestionprod/gestionprod.jsx - User management → Alert display: renders
src/pages/gestionuser/gestionuser.jsx - Fresh fruit → Store navigation: renders
src/pages/frutafresca/frutafresca.jsx - Organic vegetables → Store navigation: renders
src/pages/verduraorganica/verduraorganica.jsx - Dairy products → Store navigation: renders
src/pages/productoslacteos/productoslacteos.jsx - Purchase history → User navigation: renders
src/pages/historialcompras/historialcompras.jsx