Skip to content

a5xwin/fairscore

Repository files navigation

FairScore Full-Stack Run Guide

This project has a FastAPI backend and a Vite React frontend.

One-command development run (cross-platform)

From the project root, run:

python scripts/bootstrap_and_run.py

This starts both services:

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.

First-time setup on a new device

  1. Create and activate a Python virtual environment.

Windows (PowerShell):

py -3.11 -m venv .venv
.\.venv\Scripts\Activate.ps1

macOS/Linux:

python3 -m venv .venv
source .venv/bin/activate
  1. Start everything.
python scripts/bootstrap_and_run.py

If 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.py

Optional custom ports/hosts

python scripts/bootstrap_and_run.py --backend-port 9000 --frontend-port 5174 --backend-host 127.0.0.1 --frontend-host 127.0.0.1

Optional bootstrap flags

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors