TheDocumentation 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.
ClienteTiendaPlayeras application is a Laravel 12 PHP frontend that communicates with the Java backend through PlayerasController. The controller proxies every CRUD and sell operation to the ServidorTiendaPlayeras servlet using Laravel’s HTTP client — the Laravel app itself does not persist any product data. Make sure the Java backend is already running before you start the client.
The Laravel application does not store product data locally. Every request — listing, creating, updating, deleting, and selling products — is forwarded to the Java backend at
http://localhost:8080/ServidorTiendaPlayeras/ProductoServlet. The local SQLite database is used only for Laravel internals such as sessions and cache.Install PHP dependencies
Navigate to the
ClienteTiendaPlayeras directory and install all Composer packages, including Laravel 12 and Laravel Tinker:Set up the environment file
Copy the example environment file and generate a unique application key:The default
.env.example configures SQLite as the database connection (DB_CONNECTION=sqlite), which is suitable for the client — it only needs a local database for Laravel’s own session and cache tables, not for product data.Run database migrations
Create the SQLite database file and run the migrations to set up Laravel’s internal tables (sessions, cache, jobs, etc.):
Available Routes
All product operations are handled byPlayerasController and routed through the following endpoints:
| Method | Path | Description |
|---|---|---|
| GET | / | List all products |
| POST | /store | Create a new product |
| PUT | /update/{id} | Update an existing product by ID |
| DELETE | /destroy/{id} | Delete a product by ID |
| POST | /vender/{id} | Sell (decrement stock of) a product by ID |