Mina Ashraf Logo
← All projects

Theatre System

Unified Festival Management Platform engineered for St. Markos Coptic Orthodox Church (Heliopolis) — Neiruz Festival 2026. High-concurrency box office ticketing, silent thermal printing, gate admission verification, and real-time stage voting synchronization.

Theatre System Banner
Electron & NodeApp & Server Engine
PostgreSQLDatabase & Row Locks
WebSocketsReal-Time Smart Sync

Sole System Architect & Full-Stack Engineer — backend concurrency design, WebSocket state broadcasts, database indexing, ESC/POS hardware integration, and Docker packaging.

Deployed Live at Neiruz 2026 Discuss Platform ↗

Overview

Managing a high-density, multi-day theatre festival (400 attendees per show, 9,200 tickets total) requires zero-downtime reliability without cloud reliance. Theatre System unifies Box Office sales, automated thermal ticket printing, gate barcode scanning, jury scorecards, spectator live voting, and auditorium projector feeds into one synchronized on-premise local area network deployment.

Key Architectural Capabilities

Sub-Second WebSocket Engine

Synchronizes remaining seat counts, gate admission logs, live spectator counters, and stage states across all connected terminals using native WebSockets (ws) with exponential backoff and randomized jitter reconnection.

Atomic Concurrency & Double-Booking Prevention

Box office seat allocations execute inside serialized PostgreSQL transactions using SELECT ... FOR UPDATE row-level locks on zones, eliminating race conditions when multiple cashiers issue tickets at the exact same millisecond.

Silent ESC/POS Thermal Printing

Automated, driverless thermal printing generates attendees' tickets with instant custom barcode encoding upon cashier confirmation, enabling frictionless gate flow without manual print dialogs.

Zero-Cloud Docker Compose Resilience

The entire platform is containerized with Docker Compose and runs completely offline on an isolated local venue switch. Automated local database persistence guarantees data integrity even during venue Wi-Fi brownouts.

High-Speed Database Performance Indexes

7 specialized PostgreSQL indexes accelerate per-show admissions, fast-path gate barcode lookups, spectator score aggregation, and operator session audit trails to achieve sub-millisecond query execution.

Split-UI Control Room & Stage Feeds

Features independent, reactive control interfaces for Box Office cashiers, Gate Ushers, Stage Coordinators, Official Jury Evaluators, and live Projector Displays with confetti audio chimes upon vote reveals.

Tech Stack

Desktop & ServerElectron, Node.js & Express
Real-Time SyncNative WebSockets (ws) with jittered reconnect
Database & LockingPostgreSQL with serialized SELECT ... FOR UPDATE row locks
DeploymentDocker Compose (100% offline LAN)
Hardware IntegrationESC/POS silent thermal printing & barcode scanning
Frontend & FallbackHTML5 / Modern JS / CSS + Python native fallback