A Class booking recipe for yoga and Pilates studios
New app has a Class booking recipe for web apps: a schedule where every class has a set number of spots. Book holds a spot while the person fills in their details and lets it go if they don't confirm in time, a reminder goes the day before, and the booking's link moves or cancels it. Admins see each class's capacity and who's coming, change its size, cancel it, and close the studio on given days. ib-apps create --recipe class-booking does the same.
Two people going for the last spot at the same moment can't both get it: each spot has a unique key, so the second booking is refused and that person is told the class just filled. Holds that run out and reminders are background jobs you can watch in Logs and on the Queue page, and every email checks it still applies before it goes, so a cancelled booking never gets its reminder.
Classes come from a weekly timetable in the studio's own time zone, two weeks ahead by default. Closing a day cancels its classes and emails everyone booked with your reason. Emails go through your own Resend account; without it, development writes them to Logs.
More in Class booking tutorial.