Local Dev
This guide is for running BeeBuzz locally with the shortest practical setup.
It is intentionally focused on development, not production self-hosting.
Prerequisites
- git
- mise
- a supported browser on the same machine or LAN device you want to pair
What This Uses
- BeeBuzz server, site, and Hive — the core services
- Caddy — reverse proxy
- lancert.dev — local HTTPS certificates and subdomains
- Mailpit — email capture
- mise — task runner and tool manager
1. Clone The Repo
git clone https://github.com/lucor/beebuzz.git
cd beebuzz2. Prepare The Environment
Copy the dev template:
cp .env.example .envSet a bootstrap admin email in .env so you can sign in immediately during private beta:
BEEBUZZ_BOOTSTRAP_ADMIN_EMAIL=you@example.comGenerate VAPID keys once:
go run ./cmd/beebuzz-server vapid generatePaste the generated public and private keys into .env.
3. Install Tools And Dependencies
mise run setupThis installs the required tools, frontend dependencies, Go modules, and local Caddy trust.
4. Start The Full Dev Stack
mise run devOn first run, BeeBuzz:
- detects your LAN IP
- derives a
*.lancert.devdomain (e.g.192-168-1-42.lancert.dev) - offers to update
BEEBUZZ_DOMAINin.env - fetches TLS certificates if needed
The stack includes:
- site
- Hive
- API
- Caddy
- Mailpit
5. Open The Local Apps
Once the stack is up, use these URLs:
- site:
https://$BEEBUZZ_DOMAIN - Hive:
https://hive.$BEEBUZZ_DOMAIN - API:
https://api.$BEEBUZZ_DOMAIN - Mailpit:
http://localhost:8025
6. Sign In
Open the site and request access with the bootstrap email you configured.
The OTP email lands in Mailpit, so you can complete sign-in locally without external email infrastructure.
7. Pair A Device
Open Account -> Devices and click Add Device.
Then:
- open Hive from the generated link or QR code
- install the PWA if prompted
- grant notification permission
- enter the pairing code
For the smoothest results, pair on the same machine first, then test on additional devices if needed.
8. Create A Token
Open Account -> API Tokens and create a token for the topic you want to use.
Copy the token immediately.
9. Connect The CLI
beebuzz connect --api-url "https://api.$BEEBUZZ_DOMAIN"Paste the token when prompted.
10. Send A Test Message
beebuzz send "Local dev works"If the device is paired and permissions are still valid, the notification should arrive right away.
Notes
- This flow is for local development only.
- It is the recommended way to validate the full BeeBuzz loop quickly during beta.
- Detailed production deployment docs will come later, once the self-host path is ready to support properly.