Skip to content

Running ByteBox

ByteBox supports three primary runtime modes.

Use this when actively building features.

Terminal window
npm run dev
  • Runs at http://localhost:1334
  • Hot reload enabled
  • Uses your local SQLite database

Use this for zero-host-dependency server deployment.

Terminal window
docker compose up --build -d
  • Exposes 1334
  • Persists data in bytebox-data volume
  • Runs migrations on container startup via docker-entrypoint.sh

Useful commands:

Terminal window
docker compose down
docker compose up -d
docker compose logs -f

Use this for a native installed app experience. Currently available for Linux.

Pre-built installers for v2.4.0:

Terminal window
npm run electron:dev # dev mode
npm run electron:build:linux # production build

Behavior highlights:

  • Dev mode connects Electron to Next dev server on 1334
  • Packaged app runs a local Next server inside Electron
  • Packaged app stores DB under OS user data directory
  • Migrations are applied automatically in packaged startup

Core values:

  • DATABASE_URL (default file:./dev.db)
  • PORT (default 1334 in wrapper)
  • NEXT_TELEMETRY_DISABLED (set in several runtime paths)
  • Run migrations before app startup (or ensure startup path does it)
  • Back up SQLite file/volume
  • Verify health endpoint (/api/cards)
  • Run lint + typecheck + build in CI