Project overview
The problem
What was built
- A live court-by-time grid showing which slots are free, selected, or taken
- No double bookings: a selected slot is held for 5 minutes while the customer pays, and availability is checked again before the booking is confirmed
- The price is calculated automatically from the slots chosen
- Payment by QR code, with the customer uploading their transfer slip to the booking
- A mobile layout with a booking summary and input validation for name and phone
- Every reservation in one table, with search, sorting, date filters, and pagination
- Booking status (pending, confirmed, cancelled) managed by staff
- Court closures for maintenance or events, including repeating closures on chosen weekdays
- Opening hours and the number of courts set from a settings page, not in code
- A Thai interface by default
- A Telegram message for each new booking, including the customer's name and phone once confirmed
Development and deployment
- Next.js and React for the booking site and admin dashboard, exported as static sites
- FastAPI and Python for the backend API, with SQLAlchemy and Alembic migrations
- PostgreSQL for reservations, court settings, and staff accounts
- Ubuntu and Nginx for hosting, with HTTPS via Certbot
- The booking site, admin dashboard, and API each run on their own subdomain
Results
- In regular use since March 2026. The first records in February 2026 were a short trial.
- 5,534 confirmed court-hours were booked between 1 March and 20 October 2026, an average of about 24 per day.
- 250 different phone numbers made those bookings, with between 65 and 93 different numbers each month from May to September.
- 49% of bookings (2,723) have a payment slip attached in the system.
"Customers used to message us to ask whether a court was free and wait for us to reply. Now they see free courts and book them on the website themselves, and we manage everything in one place." — Green, owner of Southern Academy
What this project demonstrates
- Full-stack delivery across a public booking site, an admin dashboard, an API, and a database
- Handling the details that matter for bookings: concurrent slot holds, availability re-checks, closures, and payment evidence
- Running a business system in daily use for a paying customer, month after month
Need a booking system for your business? Send your project details to discuss your workflow, scope, and support needs.
