Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 813 Bytes

README.md

File metadata and controls

43 lines (36 loc) · 813 Bytes

Setup

  1. Install dependencies.

    uv sync
  2. Install pre-commit to automatically lint and format via ruff before commit

    uv run pre-commit install
  3. Generate ES256 private key

    openssl ecparam -name prime256v1 -genkey -noout -out src/auth/certs/private_key.pem
  4. Generate ES256 public key

    openssl ec -in src/auth/certs/private_key.pem -pubout -out src/auth/certs/public_key.pem

Launch

Docker

  • Development mode (fast-refresh)

    docker compose watch
  • Production mode

    docker compose up --build -d

Pure python

  • Development mode (fast-refresh)

    uv run fastapi dev
  • Production mode

    uv run --no-dev fastapi run