Skip to content
All work
CommerceLive2026

Flair Airline · Booking Platform

A concept rebuild of an airline booking platform: Next.js front end over FastAPI microservices with a saga-based booking orchestrator.

Flair Airline · Booking Platform preview

Overview

A full booking funnel built the way a real airline platform is built. The web app (Next.js, shadcn/ui, Auth.js with guest credentials) covers results, the booking flow, confirmation, boarding pass, and a manage-trips dashboard.

A FastAPI backend-for-frontend orchestrates a booking saga (reconfirm → pay → order → persist → emit) with refund compensation if anything fails after the charge. Five Python services sit behind it: search (GDS adapter + Redis cache + seatmaps), pricing (a pure dynamic-markup engine), booking (PNR lifecycle on SQLAlchemy), payment (Stripe PaymentIntents with deterministic mocks), and notification.

Shared packages provide the GDS adapter interface with real and mock implementations, OAuth token caching, rate limiting, models, logging, correlation IDs, and events. Docker Compose wires Postgres, Redis, and LocalStack (EventBridge + SQS); pytest covers the saga.

Highlights

  • Saga orchestration with compensating refunds
  • 5 FastAPI microservices + BFF; real/mock adapter pattern for the GDS
  • Fully offline demo via docker-compose, Redis, Postgres, LocalStack