The Tienda de Playeras dashboard atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LucaXGit/proyecto-final-jaz/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:8000 gives you full control over your t-shirt product catalog. From a single interface you can view all available products, add new ones, update existing details, and remove items that are no longer offered — every action is relayed in real time to the Java/Tomcat REST backend.
Viewing Products
When you open the dashboard, the Laravel frontend issues aGET request to the Java backend and renders the response as a responsive card grid (three columns on medium and wider screens). Each card displays:
- Product name — shown as a blue heading
- ID — the unique database identifier
- Talla — size displayed as a badge (CH, M, G, or XG)
- Stock — available units, e.g. “12 piezas”
- Price — formatted as
$X.XX MXN
Adding a Product
Open the Add Product modal
Click the “Agregar Nueva Playera” button in the navbar. A Bootstrap modal will appear with an empty form ready to fill in.
Fill in the product details
Complete all fields in the modal form:
The talla field maps to the following size options:
| Field | Type | Notes |
|---|---|---|
| nombre | Text | Product name, e.g. “Playera Oversize Anime” |
| talla | Select | CH, M, G, or XG |
| precio | Decimal | Price in MXN, e.g. 299.90 |
| stock | Integer | Available units |
- CH — Chica
- M — Mediana
- G — Grande
- XG — Extra Grande
Submit the form
Click “Guardar Producto”. The form
POSTs to /store, which forwards the data to ProductoServlet with accion=crear:Editing a Product
Open the Edit modal
Click the “✏️ Editar” button in the footer of any product card. A Bootstrap modal opens with all fields pre-filled with the product’s current values.
Modify the desired fields
Update any combination of nombre, talla, precio, or stock. The size select and all other inputs work identically to the Add Product form.
Save your changes
Click “Guardar Cambios”. The form uses
@method('PUT') for Laravel method spoofing and submits to /update/{id}, which issues a PUT request to the backend:Deleting a Product
To permanently remove a product from the catalog, click the “🗑️ Borrar” button on its card. A native browser confirmation dialog will appear:¿Seguro que deseas eliminar esta playera permanentemente?Confirm the dialog to proceed. The form uses
@method('DELETE') for Laravel method spoofing and submits to /destroy/{id}, which sends a DELETE request to the backend: