How pablo-f42/preentrega2-faz works
Project type and purpose
• This is a single‑page front‑end application (an e‑commerce demo) built with React, bundled by Vite, and using a local mock service for data. No backend is included; data is returned from src/asyncmock.js.
• Purpose: to display lists of items, show item details, and manage a cart widget in a lightweight React+Vite setup.
File structure
• Top level:
• index.html + public/ → static HTML and assets (images, favicon, etc.)
• src/ → all React code and stylesheets
• vite.config.js → build & dev‑server configuration
• .eslintrc.cjs, package.json → linting and dependency management
• Inside src/:
• main.jsx → React app entry point
• App.jsx & App.css → root component and global styles
• Component folders: each has its .jsx + .css:
– Presentational: Item/, ItemDetail/, CartWidget/, NavBar/
– Container: ItemListContainer/, ItemDetailContainer/
– Composite: ItemList/
• asyncmock.js → mock data service
• assets/, CSS in src/index.css
README
• Confirms React+Vite template with Hot Module Replacement.
• Mentions two official plugins (@vitejs/plugin-react or -swc) for fast refresh.
• No runtime backend—data comes from local mocks.
Detail
• Sub‑components (NavBar, Item, ItemDetail, etc.)
• Don’t omit the mock service or the build pipeline
• CSS modules alongside components to highlight styling boundaries