Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| node_modules | ||
| scripts | ||
| src | ||
| workers | ||
| .env.example | ||
| .gitignore | ||
| README.md | ||
| chatbot_plan.md | ||
| ecosystem.config.cjs | ||
| package-lock.json | ||
| package.json | ||
| server.js | ||
README.md
EventBuzz WhatsApp Concierge Service
Hapi webhook server + BullMQ workers for the virtual concierge. Uses one MongoDB connection via ../backend/src/config/database (do not add a separate mongoose dependency in chatbot).
Run locally
- Start Redis and MongoDB (same
MONGODB_URIas backend). DigitalOcean Managed Redis needs TLS — the app enables it automatically for*.ondigitalocean.com/ port25061, or setREDIS_TLS=true/ userediss://inREDIS_URL. - Copy env from
backend/.envandchatbot/.env.example. - One terminal —
npm run devstarts the API (port 3020), ingest, and inbound workers together (reloads on file changes). Use Ctrl+C to stop all. - Optional — run only one process:
npm run dev:server,npm run dev:ingest, ornpm run dev:inbound. - Optional — purge scheduler:
npm run dev:purge(normally not needed locally). - Point Meta webhook to
https://<host>/webhook/whatsapp.
Dashboard APIs live on the main backend (/api/concierge-bots).