be360:ocme:backend:send_templates_and_debug

Operation

Server

Dedicated: WhatsappTemplates (ID: i-072df39da22f6bd3d)
Directories: /home/admin/ocme-it
OS: *TO DO*
SSH login: admin@52.28.158.203
Hours of operation: 24/7


This is the ocme-it folder, it's the same for the others (ocme-au, ocme-us, ecc)

├── node_modules
├── db.js
├── index.js
├── it-private.key
├── package.json
├── package-lock.json
├── yarn.lock
└── yarn-error.log

db.js

Information about the sql connection to the database in which are stored the sent templates.


index.js

3 endpoints are exposed via Express:

  • /send_templates: connects to the Voange API to send WhatsApp templates and saves the information to a “private” database for retrieval on the “Debug” page
  • /status: every time the message status changes, this endpoint is invoked by Vonage, and the “private” database is also updated
  • /messages: query the “private” database to retrieve all WhatsApp templates to display them in the table on the “debug” page.

it-private.key

Vonage Private Key


pm2 config

*TO DO*

Luca Bottoli 2026/07/31 00:00

  • be360/ocme/backend/send_templates_and_debug.txt
  • Last modified: 2026/07/31 09:26
  • by luca.bottoli