# Couple Connect — Go-Live Checklist (Hinglish)

Yeh checklist follow karo jab production pe launch karna ho. Sab steps ek baar karke test flow end-to-end chalao.

---

## 1. `config.js` set karo

File: `landing/config.js`

```js
paymentMode: 'upi_manual',
upiId: 'apna-vpa@upi',        // ← apna real UPI ID
upiName: 'Couple Connect',     // ← UPI app mein dikhega
amountInr: 1499,               // ← fixed price ₹1499
functionsBase: 'https://asia-south1-couple-connect-cc.cloudfunctions.net',
downloadPage: '/download.html',
siteUrl: 'https://coupleconnect.app',
```

**Check:** `upiId`, `upiName`, `amountInr: 1499` sahi hon. `functionsBase` apne Firebase project ka URL ho.

---

## 2. Firebase secrets + deploy

```bash
cd functions
npm install

firebase functions:secrets:set APK_STORAGE_PATH
# value: releases/couple-connect.apk (ya jahan APK rakha hai)

firebase functions:secrets:set ADMIN_PASSWORD
# strong password — admin panel login ke liye

firebase deploy --only functions,firestore:rules
```

**APK upload:**

```bash
gsutil cp android/app/build/outputs/apk/release/app-release.apk \
  gs://couple-connect-cc.appspot.com/releases/couple-connect.apk
```

**Check:** Functions deploy successful. Bot webhook export nahi hona chahiye (sirf web download).

---

## 3. Hostinger pe upload

1. [hPanel](https://hpanel.hostinger.com) → File Manager → `public_html`
2. Poora `landing/` folder upload karo:
   - `index.html`, `main.js`, `config.js`, `styles.css`
   - `download.html`, `download.js`, `cc-api.js`
   - `admin/` folder
   - `assets/`, `hi/`, `es/`, … (saari locale pages)
   - `robots.txt`, `sitemap.xml`, `privacy-policy.html`, `llms.txt`
3. SSL enable karo (Let's Encrypt)
4. HTTPS force karo

**Check:** `https://coupleconnect.app` khule, age gate dikhe.

---

## 4. Admin panel setup (`/admin/`)

1. Browser mein jao: `https://coupleconnect.app/admin/`
2. `ADMIN_PASSWORD` se login karo
3. **UPI settings** tab:
   - UPI ID = wahi jo `config.js` mein hai
   - Payee name set karo
4. **UPI pending** tab ready rakho — yahan approve/reject hoga

**Check:** Login ho, UPI settings save ho jayein.

---

## 5. Test flow (end-to-end)

Poora flow ek test order se verify karo:

| Step | Kya karna hai | Expected |
|------|---------------|----------|
| 1 | Landing pe **Buy** click | UPI modal khule, order create ho (`upi_...`) |
| 2 | Test UPI pay karo (₹1499) | QR / deep link se pay |
| 3 | UTR submit karo | "Admin will verify" message |
| 4 | `/admin/` → UPI pending → **Approve** | Order `paid` ho jaye |
| 5 | `/download.html` + Order ID | "Payment verified" dikhe |
| 6 | **Download APK** click | Signed URL se APK download (sirf ek baar) |
| 7 | Dobara download try | "Download already used" error |
| 8 | App mein Order ID enter | License activate (max 2 devices) |

**Success CTAs check:** Koi bhi button/link sirf `/download.html` pe jaye — koi third-party delivery channel nahi.

---

## 6. Launch se pehle quick sanity

- [ ] User-facing HTML/JS/MD mein bot-delivery references nahi honi chahiye (sirf `telegram-setup.md` deprecated doc mein)
- [ ] Firebase functions deployed
- [ ] APK Storage mein uploaded
- [ ] Hostinger pe saari files
- [ ] Admin login + UPI approve kaam kar raha
- [ ] Test order se download mil gaya
- [ ] Support email `support@coupleconnect.app` live hai

---

## Help

- Full deploy guide: `DEPLOY.md`
- SEO after launch: `seo-checklist.md`
- Problem ho to Firebase Functions logs check karo: `firebase functions:log`

**Ho gaya?** Ab real users ko link bhejo — payment ke baad unhe `/download.html` pe Order ID se APK milega. 🚀
