> ## Documentation Index
> Fetch the complete documentation index at: https://converge-enter-documentation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Tutorial: build a booking site

Build a pottery-workshop booking app for Clay & Light, a made-up studio. You book two places, read the saved booking, and watch the remaining places change.

This 26-second video shows the flow: pick a workshop, book places, check the saved booking, then test an invalid request.

<video controls src="https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.9/enter-1.9-walkthrough.mp4?fit=max&auto=format&n=Dl1DSbRP-YuWE4KM&q=85&s=921673d551667cf4be2eafad50178c1e" />

![Confirmed pottery workshop booking with saved places and remaining capacity](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.9/booking-confirmed.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=03eec20b0419eb5248138db28ea24601)

The finished example: a confirmed booking with saved places and places remaining.

## How it works

A booking needs a backend, which saves and processes information outside the visitor's browser. [**Enter Cloud**](https://converge-enter-documentation.mintlify.site/en/articles/create-and-manage-an-enter-cloud-instance.md) provides it. Its database holds workshops and bookings. A server-side function checks each request before the app confirms.

```mermaid theme={null}
flowchart LR
  A[Visitor fills in form] --> B[Booking function checks places]
  B --> C[(Cloud database)]
  C --> D[Confirmation shown]
  C --> E[Staff demo page reads bookings]
```

> [!NOTE]
>
> **Why not browser memory?** Browser memory and localStorage keep data in one browser, so staff could not see those bookings.

## Before you start

