Running ByteBox
ByteBox supports three primary runtime modes.
1. Web Development Mode
Section titled “1. Web Development Mode”Use this when actively building features.
npm run dev- Runs at
http://localhost:1334 - Hot reload enabled
- Uses your local SQLite database
2. Docker Deployment
Section titled “2. Docker Deployment”Use this for zero-host-dependency server deployment.
docker compose up --build -d- Exposes
1334 - Persists data in
bytebox-datavolume - Runs migrations on container startup via
docker-entrypoint.sh
Useful commands:
docker compose downdocker compose up -ddocker compose logs -f3. Electron Desktop App
Section titled “3. Electron Desktop App”Use this for a native installed app experience. Currently available for Linux.
Download
Section titled “Download”Pre-built installers for v2.4.0:
- ByteBox-2.4.0.AppImage — Universal Linux (any distro)
- bytebox_2.4.0_amd64.deb — Debian / Ubuntu / Mint
Build From Source
Section titled “Build From Source”npm run electron:dev # dev modenpm run electron:build:linux # production buildBehavior 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
Environment Variables
Section titled “Environment Variables”Core values:
DATABASE_URL(defaultfile:./dev.db)PORT(default1334in wrapper)NEXT_TELEMETRY_DISABLED(set in several runtime paths)
Production Safety Checklist
Section titled “Production Safety Checklist”- 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