Setup Overview¶
Use this section to get PowerBeacon running quickly, then choose the setup path that matches your workflow.
flowchart LR
A[Choose Setup Path] --> B{Docker or Local?}
B -->|Docker| C[Run compose stack]
B -->|Local| D[Run backend + frontend directly]
C --> E[Verify health and login]
D --> E
E --> F[Register agents and wake devices]
style A fill:#2563eb,stroke:#1e3a8a,color:#fff
style E fill:#16a34a,stroke:#166534,color:#fff
style F fill:#7c3aed,stroke:#5b21b6,color:#fff
Choose Your Setup Path¶
| Path | Best for | Time | Main command |
|---|---|---|---|
| Docker Setup | Most users, fastest onboarding | 5-10 min | docker compose up --build |
| Local Development | Contributing and debugging internals | 15-30 min | uv run fastapi dev main.py + npm run dev |
Prerequisites¶
- Git
- Docker Desktop (recommended path)
- Or for local development: Python 3.13+, Node.js 20+, PostgreSQL 16+
Suggested path
If you are evaluating the platform, start with Docker. If you are contributing code, use Local Development.
Project Layout (High Level)¶
backend/: FastAPI API servicefrontend/: React + Vite applicationagent/: Go Wake-on-LAN agentdocs/: Documentation source (Zensical)
Quick Start (Recommended)¶
1. Clone and enter project¶
2. Create local environment file¶
Linux/macOS:
PowerShell:
3. Start services¶
4. Open the app¶
- Frontend (production compose):
http://localhost:3000 - Backend API docs:
http://localhost:8000/api/docs
Verify Setup¶
Use this checklist before moving on:
- Frontend page loads in browser.
GET /healthreturns statusok.- You can log in and see the dashboard.
- Device list page opens without API errors.
Ready to continue
If all checks pass, continue with either Docker Setup or Local Development for deeper workflows.
First Steps After Setup¶
- Continue with Docker Setup for service operations and troubleshooting.
- Continue with Local Development for day-to-day coding workflow.
- Review architecture pages to understand component boundaries.
Common Pitfalls¶
- Port
3000,5173,5432, or8000already in use. - Missing
.envfile. - Docker Desktop on Windows/macOS cannot reliably send direct LAN broadcast WOL from containers. Prefer relay mode for production LAN wake flows.