How liryoz/eva3-fullstack works
Veterinaria Liry is a React SPA for veterinary services and online sales. Customers browse products, manage a cart, initiate Webpay checkout, and book appointments; staff sign in to manage products, users, and appointments. The main router dispatches URLs to these page workflows. Data is cached in browser localStorage, while sampled service code also calls a backend API and redirects to Webpay. Some relationships for unsampled pages and service modules rely on the README and SOURCE INDEX references rather than inspected implementations.
Main entry points: main.jsx Route dispatcher · api.js API and auth · productos.js Product catalog · carrito.jsx Cart and checkout
Components 24
App routing
- Route dispatcher
src/main.jsx
Customer workflows
- Home page
src/pages/inicio.jsx - Product shop
src/pages/tienda.jsx - Product card
src/components/tarjetaProducto.jsx - Cart and checkout
src/pages/carrito.jsx - Purchase result
src/pages/compraRealizada.jsx - Appointment booking
src/pages/agendarHora.jsx - Sign-in page
src/pages/iniciarSesion.jsx
Staff workflows
- Admin overview
src/pages/Admin/admin.jsx - User management
src/pages/Admin/usuarios.jsx - Appointment management
src/pages/Admin/gestionarCitas.jsx - Product management
src/pages/Admin/Vendedor/vendedor.jsx
Data and integrations
- Cart operations
src/services/carrito.js - Product catalog
src/services/productos.js - Purchase service
src/services/compras.js - Appointment service
src/services/horaAgendada.js - User service
src/services/usuarios.js - API and auth
src/services/api.js - Browser storage
- Backend API
- Webpay
Other components
- Customer
- Administrator
- Seller
Connections 40
- Customer → Route dispatcher: opens pages
README.md - Administrator → Route dispatcher: opens pages
README.md - Seller → Route dispatcher: opens pages
README.md - Route dispatcher → Home page: routes to
src/main.jsx - Route dispatcher → Product shop: routes to
src/main.jsx - Route dispatcher → Cart and checkout: routes to
src/main.jsx - Route dispatcher → Purchase result: routes to
src/main.jsx - Route dispatcher → Appointment booking: routes to
src/main.jsx - Route dispatcher → Sign-in page: routes to
src/main.jsx - Route dispatcher → Admin overview: routes to
src/main.jsx - Route dispatcher → User management: routes to
src/main.jsx - Route dispatcher → Appointment management: routes to
src/main.jsx - Route dispatcher → Product management: routes to
src/main.jsx - Home page → Product catalog: loads products
src/pages/inicio.jsx - Home page → Product card: renders
src/pages/inicio.jsx - Product shop → Product catalog: loads products
src/pages/tienda.jsx - Product shop → Product card: renders
src/pages/tienda.jsx - Product card → Cart operations: adds products
src/components/tarjetaProducto.jsx - Cart and checkout → Cart operations: reads and updates
src/pages/carrito.jsx - Cart and checkout → Purchase service: requests payment
src/pages/carrito.jsx - Purchase result → Purchase service: checks purchase
src/pages/compraRealizada.jsx - Purchase result → Cart operations: clears cart
src/pages/compraRealizada.jsx - Cart and checkout → Webpay: redirects to
src/pages/carrito.jsx - Appointment booking → Appointment service: saves appointment
README.md - Admin overview → User service: loads user totals
src/pages/Admin/admin.jsx - Admin overview → Appointment service: loads appointment totals
src/pages/Admin/admin.jsx - User management → User service: loads users
src/pages/Admin/usuarios.jsx - Appointment management → Appointment service: manages appointments
src/pages/Admin/gestionarCitas.jsx - Product management → Product catalog: manages products
src/pages/Admin/Vendedor/vendedor.jsx - Sign-in page → API and auth: authenticates
src/pages/iniciarSesion.jsx - Route dispatcher → API and auth: gets UI token
src/main.jsx - Route dispatcher → Product catalog: loads catalog
src/main.jsx - Product catalog → API and auth: uses API helpers
src/services/productos.js - Purchase service → API and auth: uses API helpers
src/services/compras.js - Appointment service → API and auth: uses API helpers
src/services/horaAgendada.js - User service → API and auth: uses API helpers
src/services/usuarios.js - API and auth → Backend API: sends API requests
src/services/api.js - Cart operations → Browser storage: reads and writes
src/services/carrito.js - Product catalog → Browser storage: caches products
src/services/productos.js - API and auth → Browser storage: stores session
src/services/api.js