Build a Bookwhen alternative
Build a Bookwhen alternative with class sessions, a capacity ledger, and safe cancellations. Prevent two guests from claiming the last available place.
Build a Bookwhen alternative around one workflow you control. The Bookwhen catalog page supplies a broader prompt. Start by narrowing the audience and the data you need to keep.
Build a Bookwhen alternative with clear ownership
Start with a pottery class that has eight places. A booking claims places for one session. Put the capacity check and the insertion in one database transaction, otherwise two people can both take the last place.
The records for this proposed implementation are Class, Session, Booking, BookingEvent. Give each record a stable identifier. Keep creation time separate from the date or version the record describes. Those distinctions become useful the first time someone corrects a mistake.
Class booking with a capacity ledger
Create sessions with a start time, timezone, capacity and booking cutoff. A confirmed booking consumes places; a cancelled one consumes none. Show the remaining capacity calculated from the ledger.
| Build layer | First release | Next decision |
|---|---|---|
| Storage | Owned records with stable ids | Import and restore |
| Changes | Validated owner actions | Concurrent edits |
| Delivery | One complete published or confirmed state | Automated integrations |
| Recovery | Preserve the last valid state | Operational support |
Write the first prompt around a failure
Create sessions with a start time, timezone, capacity and booking cutoff. A confirmed booking consumes places; a cancelled one consumes none. Show the remaining capacity calculated from the ledger.
Require authentication for all owner mutations. Validate identifiers and
ownership on the server. Retried submissions must not duplicate changes.
Return useful empty, validation, conflict and storage-error states.
Keep the attempted input visible after a failure. Include a test fixture
and document the exact steps to reproduce the important race condition.
Give the agent a fixture with two records that share a display name. Names make good labels but poor keys. Edit one record and confirm that its neighbor stays untouched. Open two tabs, save an update in one, then try to save the older form in the other. The second save should explain the conflict and preserve the attempted content.
Choose what to leave outside the build
Keep payments outside the first version. Let an owner enter bookings and cancel them. A cancellation changes the ledger once, even when the request is retried. Keep the booking history so a refund or dispute has something concrete to refer to.
The basic version proves the main workflow with a small dataset. A dependable personal tool also needs authorization, backups, migration checks and recovery from partial work. A supported replacement adds ongoing operations and help for people whose data you hold. Use those as scope levels rather than promising a complete commercial platform over a weekend.
Try a complete round trip
Create data, change it, export it, and read the export outside the app. Import into an empty test installation and compare identifiers, timestamps and relationships. Then simulate a failed write. The interface should keep the previous saved version and let you retry.
The scope guide helps define that stopping point. Read how to write a coding agent prompt before expanding the first instruction into another screen.