Vanguardia EPIS is a FastAPI-based early-warning system for school dropout risk in Peruvian rural schools. It pairs a deterministic rule engine with Google Gemini AI and is designed to run on any machine — including those with limited or intermittent connectivity. This guide walks you through every step from cloning the repository to verifying the server is running correctly.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Pierrot-01/Hackathon_epis_2026/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following are available on your machine:Python 3.11+
Required for all backend dependencies. Check with
python3 --version.pip
Python’s package manager, bundled with Python 3.11+. Check with
pip --version.Gemini API Key
Free developer key from Google AI Studio. Required for live AI responses.
Installation Steps
Install Python dependencies
Install all required packages from the This installs the following packages:
backend/requirements.txt file:| Package | Version | Purpose |
|---|---|---|
fastapi | >=0.115.0 | REST API framework |
uvicorn[standard] | >=0.30.0 | ASGI server for FastAPI |
google-genai | >=2.0.0 | Google Gemini AI client |
python-dotenv | >=1.0.0 | .env file loader |
pydantic | >=2.0.0 | Data validation and models |
Debian / Arch Linux users: If your system Python is managed by the OS package manager and blocks global installs, add the Alternatively, use a Python virtual environment (see Optional: Virtual Environment below).
--break-system-packages flag:Configure environment variables
Create your Then edit See the Configuration page for all available options including the
backend/.env file from the provided template and add your Gemini API key:backend/.env with your key:PORT variable and start.sh flags.Pre-generate the AI cache (recommended)
Before your first run — especially before a demo or offline session — pre-generate all Gemini AI responses into a local cache file. This step avoids rate-limit errors during live presentations:This saves responses to
cache/respuestas_ia.json. See the Cache Generation page for full details.Start the server
Use the automated startup script (Linux / macOS):Or start FastAPI directly from the The server starts on port 8000 by default. Once running, the following URLs are available:
backend/ directory:Main App
http://localhost:8000 — Login screen (index.html)Monitoring Dashboard
http://localhost:8000/monitoreo.html — Interactive risk panelAPI Docs
http://localhost:8000/docs — Swagger / OpenAPI referenceVerifying the Installation
After installation, validate the deterministic rule engine by running the built-in test suite:Optional: Virtual Environment
If you prefer to isolate Vanguardia EPIS dependencies from your system Python, set up a virtual environment before runningpip install:
./start.sh or python3 main.py.