# Deploy demo v2 on Netlify

Testers open **one URL** — no zip, no Terminal, no Node.

## Option A — GitHub auto-deploy (recommended)

Netlify rebuilds on every push to **`demo-v2`**.

### 1. Push branch to GitHub

```bash
git push github demo-v2
```

Repo: `https://github.com/Yasmin-na/SOT-demo`

### 2. Connect Netlify

1. Log in at [app.netlify.com](https://app.netlify.com)
2. **Add new site** → **Import an existing project** → **GitHub**
3. Select **Yasmin-na/SOT-demo**
4. Settings (Netlify reads `netlify.toml` automatically):

   | Setting | Value |
   |---------|--------|
   | Branch | `demo-v2` |
   | Build command | `npm run build` |
   | Publish directory | `dist` |

5. **Deploy site**

Your URL: `https://<random-name>.netlify.app`  
Rename under **Site configuration** → **Domain management** → **Options** → **Edit site name** (e.g. `sot-demo-v2-numu`).

### 3. Share the link

Send `https://your-site.netlify.app` — testers use the demo in the browser.

---

## Option B — Instant deploy (no GitHub)

Good for a one-off demo today.

```bash
npm run build
npx --yes netlify-cli deploy --prod --dir=dist
```

First run opens browser to log in to Netlify. You get a live URL immediately.

Or drag the **`dist`** folder to [app.netlify.com/drop](https://app.netlify.com/drop).

---

## Demo credentials

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

---

## Troubleshooting

| Issue | Fix |
|-------|-----|
| Build fails on Netlify | Check deploy log; ensure branch is `demo-v2` with latest commit |
| Blank page | `netlify.toml` redirects are included; redeploy |
| Wrong version | Confirm Netlify deploy branch is `demo-v2`, not `main` |
