Running Restaurant Equis locally gives you a full-fidelity development environment — the React 19 frontend on port 3000, the FastAPI backend on port 5000, and a PostgreSQL 15+ database. You can spin up the database either as a native service or via Docker, then start the frontend and backend processes independently for the fastest development loop.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/teofilobetancourt/Restaurant-Equis/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following tools are installed on your machine:- Node.js 18+ — required to install frontend dependencies and run
npm run dev - Python 3.11+ — required to run the FastAPI backend with Uvicorn
- PostgreSQL 15+ or Docker — to provide the database (see Option B for the Docker path)
- Git — to clone the repository
Option A: Manual Setup
Create the frontend environment file
Create a
.env.local file in the project root with the following variables:VITE_API_URL tells the React app where to reach the backend. VITE_WHATSAPP_NUMERO is the restaurant’s WhatsApp number used by the POS module to pre-fill order messages.Configure the backend environment
Copy the provided example file and fill in your local PostgreSQL credentials:Open Make sure a PostgreSQL database named
backend/.env and update the values:restaurant_equis exists and the user has full privileges on it.Start the FastAPI backend
From inside the The backend will be available at
backend/ directory, launch the Uvicorn development server:http://localhost:5000. On first start, SQLAlchemy automatically creates all required tables (productos, pedidos, items_pedido, inventario, proveedores).Start the React frontend
Open a new terminal, return to the project root, and run the Vite dev server:Vite will start the frontend at
http://localhost:3000.Open the application
Navigate to http://localhost:3000 in your browser. The React SPA will load and connect to the FastAPI backend running on port 5000.
Option B: PostgreSQL via Docker
If you prefer not to install PostgreSQL natively, the includeddocker-compose.yml starts only the database in a container. You still run the frontend and backend processes manually on your host machine.
1. Start the PostgreSQL container:
postgres:16-alpine container named restaurant_equis_db with the following defaults:
localhost:5432 and data is persisted in the postgres_data Docker volume.
2. Update backend/.env to match the Docker credentials:
Verifying the Stack
Once both processes are running, confirm each layer is healthy:| Check | URL | Expected Result |
|---|---|---|
| Backend health | http://localhost:5000/api/ | JSON response — {"status": "ok"} |
| Swagger UI | http://localhost:5000/api/docs | Interactive API documentation |
| React frontend | http://localhost:3000 | Restaurant Equis app loads |
On the very first run, SQLAlchemy creates all database tables automatically — no manual SQL migrations are needed. The application is ready to use immediately after the backend starts; you can begin adding dishes, tables, and orders straight away.