Getting Simplex Optimizer running locally takes just a few minutes. The project is split into two independent services — a Python FastAPI backend and a React + TypeScript frontend — each with its own dependency installation and environment configuration. Follow the steps below to bring both up on your machine with full hot-reload support.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/FabianeloV/Metodo-simplex/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Make sure the following tools are installed and available on yourPATH before you begin:
| Tool | Minimum version | Purpose |
|---|---|---|
| Python | 3.11+ | Backend runtime |
| Node.js | 18+ | Frontend runtime |
| npm | Bundled with Node.js | Frontend package manager |
| git | Any recent version | Cloning the repository |
Backend Setup
Create a virtual environment
A virtual environment keeps the backend dependencies isolated from your system Python installation.
Activate the virtual environment
(.venv) to confirm activation.Configure environment variables
Copy the example file and edit it as needed. For a default local run no changes are required.
Frontend Setup
Navigate to the frontend directory
Open a new terminal from the repository root (keep the backend terminal running).
Access Points
Once both servers are running, open the following URLs in your browser:| Service | URL |
|---|---|
| React frontend | http://localhost:5173 |
| FastAPI backend (root) | http://localhost:8000 |
| Swagger UI (interactive docs) | http://localhost:8000/docs |
| ReDoc | http://localhost:8000/redoc |
Environment Variables Reference
Backend (backend/.env)
| Variable | Default | Description |
|---|---|---|
APP_HOST | 0.0.0.0 | Interface the Uvicorn server binds to |
APP_PORT | 8000 | Port the backend listens on |
APP_RELOAD | true | Enables Uvicorn auto-reload on file changes |
CORS_ORIGINS | http://localhost:5173,http://localhost:3000 | Comma-separated list of allowed CORS origins |
Frontend (frontend/.env)
| Variable | Default | Description |
|---|---|---|
VITE_API_URL | http://localhost:8000/api/v1 | Base URL for all API requests (no trailing slash) |