Skip to content

Auction

  • the Auctions module, with an event and lots
  • the event linked to the site (or the event key)

Paste it after the base prompt, then add Design without the AI look.

Build an auction app on /api/site/v1/auction. Three screens:
1. Phone: POST /join with { name, phone, table }; keep the token and send it as X-Bidder-Token. Current lot, minimum amount, bid buttons, GET /me with lots led and won.
2. Room screen: the lot large, current bid, total raised. Readable from a distance.
3. Public pages: the cause and the list of lots.
Real time: GET /stream (SSE) through your server, with GET /state as a fallback and automatic reconnect.
Bidding: POST /bid with { lot_id, amount }, exactly the amount seen on screen. On 409 someone else bid: show the new minimum and let the person tap again. Never raise the amount for them.
On weak venue networks: disable the button while sending and make stale state visibly stale.