React · TypeScript · Supabase · Postgres · PayMongo

Direct bookings and a front desk for a small resort, with no double bookings

A booking system for hotels, resorts and inns. Guests see live prices for their dates and pay a deposit with GCash, Maya or card. Staff run the day from one screen: arrivals, departures, a room calendar, housekeeping and reports.

Tuloy room calendar on a laptop with a guest's booking confirmation on a phone
Role
Design, frontend, database
Backend
Supabase, Postgres 16
Payments and SMS
PayMongo, Semaphore
Built
November 2026

The problem

Bookings on Messenger, a notebook at the desk, and up to 18% to booking sites

Many small resorts take reservations by chat and phone, track rooms in a notebook or spreadsheet, and list on booking sites that keep a commission on every stay. Prices change on weekends and holidays, so every inquiry means checking the calendar, working out the rate and waiting for a deposit screenshot.

The worst case is two guests arriving for the same room. Tuloy, from “tuloy po kayo”, is built around rooms and nights instead of messages and notebooks. It shares its booking engine with my Lumi salon system, reworked for stays.

Hi! Available pa po ba Sea View Dec 19–22? 2 adults. How much?Guest, 11:48 PM
Good morning! Let me check po 😊Resort, 8:15 AM
Sorry po, fully booked na Sea View. Garden Room is available, holiday rate from Dec 20Resort, 9:02 AM
Ay, nag-book na kami sa iba. Thanks!Guest, 9:30 AM

A typical exchange, written for illustration

What I built

From the guest’s phone to the front desk calendar

Search results with four room types and their prices for the chosen dates

Search · live prices

The real price for the exact nights

Guests pick dates and guests and see every room type with its total for those nights. Friday and Saturday nights use the weekend rate, holidays add their season price, and peak dates can require a minimum stay.

  • “Only 1 left” when a room type is nearly full
  • Sold out, too many guests and minimum stay are explained, not hidden
Room results on a phone
Deposit payment with GCash, Maya, card or QR Ph on a phone
Booking confirmation on a phone

Book · 30% deposit

Booked and paid in two minutes, on a phone

Name, mobile number and email, with the price shown night by night. The guest pays a 30% deposit through PayMongo with GCash, Maya, card or QR Ph, and the rest at the resort. The room is held for 15 minutes while they pay.

  • Confirmation by SMS with a private link
  • Change dates or cancel from that link, free up to 7 days before arrival
Front desk Today screen with arrivals, departures and housekeeping

Front desk · today

The day at a glance

Occupancy tonight, who’s arriving and leaving, who’s in house and which rooms need cleaning. Check a guest in or out with one click; checking out sends the room to housekeeping.

Room calendar with stays as bars across nights

Front desk · room calendar

Every room against every night

Stays run from midday to midday, the way guests actually come and go. Click a stay to see the guest and the balance to collect, or move them to another free room. Click an empty night to book a walk-in or phone guest.

  • New bookings go to the room that leaves the fewest one-night gaps
  • Out-of-order rooms can’t be booked
Reports with occupancy, ADR, RevPAR and booking sources

Owner · reports

The numbers hotel owners use

Occupancy, average daily rate (ADR) and revenue per available room (RevPAR), by night and by room type, for the last 30 days or what’s already on the books. Plus how many bookings came direct and how many through booking sites.

Rooms and rates with weekday and weekend prices, seasons and housekeeping

Setup · rooms and rates

Change a price once, everywhere

Weekday and weekend rates per room type, seasons with a percentage and minimum stay, and each room’s housekeeping status. New prices apply to new bookings straight away; existing bookings keep what the guest was quoted.

Tech stack

React 19TypeScriptViteTailwind CSSRechartsSupabasePostgreSQL 16Row-level securityEdge Functions (Deno)pg_cronPayMongoSemaphore SMSVitest

Under the hood

The database makes double bookings impossible

Checking availability in the app isn’t enough: two guests can pay for the last villa in the same second. So the rule lives in Postgres itself, and every write has to pass it, whichever screen it comes from.

constraint no_double_booking exclude using gist (
  room_id with =,
  daterange(check_in, check_out, '[)') with &&
) where (status in ('pending_payment', 'confirmed', 'checked_in'))

Tested under a race

Five simultaneous bookings for the last two villas: two reservations, three clean “sold out” answers. If the best room is taken mid-booking, create_reservation() moves on to the next free one.

Prices set by the server

The database works out the price night by night, so the browser can’t change what a guest pays. The same rules run in the app and are unit-tested, including a rounding case where JavaScript and Postgres disagreed by ₱20.

Holds that let go

An unpaid booking holds its room for 15 minutes, then a scheduled job releases it. PayMongo’s webhook is signature-checked and safe to retry; a payment that arrives after the hold lapsed is accepted only if the room is still free.

Guests never read the tables. They reach their booking through SQL functions that need the secret token in their link, and row-level security keeps reservations visible to front-desk accounts only. Confirmation and cancellation texts are queued by a database trigger, so a status change never misses its SMS.

Walkthrough

Search, book, pay, check in, report

Running a resort, hotel or inn?

I can set this up for your property with your rooms, rates and photos, or build a booking system around how you already work.

Alon Bay Resort is a fictional property. The demo keeps its data in your browser and payments are simulated. Book a room, then open the front desk (the login is pre-filled) and find your booking on the room calendar.