This guide walks you through cloning the repository, starting both services on your machine, and sending your first optimization request to the API — all in about five minutes. By the end you will have the interactive frontend running atDocumentation 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.
http://localhost:5173 and the REST API serving at http://localhost:8000.
Prerequisites
Before you begin, make sure the following are installed on your machine:- Python 3.11+ — required by the FastAPI backend and its numerical dependencies (NumPy, SymPy).
- Node.js 18+ and npm — required to install and run the React frontend.
Backend Setup
Create and activate a virtual environment
A virtual environment keeps the project’s Python dependencies isolated from your system installation.
Install Python dependencies
| Package | Version |
|---|---|
| fastapi | 0.115.0 |
| uvicorn[standard] | 0.30.6 |
| pydantic | 2.9.2 |
| numpy | 2.1.1 |
| sympy | 1.13.3 |
| python-dotenv | 1.0.1 |
| httpx | 0.27.2 |
Configure environment variables
Copy the example environment file and adjust values as needed:The default
.env.example contains:.env
CORS_ORIGINS must include the URL where the frontend runs. The default value already covers Vite’s default dev-server port (5173).Frontend Setup
Open a new terminal and navigate back to the project root before running these steps.Configure the API base URL
.env
All environment variables consumed by Vite must be prefixed with
VITE_. The frontend’s HTTP service reads VITE_API_URL at build time via import.meta.env.VITE_API_URL.Your First API Call
With the backend running, send a POST request to solve a three-variable linear programming problem. The example below maximizes the objective function Z = 3x₁ + 2x₂ + 5x₃ subject to three resource constraints:Expected Response
| Field | Description |
|---|---|
status | Solution status: optimal, unbounded, or infeasible |
objective_value | The value of the objective function at the optimal point |
variables | Map of decision variable names to their optimal values |
iterations | Number of pivot steps performed |
tableau_headers | Column labels for the final simplex tableau |
tableau_rows | Row data for the final simplex tableau |
message | Human-readable summary of the solver result |
Health Check
Each solver router exposes a lightweight health endpoint. Verify the backend is up with:200 OK response confirms the service is running and the route is registered correctly.
Next Steps
- Read the API Reference for full schema documentation on all eight solvers.
- Visit Methods for algorithm explanations and more request/response examples.
- See Architecture for the component structure and deployment guide.