-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Oliver Hennhöfer edited this page Apr 7, 2026
·
1 revision
This guide gets you from clone to a running local stack.
Use this page for first-time local startup and health validation before deeper user or developer workflows.
- New users who want to run the platform locally.
- New developers who need a known-good baseline before coding.
- Docker Engine + Docker Compose plugin.
- At least 8 GB RAM available for Docker.
- Ports available on host:
5173,8000,8001,18083,8025,1025,5432,1883,1884.
- Go to
project-code/. - Open
.envand set at least:
-
EMQX_DASHBOARD_PASSWORDto a strong value. -
JWT_SECRETandJWT_VERIFICATION_SECRETto at least 32 bytes (256 bits) of cryptographically secure random data. -
SUPERUSER_MAILto the admin mailbox you want to use.
Generation examples:
openssl rand -hex 32$bytes = New-Object byte[] 32; [System.Security.Cryptography.RandomNumberGenerator]::Fill($bytes); [Convert]::ToHexString($bytes).ToLower()Use Environment Variables for full catalog and validation guidance.
From project-code/:
docker compose up -d --builddocker compose psExpected core services in Up/healthy: frontend, api-gateway, tactic-middleware, timescaledb, emqx-main, mqtt-proxy, db-sync, mailpit.
Quick checks:
curl http://localhost:8000/health
curl http://localhost:8001/readyOpen in browser:
- Frontend:
http://localhost:5173 - Mailpit:
http://localhost:8025 - EMQX dashboard:
http://localhost:18083
- Register in frontend.
- Open Mailpit and copy verification link.
- Verify email.
- Log in and open charger list.
Stop containers:
docker compose downFull reset (containers + volumes):
docker compose down -v| Symptom | Likely Cause | Fix |
|---|---|---|
api-gateway keeps restarting |
db-sync not ready or DB startup delay |
wait 1-2 min, then check docker compose logs db-sync api-gateway
|
| EMQX fails healthcheck | missing/weak dashboard password | set EMQX_DASHBOARD_PASSWORD, restart EMQX |
| Verification emails not visible | Mailpit not running | check mailpit and open http://localhost:8025
|
| Frontend cannot reach API |
VITE_API_URL mismatch for run mode |
align VITE_API_URL with runtime mode |