FullStack SaaS ArchitectFSA
Account

Welcome back

Pick up where you left off.

Your resources, your newsletter, your account — all waiting for you.

or

Airbnb Clone — Your Own StayScape

Listings, hosts, and bookings modelled as one system — including the overlapping-dates edge case most clones quietly skip.

Airbnb Clone — Your Own StayScape

Chapters, description and comments are on YouTube.Watch on YouTube instead

System overview

One request, end to end.

Select a stage to read what it decides.

One user table, two roles

A host is a guest who has listed something, so the same account can appear on either side of a booking — modelling hosts separately duplicates every field and then has to reconcile them.

What you will build

Three things you can point at afterwards.

  1. A schema that holds the rules

    Listings, users and bookings related so the interesting constraints live in the database rather than in whichever handler remembered them.

  2. A date search that cannot lie

    Availability computed from existing bookings on every query, so results reflect what is actually free.

  3. The double-booking closed properly

    The concurrency case named, reproduced, and then removed at the write — where it can no longer happen.