> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usetendr.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

# Quickstart

```bash theme={null}
cp .env.example .env
docker compose -f infra/docker/docker-compose.yml up -d   # Postgres + Redis
npm install
npm run build --workspace=@tendr/contracts
npm run db:migrate:dev --workspace=@tendr/api
npm run db:migrate:test --workspace=@tendr/api
npm run db:seed   # prints the Demo Merchant's API keys once
npm run dev
```

Check a seeded key against the API:

```bash theme={null}
curl -sS http://localhost:4000/v1/ping \
  -H "Authorization: Bearer tdr_test_..."
```

```json theme={null}
{
  "merchantId": "mer_...",
  "livemode": false,
  "principal": "secret_key",
  "scopes": ["sessions:read", "..."]
}
```

A `tdr_live_` key returns `"livemode": true`. See [API keys](https://docs.usetendr.tech/security/api-keys.md) for key formats and request signing.

> [!NOTE]
>
> Checkout endpoints (sessions, quotes, payments) are coming in the checkout project.


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