Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/JAQA20/LaComanda/llms.txt

Use this file to discover all available pages before exploring further.

La Comanda is a web-based order management platform built for restaurants and cafés that need a reliable, structured workflow from table to kitchen. It replaces paper tickets and verbal handoffs with a digital system where waiters submit orders, and each item is automatically routed to the right station — kitchen for food, barista for drinks — based on product category. Built on PHP 8.2, MySQL 8, and Apache, and packaged as a Docker Compose stack, La Comanda is designed to be straightforward to deploy, easy to manage, and practical for day-to-day service operations.

Key Features

Role-Based Access

Four distinct roles — Admin, Waiter, Kitchen, and Barista — each with a tailored interface and permissions scoped to their station’s responsibilities.

Smart Order Routing

Order items are automatically dispatched to the correct station based on category slug: food items go to the kitchen, and items with café or beverage slugs route to the barista.

Table Map with Drag-and-Drop

Admins can design the dining room layout visually, placing and repositioning tables on an interactive floor map with drag-and-drop controls.

Product Catalog Management

Manage your full menu from the admin panel — add products, assign categories, set prices, and control availability without touching the database directly.

Active Session Monitoring

Admins can view active user sessions in real time, giving visibility into who is logged in and operating the system at any given moment.

Docker-First Deployment

The entire stack — Apache, PHP 8.2, and MySQL 8 — runs inside Docker containers, ensuring consistent environments from local development through to production.

System Architecture

La Comanda follows a classic MVC (Model-View-Controller) structure, keeping business logic, data access, and presentation cleanly separated.
  • Controllers handle incoming HTTP requests, coordinate business logic, and return responses. Each feature area (orders, products, users, tables) has its own controller class.
  • Models encapsulate all database interactions using PDO, mapping database rows to PHP objects and enforcing data integrity at the application layer.
  • Views are PHP-rendered HTML templates, organized by role so each user type sees only the interface relevant to their station.
  • public/api/ endpoints expose lightweight JSON APIs consumed by the front-end for asynchronous updates — for example, polling order status on the kitchen and barista displays.
The application stack:
LayerTechnology
Language & RuntimePHP 8.2
Web ServerApache (via php:8.2-apache Docker image)
DatabaseMySQL 8
ContainerizationDocker Compose
Apache routes all requests through a .htaccess rewrite rule to the front controller, and the database schema is seeded automatically on first container startup via an initialization SQL script mounted into the MySQL container.

Default Test Accounts

La Comanda ships with four pre-seeded accounts for testing each role immediately after setup.
RoleEmailPassword
Adminadmin@proyecto.comAdmin123!
Waitermesero@proyecto.comMesero123!
Kitchencocina@proyecto.comCocina123!
Baristabarista@lacomanda.comBarista123!
Change all default passwords before deploying to production.

Next Steps

Quickstart

Run La Comanda locally in under five minutes using Docker Compose.

Roles Overview

Learn what each role can see and do, and how permissions are enforced across the system.

Build docs developers (and LLMs) love