This guide walks you through cloning the repository, installing dependencies, configuring environment variables, and running both the React frontend and the FastAPI backend on your local machine. By the end you will have a fully functional Restaurant Equis instance with a live POS, kitchen display, inventory module, and Swagger API docs — all running atDocumentation 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.
http://localhost:3000.
Prerequisites
Before you begin, make sure the following tools are installed on your system:- Node.js 18+ — nodejs.org
- Python 3.11+ — python.org
- PostgreSQL 15+ — postgresql.org — or Docker to spin up a containerized instance
- Git — git-scm.com
Local Setup
Clone the repository
Clone the Restaurant Equis repository from GitHub and navigate into the project root:
Install frontend dependencies
Install all Node.js packages from the project root. This installs React 19, Vite 6, Tailwind CSS 4, Lucide React, and all other frontend dependencies declared in
package.json:Configure the frontend environment
Create a
.env.local file in the project root with the following variables. VITE_API_URL tells the frontend where your FastAPI backend is listening, and VITE_WHATSAPP_NUMERO is the restaurant’s WhatsApp number used by the POS to generate order summary links..env.local
Install backend dependencies
Move into the The
backend/ directory, install the Python packages, and copy the environment template:requirements.txt pins the following packages:backend/requirements.txt
Configure the backend environment
Open Replace
backend/.env and fill in your PostgreSQL connection details. The file uses the following variables:backend/.env
DB_USER and DB_PASSWORD with the credentials for your local PostgreSQL instance. The database (DB_NAME) will be created automatically by SQLAlchemy on first startup if it does not already exist.Start the backend server
From the On startup, the backend automatically:
backend/ directory, launch the FastAPI application with Uvicorn on port 5000:- Creates the
InventarioPostgreSQL schema if it does not exist. - Runs
Base.metadata.create_all()to create all tables. - Seeds initial demo data (see tip below).
http://127.0.0.1:5000.Start the frontend development server
Open a new terminal, go back to the project root, and start Vite:The application will be available at http://localhost:3000.
Start Commands Reference
The interactive Swagger UI for the REST API is available at http://localhost:5000/api/docs. You can use it to explore all endpoints, inspect request/response schemas, and send test requests directly from the browser.
Using Docker Compose
If you prefer not to install PostgreSQL locally, the project includes adocker-compose.yml that spins up a PostgreSQL 16 container with persistent data storage:
docker-compose.yml
backend/.env to match the Docker credentials: