01Events · Ticketing platform
Lagos Live
Event discovery, ticketing and door check-in for Lagos nightlife
A Next.js and Supabase platform where guests find events and buy tickets, hosts create events and request payouts, and door staff check guests in by QR code — even when the venue's network drops.
Lagos event information is spread across Instagram posts, WhatsApp chats and flyers, and ticket sales often go through bank transfers and screenshots. Guests need one place to find a night out and pay for it, hosts need to sell tickets and get paid, and the person at the door needs to know whether a ticket is real — on a phone, in a crowded venue, often with poor signal.
- 01Guests browse, search, filter and map events, save the ones they like, and buy one of several ticket types through Paystack — with or without an account.
- 02Hosts go through verification, create and edit events, run promo codes, track sales and request payouts to a verified bank account.
- 03Door staff scan QR tickets with the phone camera and can keep checking guests in offline, with scans synced when the connection returns.
- 04Staff roles (support, finance, admin) get separate admin areas for moderation, host verification, orders, refunds, payouts and analytics.
- D-01
The payment webhook is the source of truth, not the browser
A buyer can close the Paystack window before the redirect finishes, which used to leave real charges against orders stuck on 'pending'. A server-side Paystack webhook with signature verification now reconciles payments, and the browser callback is only a faster path for the person on the screen. Refunds and payouts follow the same rule: the attempt is recorded in a ledger before the provider is called.
Trade-offMore moving parts — a webhook route, a ledger and reconciliation logic — but duplicate deliveries are absorbed and no payment, refund or transfer can go unrecorded.
- D-02
Offline check-in that never overrules the server
Before doors open, staff download an event manifest into IndexedDB. If the network drops, scans are validated against that manifest and queued; when the connection returns they are replayed, and any clash (such as the same ticket scanned at two gates) is stored as a conflict to review rather than silently accepted.
Trade-offOffline mode can only trust what was downloaded, so a ticket bought after the manifest was saved cannot be confirmed until the device is back online.
- D-03
Access rules live in the database, and they are tested
Roles and permissions are enforced with Postgres row-level security and checked again in Next.js middleware for host and staff areas. Raw bank account numbers were removed from verification records, so payouts use only Paystack-verified accounts. A Node test suite covers RLS policies, refunds, payouts and webhook signatures.
Trade-offPolicy changes need a migration and a test run instead of a quick UI tweak, but a bug in the interface cannot expose another user's orders or bank details.
- Offline check-in validates only against the downloaded manifest; the server stays authoritative once a device reconnects.
- Event listings depend on hosts keeping their details up to date, so moderation and freshness remain ongoing work.