Skip to content

docs: integration + deployment guides - #5

Merged
johnsonflix merged 1 commit into
evolights/mainfrom
docs/integration-and-deployment
May 3, 2026
Merged

johnsonflix merged 1 commit into
evolights/mainfrom
docs/integration-and-deployment

Conversation

@johnsonflix

Copy link
Copy Markdown
Owner

Summary

Two new docs under firmware/docs/:

  • INTEGRATION.md (~1135 lines) — single doc the iOS coding agent should read to build a SwiftUI app against the EvoLights system end-to-end. Covers cloud account auth (email/password, Apple, Google, password reset), JWT lifecycle, subscriptions (Stripe checkout + portal), LAN device discovery + local auth, the WLED JSON API as control surface, cloud relay, OTA push, admin endpoints, error envelope/codes, and iOS-specific notes (keychain, ATS, Bonjour, URL schemes, SDK pointers).
  • DEPLOYMENT.md (~1029 lines) — operator runbook for a non-developer founder. Walks from a fresh server through Docker setup, secret generation (JWT, Postgres, MQTT, OTA Ed25519), Let's Encrypt for the broker, Stripe (test then prod), email (SMTP or Microsoft Graph), Apple/Google OAuth, replacing the dev OTA pubkey with production, booting the stack, bootstrapping admin, publishing the first signed firmware artifact, day-2 ops, and a full env-var reference.

Both docs are derived directly from the source files (cloud routes, JWT/email/stripe/mosquitto libs, migrations, mosquitto config, key-gen tool, firmware auth + cloud_relay usermod). Where the source disagreed with the original outline, the source wins and the deviation is called out inline (most notably: device-side OTA verifier is on a separate branch and not yet on evolights/main; firmware-side MQTT TLS is not yet implemented).

Test plan

  • Render both files on github.com to confirm formatting (tables, code blocks, anchors).
  • Hand INTEGRATION.md to the iOS coding agent and verify it can build the app without asking the cloud team further questions.
  • Walk a non-dev through DEPLOYMENT.md step-by-step against a fresh VM and confirm they reach a working stack.

🤖 Generated with Claude Code

@johnsonflix
johnsonflix merged commit 16335c5 into evolights/main May 3, 2026
19 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants