Build a booking site for my barbershop.
I'll build it as a small web app on this server: a page where customers pick an open time, an admin page where you see every booking, and a database behind both. I'll check the server, then show you the plan before I write anything.
Check this server: Ubuntu 24.04, 4 GB, ports 80 and 443 free · 1.4s
Check that book.example.com points here · 0.8s
I compared three ways to build this. I'll use Python with Django and Postgres: the booking rules fit in about 400 lines, and the admin page is nearly ready-made.
Build it with 30-minute slots, Monday to Saturday, 9:00 to 18:00?
You can change the hours later on the admin page. I'll create /srv/booking, a database and a service that starts on boot.
Okay. Nothing was built. The plan is above.
Create the project and the database · 48s
Write the booking page, the slot rules and the admin page · 6m 20s
Write and run 14 tests: double bookings, closed days, past dates · 1m 05s
Put it online at https://book.example.com?
All 14 tests pass. I'll start the service and put Caddy in front for HTTPS.
Okay. The site is built and tested, but not online yet.
Start the service and request the HTTPS certificate · 9.4s
Make a test booking in a browser and cancel it · 3.1s
Your booking site is live
- https://book.example.com: customers pick an open 30-minute slot
- A slot cannot be booked twice (14 tests pass)
- Your admin page is https://book.example.com/admin; its password is in /root/booking-admin.txt, not in the log
- Code and a README in /srv/booking; the database is saved every night
Want customers to get a reminder the day before? I can add that next.







