Skip to content
CompletedExpanded rebuild of coursework

Movie Theater Ticket System

An expanded web rebuild of an academic C# desktop project: a full-stack movie ticketing app with live seat maps, timed seat holds, simulated checkout, and an admin dashboard.

  • C#
  • ASP.NET Core
  • Entity Framework Core
  • SQLite
  • SignalR
  • React
  • TypeScript
  • Tailwind CSS
  • xUnit
  • Vitest
  • GitHub Actions
  • Docker
Seat map for Neon Tide Runners in Auditorium 1, with premium rows, wheelchair-accessible seats, a legend, and a live updates indicator.

Overview

The original was a C# desktop application, built for a class, that took a customer from choosing a movie to booking seats and checking out. This is an expanded portfolio rebuild of that project as a web app, not the original coursework submission. All movies are fictional and every payment is simulated.

Problem

Two customers can try to buy the same seat at the same moment, and every price has to be trustworthy even though the browser can't be trusted.

Solution

Seats are held for 10 minutes while a customer checks out, and unique database indexes plus transactions make sure exactly one booking wins a race. Prices are calculated only on the server. SignalR pushes seat changes to everyone viewing the same screening, so a seat someone else holds is disabled without a reload.

Key features

  • The original project's ticket and concession pricing (ticket types, matinee discount, premium seats, sales tax) runs as a server-side C# module covered by 25 unit tests.
  • Transactions and unique indexes prevent double-booking, shown by a test that sends 12 simultaneous requests for one seat.
  • A keyboard-accessible React and TypeScript seat map with live SignalR updates, plus a cookie-protected admin dashboard for movies, screenings, reservations, and sales.

Architecture

  • src/MovieTheater.Api/: ASP.NET Core with thin controllers, services for booking, seat holds, orders, and reports, a PriceCalculator, EF Core migrations, and a SignalR hub for seat updates.
  • client/: React, TypeScript, Vite, and Tailwind CSS. Its production build is served by the API, so the whole app runs as one service.
  • Checkout is simulated and never asks for card details. The admin area uses a cookie sign-in with a rate-limited login.
  • One Docker image, hosted free on Render with a /healthz health check.

Try it or install it

  1. Try the live demo: no install needed. The first visit after a quiet period takes about 50 seconds while it wakes.

  2. Run it locally: install the .NET 10 SDK and Node.js 22.22 or later, then restore and start the app from apps/movie-theater-ticket-system.

    dotnet restore MovieTheater.slnx
    npm ci --prefix client
    dotnet run --project src/MovieTheater.Api
  3. The README covers the client build, the demo admin password setting, and the test commands.

Testing

  • 136 xUnit tests: 46 unit tests (25 of them for ticket and concession pricing) and 90 integration tests that run the real API against real SQLite files.
  • A concurrency test sends 12 booking requests for the same seat at the same moment, and exactly one succeeds.
  • 48 Vitest tests for the React client, plus linting and TypeScript type-checking.
  • Checked by hand in the browser: live seat updates between two customers in separate browsers, cart totals matching the server, simulated checkout, order lookup and cancellation, the admin dashboard, and the seat map on a phone.
  • On the hosted app, holding a seat from a second cart changed it to "held by another customer" on an open seat map without a reload.

Screenshots & diagrams

Seat map for Neon Tide Runners in Auditorium 1, with premium rows, wheelchair-accessible seats, a legend, and a live updates indicator. (opens full size in a new tab)
Seat map for a screening: premium rows, wheelchair-accessible seats, and a live-update indicator.
Seat E7 selected on the seat map, with a 9:59 hold countdown in the header and in the Your seats panel. (opens full size in a new tab)
A held seat with the 10-minute hold countdown in the header and side panel.
Cart with seat E7 as an adult premium ticket, a concessions list, and a summary of tickets, concessions, sales tax, and total. (opens full size in a new tab)
Cart with ticket types, concessions, and totals calculated by the server.
Checkout page with a notice that no real payment is processed, contact fields, and an order summary totaling $34.40. (opens full size in a new tab)
Simulated checkout: no card fields, and clearly labeled that no real payment is processed.
Order confirmation for one senior ticket and a Date Night Combo, with order number, tax, total, and a simulated payment reference. (opens full size in a new tab)
Order confirmation with the ticket, concessions, tax, and a simulated payment reference.
My orders page that found one order by order number and email, with a Cancel order button. (opens full size in a new tab)
Order lookup by order number and email, with online cancellation.
Admin sales dashboard with gross sales, tickets sold, concessions, and refunds, plus ticket sales by movie and concession sales. (opens full size in a new tab)
Admin sales dashboard with totals calculated from the orders in the database.

Limitations

  • Payments are simulated: there are no card fields and no payment provider.
  • One shared demo admin account, not per-user accounts.
  • Render's free plan puts the demo to sleep after 15 minutes idle (the next visit takes about 50 seconds), and the demo data resets on every restart.

Who did what

  • Original coursework: Nathanael Haig built the original C# desktop ticketing app for a class. That version isn't included here.
  • This web rebuild: a portfolio project built by Nathanael Haig, reusing the original's pricing rules.