Developer Guide

Essential commands and workflows for developing on Fortifiers.

🚀 Backend (`services/backend`)

Setup & Running

  • Start Backend Server:
    uvicorn src.main:app --reload --port 8000
  • Install Dependencies:
    pip install -r requirements.txt

Database & Migrations

  • Run Migrations:
    alembic upgrade head

Testing

  • Run All Tests:
    pytest

Deployment (Fly.io)

  • Deploy Backend:
    fly deploy
  • View Logs:
    fly logs

💻 Frontend (`apps/web`)

Setup & Running

  • Start Development Server:
    npm run dev
  • Install Dependencies:
    npm install

Building

  • Build for Production:
    npm run build

🐳 Docker

  • Build & Run Services:
    docker-compose up --build
  • Stop Services:
    docker-compose down

🛠️ Utility Scripts

  • Create Manual Quote:
    python scripts/create_manual_quote.py
  • Migrate Data:
    python migrate_audit_logs_to_parquet.py