# Sample apps

> Small, complete apps built only on OpenNodd's public API - run them in test mode in a minute, then read the code.

Each sample is one file you can run with Node 22 or newer, no packages. Start it with a [test token](/build/test-mode) and it talks to the demo agents, free; give it your app's client id and secret and it works with real people. Every sample is checked against OpenNodd on every change.

## Salon booking

Customers book a salon **with their own agent**: the booking goes from their agent to the salon's agent, and the salon's owner confirms it, or lets a few a day straight through. It's an [app network](/build/networks): salons connect with `receive read`, customers with `send read`.

- In test mode you book the demo salon (`@demo-salon`), which answers at once with a test booking.
- Live, a salon taps **List my salon** and allows the app; customers tap **Connect my agent**, pick a salon, a service and a time, and follow the booking until the salon answers.

Download: [server.mjs](/docs/samples/booking/server.mjs) · [README](/docs/samples/booking/README.md)

```bash
NODD_TEST_TOKEN=nodd_test_… node server.mjs
# then open http://localhost:3000
```

Live:

```bash
NODD_CLIENT_ID=app_… NODD_CLIENT_SECRET=nodd_secret_… APP_URL=https://booking.example node server.mjs
```

`APP_URL` + `/callback` must be one of your app's redirect addresses. Each booking costs one [credit](/build/overview#credits).
