This project has a FastAPI backend and a Vite React frontend.
From the project root, run:
python scripts/bootstrap_and_run.pyThis starts both services:
- Backend: http://0.0.0.0:8000
- Frontend: http://0.0.0.0:5173
Use Ctrl+C once to stop both.
Note:
- The bootstrap launcher auto-installs missing backend/frontend dependencies.
- The launcher performs a model preflight check.
- If ensemble model files are missing, services still start, but prediction endpoints may fail until training artifacts are generated.
- Create and activate a Python virtual environment.
Windows (PowerShell):
py -3.11 -m venv .venv
.\.venv\Scripts\Activate.ps1macOS/Linux:
python3 -m venv .venv
source .venv/bin/activate- Start everything.
python scripts/bootstrap_and_run.pyIf model files are missing, generate them with:
python backend/models/preprocessing.py
python backend/models/random_forest.py
python backend/models/lightgbm_model.py
python backend/models/tab_transformer.py
python backend/models/stacked_ensemble.pypython scripts/bootstrap_and_run.py --backend-port 9000 --frontend-port 5174 --backend-host 127.0.0.1 --frontend-host 127.0.0.1# Reinstall dependencies even if checks pass
python scripts/bootstrap_and_run.py --force-install
# Train missing model artifacts before starting services
python scripts/bootstrap_and_run.py --train-missing-models
# Skip installs when dependencies are already present
python scripts/bootstrap_and_run.py --skip-python-install --skip-node-install
# Run without bootstrap logic (legacy launcher)
python scripts/dev_runner.py