* [Sign in to Enter](https://converge-enter-documentation.mintlify.site/en/articles/sign-up-and-log-in.md). You need permission to create a project and connect Cloud in your [workspace](https://converge-enter-documentation.mintlify.site/en/articles/get-to-know-your-workspace.md).
* Use made-up guest details only. If you adapt the prompt, see [Prompting tips](https://converge-enter-documentation.mintlify.site/en/articles/prompting-tips.md).
* New to projects or Cloud? Read [Create your first website or app in 5 minutes](https://converge-enter-documentation.mintlify.site/en/articles/create-first-project.md) and the [Enter Cloud overview](https://converge-enter-documentation.mintlify.site/en/articles/create-and-manage-an-enter-cloud-instance.md) first.

Controls such as **Book a place** and **Staff demo** belong to the generated app, not to Enter.

## Build and test it

**1. Step 1 · Create and build the project**

On the Enter **Homepage**, paste the starter prompt into the input box and send it.

```plaintext theme={null}
Build a responsive pottery-workshop booking app called Clay & Light. Keep this version in preview with fictional data only.

Enable Enter Cloud and create a new Cloud instance for this project. Use a real Cloud database and a server-side booking function. Do not use mock bookings or localStorage as booking storage.

Create a workshops table with id, title, start time, timezone, capacity, and description. Create a bookings table with id, workshop_id, guest_name, guest_email, number_of_places, status, and created_at. Link each booking to a workshop.

Seed three workshops: Wheel throwing for beginners on Saturday, November 21, 2026, 10:00-13:00, capacity 10; Hand-built vessels on Saturday, November 28, 14:00-17:00, capacity 8; Glaze & fire on Sunday, December 6, 10:30-13:30, capacity 12. Choose one studio timezone and display it clearly. Use fictional @example.com guest records if seed bookings are needed.

Show workshop cards with remaining availability and a Book a place button. Open a form with required Name, Email, and Number of places, plus Confirm booking. Require a valid email and a positive whole-number quantity.

Validate availability on the server and prevent overselling, including competing requests. Save before showing confirmation. Return the workshop, saved quantity, and remaining places. Disable repeat submission while saving and prevent duplicate requests. Explain loading, full, validation, and save-failure states. Keep the visitor's entries after a failed save.

Add a Staff demo page that reads bookings from Cloud and has a Refresh button. Any displayed demo passcode is for synthetic preview data only. Use warm clay colors and readable typography. Do not add payments, email delivery, or calendar integrations.
```

If Enter shows a [**Plan**](https://converge-enter-documentation.mintlify.site/en/articles/review-a-plan-before-building.md), check the data and booking rules, then click **Build Now**. If a Cloud approval request appears, review and approve it in your workspace. Wait for the build and **Preview** to load. Check the chat for Cloud setup or save errors.

**2. Step 2 · Choose an available workshop**

In [**Preview**](https://converge-enter-documentation.mintlify.site/en/articles/visual-editing.md), scroll to **Upcoming workshops**. Check each title, date, time, and places left. The example has **Wheel throwing for beginners**, **Hand-built vessels**, and **Glaze & fire**. Click **Book a place** on one with space.

![Three pottery workshop cards with dates and remaining places](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.9/workshop-cards.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=a1a5c1eab4ea03381b63fb85d3c730dd)

Three workshop cards with dates and remaining places.

Your counts may differ. Note the places left before you submit so you can compare after.

**3. Step 3 · Enter a test reservation**

In the form, enter **Demo Visitor** as **Name** and **[demo@example.com](mailto:demo@example.com)** as **Email**. Enter **2** as **Number of places** if at least two remain. Otherwise pick another workshop or a smaller number.

**4. Step 4 · Save and check the confirmation**

Click **Confirm booking** once and wait. **Your place is booked** should show the workshop, the two saved places, and the places left. With three places before, two booked leaves one (3 − 2 = 1).

> [!NOTE]
>
> This is an in-app reservation only. No payment is taken and no email is sent.

**5. Step 5 · Read the booking after refresh and reload**

Click **Done**. Open **Staff demo**. Enter the demo passcode shown on the gate: **claylight**. Find the row for **Demo Visitor** and **[demo@example.com](mailto:demo@example.com)**. Click **Refresh**, then reload the browser page and find the row again.

![Staff demo page listing a saved Demo Visitor booking for two places](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.9/staff-saved.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=7f67c544a12f977ba9d97a260dcb6b6d)

The Staff demo page lists the saved Demo Visitor booking for two places.

If the row survives both, the booking is saved, not just shown on the page.

> [!CAUTION]
>
> **A shown passcode protects nothing.** Replace this demo gate with proper staff sign-in before you store real guest details or [publish](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md).

**6. Step 6 · Check invalid requests**

Reopen the form and ask for more places than remain. In the example, **999** with one place left showed **Only 1 place is left.** and blocked the booking.

![Booking form blocking a request for more places than remain](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/1.9/invalid-quantity.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=5766e630978dee3d9613d264b5efd156)

A request for more places than remain is blocked with a clear message.

Then try an empty **Name**, an empty **Email**, and an invalid email. Each should stop the booking. Your wording may differ.

## Limitations

* This exercise stays in Preview. It takes no payment, sends no email, and is not published.
* Use made-up guest details only.
* The demo passcode does not protect real guest data. Replace it with proper staff sign-in first.

## Troubleshooting

> [accordion] A confirmation appears but nothing is saved
>
> Describe what you did, saw, and expected. Then send a focused follow-up:
>
> ```plaintext theme={null}
> The form shows a confirmation, but no booking appears after reload. Check the save operation and show the confirmation only after it succeeds. If saving fails, keep the visitor's entries and show a retry message. Keep the class list unchanged.
> ```

## Check your result

* [ ] The confirmation shows the workshop, saved places, and places remaining.
* [ ] The booking is still in **Staff demo** after **Refresh** and a browser reload.
* [ ] Too many places, an empty name or email, and an invalid email are all blocked.

> [!WARNING]
>
> **Before real bookings,** test double-clicking Confirm, a failed save, a full workshop, and two people booking the last place at once. Each booking must save once and never exceed capacity.

## Common questions

> [accordion] Can I use this for my own studio?
>
> Yes. Change the workshop names, dates, and rules in the prompt. Swap in real staff sign-in first.

> [accordion] Where can I see the saved records?
>
> In Enter Cloud. See the [Cloud overview](https://converge-enter-documentation.mintlify.site/en/articles/create-and-manage-an-enter-cloud-instance.md).

## Keep going

> [card] [Next: Publish your site](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md)
>
> Share the app after the data checks pass.

> [card] [Tutorial: build a SaaS app](https://converge-enter-documentation.mintlify.site/en/articles/tutorial-build-a-saas-app.md)
>
> Add real sign-in for users.

> [card] [Manage an Enter Cloud instance](https://converge-enter-documentation.mintlify.site/en/articles/create-and-manage-an-enter-cloud-instance.md)
>
> Inspect your saved records.

> [card] [Connect Stripe for app payments](https://converge-enter-documentation.mintlify.site/en/articles/connect-stripe-for-app-payments.md)
>
> Take payments with Stripe.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.