Skip to content

Quickstart

  • Go toolchain
  • PostgreSQL
  • Nix (required for image builds from the web UI)

Set the required variables:

Terminal window
export DATABASE_URL='postgres://user:pass@localhost:5432/fleeti?sslmode=disable'
export WEBAUTHN_RP_ID='localhost'
export WEBAUTHN_RP_ORIGINS='http://localhost:8080'
export CSRF_SECRET='replace-with-a-random-secret'
export BOOTSTRAP_TOKEN='replace-with-a-random-secret'

Optional:

Terminal window
export WEBAUTHN_RP_NAME='Fleeti'

From src/:

Terminal window
go run . migrate up --database-url "$DATABASE_URL"

From src/:

Terminal window
go run . start --database-url "$DATABASE_URL" --port 8080

Open:

http://localhost:8080/setup?token=<BOOTSTRAP_TOKEN>

Then register the first admin passkey via WebAuthn.