Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.43 KB

File metadata and controls

47 lines (33 loc) · 1.43 KB

fAIr Development Setup

Prerequisites

  • Docker Desktop or Docker Engine + Docker Compose
  • Git
  • 4GB+ RAM
  • A running fair-py-ops dev stack (kind cluster + ZenML + STAC API + MinIO + MLflow).( TODO : Add a single command up to set everything up)

Quick start

git clone https://github.com/hotosm/fAIr.git
cd fAIr
docker compose up postgres -d
cp backend/.env.example backend/.env
# fill in real values, see backend/README.md for which vars are required
docker compose up api worker

The frontend service runs under the dev profile (docker compose --profile dev up frontend).

Default ports

  • 3500: Frontend
  • 8000: API
  • 5434: PostgreSQL (host)

Endpoints

All v1 routes are under /api/v1/. Versioning uses DRF NamespaceVersioning, so request.version is set per request and /api/v2/ is one URL line away when needed.

Configuration

backend/.env is read by pydantic-settings. Required vars raise at boot if missing. See backend/README.md for a concise overview and backend/.env.example for the annotated source of truth.

Help