# Deploy to Render

## 1. Upload this project to GitHub

Create a private GitHub repo and upload all files except:

- `.env`
- `node_modules`
- `data.json`

## 2. Create a Render web service

- New > Web Service
- Connect GitHub repo
- Runtime: Node
- Build command: `npm install`
- Start command: `npm start`

## 3. Add environment variables

Copy everything from `.env.example` into Render Environment Variables and fill in real values.

## 4. Use the Render URL in Twilio

Your webhooks will look like:

```text
https://YOUR-RENDER-APP.onrender.com/voice/incoming
https://YOUR-RENDER-APP.onrender.com/sms/incoming
```

## 5. Persistent storage warning

This MVP uses a JSON file for easier demos. On some hosts, local file storage can reset during redeploys.

For a production client, upgrade the lead store to:

- PostgreSQL
- Supabase
- Airtable
- Google Sheets
- CRM webhook

The rest of the system can stay the same.
