Skip to main content
This guide starts the stateful foodservice reference environment, validates a restaurant order, enrolls a member, and runs baseline conformance checks.

1. Start the sandbox

Requires Git and Docker.
The Compose service stores its SQLite database in the named lip-data volume. If the startup log is no longer visible, read the key with:
Keep that terminal open. It prints the Admin URL and Admin/API key:
The same key is used for dashboard sign-in and Bearer API requests. Quickstart creates .lip/reference.db, seeds six synthetic members, and preserves all activity across restarts. The local server exposes:

2. Check the environment

In a second terminal:
All discovery, health, authentication, and capability checks should pass. Docker-only users can verify with curl:

3. Validate a restaurant order

Validation errors include a JSON path and the failed rule. Run npm run lip -- schemas to list every available schema.

4. Enroll a member

The response contains member-001 and an initial points balance.

5. Run the full loyalty flow

This runs the happy path end to end: enroll a member, evaluate an order, post accrual, reserve a reward, capture it, reverse it, and adjust a refunded order. The example at examples/typescript/full-lifecycle.ts is fewer than 50 non-empty application lines.

6. Run baseline conformance

The command checks discovery, health, authenticated capabilities, unauthenticated mutation rejection, and RFC 9457 validation errors. It exits nonzero when any check fails, so the same command can run in CI.

Next steps

Essentials

The six things every new integrator needs to know.

TypeScript SDK

Use the idiomatic client in your app.