Gokkul.dev
Back to all projects
Team Project / Frontend · 2026

Ticketing Platform

Event seat selection & ticketing

ticketing-platform — experience preview (simulation)
Live sim

Someone else holds D9 to D11. Those seats lock on your screen in real time.

Experience in 3D

Problem

Event seat selection breaks under concurrency — without synced holds, two people can grab the same seat at once.

Approach

  • Real-time, concurrency-aware seat selection with server-synced holds, expiry countdowns, and contiguous-block selection logic.
  • 9 payment gateways (Razorpay, Stripe, PayPal, FlutterWave, and more), e-ticket PDF + QR generation, Firebase Firestore chat.

Result

Seat holds sync in real time with visible expiry countdowns, so a seat someone else is holding can't be double-booked mid-browse.

Stack

React.js 19Tailwind CSSMaterial UIFirebaseContext APIOneSignaljsPDFGoogle OAuthi18next

The preview above replays the hardest moment of this project's Experience, drawn from the same simulation code. Click it to try the whole thing yourself.

Under the hood

A simplified excerpt of the core logic and how a request flows through the system.

// hooks/useSeatHold.ts
const [seats, setSeats] = useState(init);
useEffect(() => {
const socket = io(EVENTS_WS);
socket.on("seat:held", (id) =>
setSeats(s => mark(s, id, "held"))
);
socket.on("seat:released", (id) =>
setSeats(s => mark(s, id, "free"))
);
return () => socket.disconnect();
}, []);

Client-side sync

React Context — seat state
Socket.IO client
Realtime hold / release events

Connects to

9 payment SDKsjsPDF ticket renderFirebase Firestore chat

More projects