TIKTOK DUAL INBOX REBUILD - DEPLOYMENT CHECKLIST

1. Import database/schema.sql into a NEW MySQL database (or back up first).
2. Copy php/config.example.php to php/config.php and set DB credentials.
3. Generate a long random engine key. Put the same key in PHP config and node-engine/.env.
4. Configure TikTok Business Client Key/Secret and exact approved OAuth redirect URI.
5. Install Node dependencies in node-engine: npm install.
6. Start engine with cPanel Setup Node.js App (Node 20+), startup file src/server.js,
   application root pointing to node-engine, and environment variables from .env.
7. PHP engine_url must point to the internal engine URL/reverse proxy that can reach the Node app.
8. Open php/index.php, add an account, then test login/inbox.

Do not assume this is production-ready. The personal browser mode requires Chromium and a persistent profile;
shared cPanel commonly cannot host this reliably. Business features require TikTok API approval.
Auto-reply rule UI stores rules only until verified webhook ingestion + queue worker are implemented.
Comment UI displays records only after a verified API/webhook integration populates the comments table.
