What the guest gets
- One question per screen, 6 steps in total
- Massage, length and price, day and time, then contact details
- Confirmation email in the language the guest booked in
- Works on phones, with GDPR consent built in
MacaGym is the gym inside Saffron Hotel in Bratislava, and it also offers massages. Web25 built its booking system as a full-stack Next.js app. Guests book a massage in six steps and five languages. Staff run bookings, services and the team from one admin.
Step 1 of 6 · Type
Choose massage type.
You will choose the length and price in the next step.
MacaGym wanted guests to book a massage online without calling the front desk. The team needed one place to see every booking, give it to a therapist and keep the price list current.
The flow keeps the guest’s choices in the browser between screens. So the server ignores the price it receives and reads the service, duration and price again from the database before it saves anything.
Every screen, the admin and the guest email exist in Slovak, Czech, English, German and Ukrainian. The language lives in a cookie, and the studio picks the default language in its settings.
Staff should never need the Supabase dashboard. Services, durations, prices, photos, therapists, booking status and business settings all have their own admin screens.
The booking is saved first. Emails go out after that, and if one fails the booking stays. The result of each email is stored on the booking, so the team can see what was sent.
The app is a single Next.js project. Pages, server logic and database rules are split so each layer checks what it is responsible for.
Each step is its own App Router page. Choices are saved in local storage, so a refresh or the back button doesn’t lose them.
Server Actions handle the booking and every admin change. Middleware refreshes the login session and keeps the admin behind a sign-in.
Foreign keys, check constraints and indexes sit in the schema itself. Row-level security is on for all seven tables. Visitors can only read active services.
The admin covers bookings, services, staff and settings. Photos go to Supabase Storage. Email goes through Resend from the verified macagym.sk domain.
The guest picks a massage. The list comes from the database and only shows active services with at least one active length.
Each massage has its own durations and prices, sorted from shortest to longest.
A month calendar. Past days and weekends can’t be picked.
Slots every 30 minutes between 09:00 and 17:00. A slot only shows if the whole massage ends by 17:00.
Name, email, phone, optional notes and GDPR consent. Zod checks every field before the guest can continue.
The guest checks the summary and submits. The server saves the booking and sends both emails.
Four short recordings of the live system, from the guest flow to the admin.
The first two steps. The guest compares massage types, then sees the durations and prices for the one they picked.
The length and price step on a phone, with the progress bar on top and the summary bar with Continue at the bottom.
Adding and editing a team member with a photo, contact details, administrator or therapist type and permission switches.
List and calendar views, filters by service and therapist, and the controls for assigning and updating each booking.
The admin is a set of Server Actions on top of seven PostgreSQL tables. Below is the bookings screen, the schema and the exact checks a booking passes before it is saved.
Illustration built from the real admin menu and booking statuses. Names and times are made up.
A service has many durations. A booking points to the service, the exact duration and, once assigned, a therapist. Deleting a service that already has bookings is blocked by the database, and the admin tells staff to switch it off instead. The schema also holds tables for therapist working hours and days off. Today the time screen uses fixed hours, Monday to Friday, 09:00 to 17:00.
This is the createBooking Server Action, step by step. It runs on the server with a database key the browser never sees. A guest who changes the price in the browser still pays the price stored in the database.
Booking platforms are fine until your services, prices or team don’t fit their settings screen. Then you work around the tool.
The workflow, the permissions and the booking screens are the same for every customer of that platform.
Services, durations, prices, roles, languages and emails follow how the studio actually works.
The system is live at app.macagym.sk, linked from the MacaGym website.
Guests go from massage type to a confirmed booking on their own, on any screen size.
Duration and price are read on the server for every booking, so nobody can change them in the browser.
Slovak, Czech, English, German and Ukrainian, the confirmation email included.
Overview, Bookings, Services, Staff and Settings. Massages, prices, photos and therapists, all from the admin.
Guest and studio emails per booking. Each booking stores if they went out, and the last error if not.
Plus foreign keys, check constraints and a sign-in for the admin.
Minerva Visuals designed the booking flow and the admin screens. Web25 built the app behind them, including the database, the server checks, the five-language setup, the admin and the email flow.
Tell us how your bookings work today. We’ll tell you what a custom system would look like and what it would take to build.
Discuss your project