# Demo v2 — internal artifact distribution

No public URL or Azure Portal access required. The pipeline **builds and publishes a zip** you share with testers.

## For pipeline owners (you)

1. Push to **`demo-v2`** (or run pipeline manually on that branch).
2. Open [Azure DevOps → Pipelines](https://dev.azure.com/numuinvestment/SOT) → latest **green** run.
3. Top right: **Related** → **Published artifacts** → **`sot-demo-v2`** → download.
4. Share the zip (Teams, OneDrive, email — internal only).

Each run includes `build-info.json` (branch, build id, commit) inside the artifact.

## For testers (download zip)

1. Unzip the artifact to a folder (e.g. `sot-demo-v2/`).
2. Open Terminal in that folder.
3. Run a local server (Node required):

   ```bash
   npx --yes serve -s . -l 5173
   ```

4. Open **http://localhost:5173/** in Chrome or Edge.

Do **not** double-click `index.html` — the app needs HTTP (ES modules).

### Alternative (if you have the full repo)

```bash
npm install
npm run preview
```

Uses your local `dist/` after `npm run build`.

## Demo credentials

| Role | Value |
|------|--------|
| Company CR | `1010123456` |
| Seller NID | `1087654321` |
| Buyer NID | `1102345678` |

Suggested path: **Company Admin** → establish registry → **Seller** → transfer flow → **Buyer**.

## Troubleshooting

| Issue | Fix |
|-------|-----|
| Blank page | Use `serve`, not file:// |
| `npx` not found | Install [Node.js 20+](https://nodejs.org) |
| Port in use | Use `-l 5174` instead of `5173` |

## Public hosting later

When Azure access is available, see [infra/azure/README.md](../infra/azure/README.md) for static website deploy.
