Projects / Jarateng: Festival Ticketing
Jarateng: Festival Ticketing
Sell tickets online, scan them at the gate with or without signal, see sales as they happen

A festival ticketing system built as a working demo for Duskvale, a fictional three-day festival: fans buy tickets online and pay through Payfast, gate staff scan signed QR codes even with no signal, and the organiser follows sales as they happen.
The challenge
A festival selling through a ticketing platform works to that platform’s fees, payout dates and branding, and a gate that needs signal to check each ticket stalls the queue the moment the network drops.
The architectural solution
Fans choose tickets by price phase, with add-ons and promo codes, and pay through Payfast; for a real festival the money goes to the organiser’s own Payfast account, with FAHZY’s fee split off by Payfast. Every ticket carries a signed QR code, so the gate web app and the Jarateng Gate app check tickets on the device with no signal, sync when they reconnect, and flag a ticket let in twice. The organiser’s admin shows live sales by day, ticket type, channel and promoter, and handles refunds, comps, price phases, gate devices and the festival guide. The demo uses Payfast’s sandbox: no real money moves.
Next.js static shop and admin, a Node API (Hono) and a scheduled-jobs worker on PostgreSQL, in Docker on the same small EC2 instance as the Quartz and Chiminea demos. Overselling is prevented in the database: 500 simultaneous holds for the last 10 tickets let exactly 10 through, and a property test checks every counter after random runs of holds, payments, refunds and comps. One scanning engine, shared by the web app (IndexedDB) and the Expo app (SQLite), decides every scan on the device.
Key deliverables
- Price phases, add-ons, promo codes and promoter links, with a 10-minute hold at checkout
- Payfast notifications checked four ways and processed exactly once
- Tickets with QR codes signed with Ed25519, a PDF and a wallet-style ticket page
- Offline gate scanning in a web app and the Jarateng Gate app, with double entries flagged
- Organiser admin for live sales, refunds, comps, price phases, gate devices and the guide
- Roles checked by the API on every request, and every change in an audit log
- Database-enforced protection against overselling, tested with 500 simultaneous holds
Technology stack
- Next.js
- TypeScript
- Vite
- Expo
- Node.js
- PostgreSQL
- Payfast
- Docker
- AWS EC2
- Playwright