Skip to content

Feature/live demo - #5

Merged
SYMBAxx merged 2 commits into
mainfrom
feature/live-demo
Nov 6, 2026
Merged

SYMBAxx merged 2 commits into
mainfrom
feature/live-demo

Conversation

@SYMBAxx

@SYMBAxx SYMBAxx commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Demo wallet (a throwaway key per tab), so reviewers can try the app without Freighter.
  • A mode banner reports exactly what runs on-chain and what's simulated.
  • Rate limiting and proxy-aware IPs for a public endpoint.
  • docker compose up --build runs the full system: 5 validator containers, each with only its own key, plus the backend and nginx frontend.
  • Render blueprint, Vercel/Netlify SPA config, deploy guide, and a CI image build.

Verified on the compose stack

  • DKG over the Docker network; orders settle via nginx with 5/5 and 3/5 validators and after a backend restart; they fail cleanly with 2/5.
  • 73 backend and 11 frontend tests pass.

- Demo wallet: a throwaway testnet key per tab, used only to sign the
  sign-in challenge, so reviewers can try the full flow without
  Freighter. A missing Freighter now shows a helpful error.
- Mode banner driven by /api/config (sealing: onchain|dev-ledger,
  settlement: onchain|simulated, validator_mode). Simulated settlement no
  longer records a fake amount_out.
- Per-IP rate limits on sign-in and order submission, plus TRUST_PROXY
  for correct client IPs behind a proxy.
- Docker: one backend image for the API, validators and cluster
  bootstrap. docker-compose runs 5 validator containers, each mounting
  only its own key directory, plus the backend and an nginx frontend.
  Validators use port 7700 because fetch() refuses 6000 (WHATWG bad
  ports). nginx re-resolves the backend so restarts don't cause 502s.
- render.yaml blueprint (API + static app), and Vercel/Netlify SPA
  routing.
- CI builds the Docker images.

Verified on the compose stack: DKG over the Docker network; orders
settle via nginx with all 5 validators, with 3 of 5, and after a backend
restart; they fail cleanly with 2 of 5.
docs/DEPLOY.md covers Render, Vercel/Netlify, and Docker Compose, plus
enabling on-chain sealing with a fresh order-vault admin key. The README
gains a Try it section. Contributor issues: TLS between coordinator and
validators, and a shared rate-limit store.
@SYMBAxx
SYMBAxx merged commit 6d53290 into main Nov 6, 2026
5 checks passed
SYMBAxx added a commit that referenced this pull request Nov 7, 2026
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.

1 participant