Building a booking app is harder than it looks. Beyond the basic calendar UI, you need to handle complex availability rules, timezone math, calendar integrations, payments, reminders, and a smooth admin experience. Here's how to approach it in Next.js.
The Core Features
Availability Rules
The hardest part of any booking app is handling availability correctly. Real-world availability includes:
- Weekly schedules per service
- Buffer time between appointments
- Minimum notice and maximum lead time
- Date overrides for holidays or time off
- Recurring blocks (e.g., "no bookings on the second Tuesday of every month")
- Capacity per slot for group bookings
Get this data model right from the start. Retrofitting availability rules into a flat schedule is a major rewrite.
Calendar Integrations
Customers expect bookings to sync with their calendars. You'll need:
- Google Calendar two-way sync
- Outlook/Microsoft 365 integration
- Apple iCloud/CalDAV (less common but requested by enterprise customers)
- ICS file download for customers without accounts
Each integration takes 2-3 weeks due to OAuth flows, token refresh, and event sync logic.
Customer Booking Page
The customer-facing booking page needs to be smooth and mobile-friendly:
- Service selector with descriptions, duration, and price
- Calendar grid with available slots
- Mobile-optimized slot picker
- Timezone awareness (display in local time, store in UTC)
- Quick form for customer details
- Payment collection (optional)
- Confirmation page and email with calendar links
Admin Dashboard
The admin dashboard is where hosts manage everything:
- Day/week/month calendar views
- Booking detail with cancel/reschedule/refund actions
- Customer list with booking history
- Services management (availability rules, pricing)
- Schedule settings (weekly availability, buffers, overrides)
- Notification settings (email/SMS templates)
- Integrations (calendars, payments, video conferencing)
Cancellation and Rescheduling
- Self-serve cancellation with clear refund policies
- Reschedule flow that holds the original slot
- Host-initiated cancellation with automated notifications
Reminders and Notifications
- Booking confirmation
- 24-hour reminder
- 1-hour reminder
- Follow-up after the appointment
- SMS reminders (2-3x more effective than email)
Payment Collection
- Pay at booking via Stripe
- Pay later option
- Free bookings for consultations
- Tax handling (Stripe Tax, TaxJar, or Avalara)
Tech Stack Decisions
- Date handling: Use Luxon or date-fns-tz for timezone math.
- Calendar UI: FullCalendar for admin views, custom React components for customer-facing slot pickers.
- Calendar integrations: Google Calendar API, Microsoft Graph API, or Nylas/Cronofy for unified integration.
- Payment: Stripe with
mode: 'payment'ormode: 'subscription'. - Email: Resend with React Email for templates.
- Background jobs: Inngest, Trigger.dev, or Vercel Cron for reminders.
Build Path: From Scratch (12-16 Weeks)
Week 1-2: Set up Next.js, auth, and multi-tenant database.
Week 3-4: Build the availability engine.
Week 5-6: Create the customer booking page.
Week 7-8: Develop the admin dashboard.
Week 9: Implement Google Calendar integration.
Week 10: Add payment processing.
Week 11: Build notification system.
Week 12-13: Handle cancellation and rescheduling.
Week 14-15: Polish mobile UX.
Week 16: Deploy and beta test.
Common Pitfalls
- Flat availability schedules: Real availability is complex. Plan for buffers, overrides, and per-service rules.
- Local time storage: Always store times in UTC and display in the user's timezone.
- Skipping reminders: No-show rates skyrocket without reminders.
- Cancel-by-email: Customers won't email to cancel. Build a self-serve flow.
- Mobile calendar UX: Desktop layouts don't work on mobile. Build a dedicated mobile slot picker.
End on the last useful step or a concrete gotcha. No wrap-up or summary paragraph, no "With X in place..." or "The pattern scales" closers.
This is a shorter version of a guide I wrote at Frontkit Studio. The full post has the complete walkthrough.



