Docker Compose is the recommended way to run La Comanda locally and in development environments. It orchestrates three containers — the React 19 frontend (Vite), the Express 5 + Prisma backend, and a MySQL 8.0 database — from a single configuration file, so you never need to install Node.js, TypeScript, or MySQL directly on your machine.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JAQA20/Paradigmas-G3/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites before you begin:
- Docker Desktop — on Windows, enable the “Use WSL 2 instead of Hyper-V” option during installation and run
wsl --installin an elevated PowerShell session first. - Git — to clone the repository.
docker compose command will work.docker-compose.yml
The file below lives at the root of the repository and defines all three services, their build contexts, port mappings, environment variables, and the shared named volume used for database persistence.docker-compose.yml
Services overview
| Service | Image / build context | Port mapping | Key environment variables |
|---|---|---|---|
frontend | ./frontend (Node 20 Alpine, Vite dev server) | 5173:5173 | VITE_API_URL |
backend | ./backend (Node 20 Alpine, nodemon + ts-node) | 3000:3000 | DATABASE_URL, PORT |
db | mysql:8.0 | 3306:3306 | MYSQL_ROOT_PASSWORD, MYSQL_DATABASE |
- Frontend → http://localhost:5173
- Backend API → http://localhost:3000
- MySQL →
localhost:3306(user:root, password:rootpassword, database:la_comanda)
Common commands
Start all services (with a fresh build):Volume persistence
The named volumemysql_data is mounted at /var/lib/mysql inside the db container. This means your database data survives container restarts and docker compose down calls. Only docker compose down -v (the -v flag) will remove the volume and wipe all stored data. This is useful for a clean-slate reset during development, but exercise caution in any environment with real data.