Skip to content

Local setup ​

Run Postgres and the auth sidecar in Docker, and the orbit binary and the web app on your machine.

Prerequisites ​

ToolUsed for
Rust stable (1.94+)the orbit binary
Node 24+ and pnpmthe web app and these docs (never npm or yarn)
Docker with ComposePostgres, the auth sidecar, integration tests
opensslgenerating secrets

Start the stack ​

  1. Generate secrets and start Postgres and the sidecar:
    bash
    deploy/gen-env.sh                      # writes deploy/.env, never overwrites it
    docker compose -f deploy/docker-compose.dev.yml up -d --wait
    set -a; . deploy/.env; set +a
  2. Run every migration (the only command that uses the owner login):
    bash
    cargo run -p orbit --all-features -- migrate
  3. Start the serving roles without the owner URL (they refuse it):
    bash
    env -u ORBIT_MIGRATION_DATABASE_URL cargo run -p orbit --all-features -- --role all
  4. Start the web app on http://localhost:5173. Vite proxies /api/auth, /graphql, /mcp and /files to the sidecar and the API:
    bash
    cd web && pnpm install && pnpm dev

The dev sidecar allows open sign-up and organisation creation, and logs email links instead of sending them. The self-hosted stack keeps both off.

Create a tenant ​

Sign up in the web app (or use services/auth/src/bootstrap.ts), then provision the tenant for that organisation. Tenants are never created from a sign-in.

bash
cargo run -p orbit --all-features -- tenant provision \
  --org-id <sidecar organisation id> --name "Acme" --module core

Enable more modules as an admin, through any door:

bash
orbit kernel module enable --module leave

Small machine?

CARGO_PROFILE_DEV_DEBUG=0 CARGO_BUILD_JOBS=3 cargo build -p orbit --all-features builds the binary without debug info, with less memory.

Tests ​

bash
ORBIT_REQUIRE_DOCKER=1 cargo test --workspace   # unit, integration (testcontainers) and authz
cd web && pnpm typecheck && pnpm lint && pnpm test
deploy/smoke.sh                                 # the whole self-hosted stack, end to end

These docs ​

bash
cd docs && pnpm install && pnpm dev     # http://localhost:5173/docs/
pnpm build                              # fails on a dead link

Refreshing the screenshots is described in Contributing.

Orbit by SkySync Tech. Licensed under AGPL-3.0.