Skip to content

Latest commit

 

History

History
executable file
·
50 lines (36 loc) · 760 Bytes

README.md

File metadata and controls

executable file
·
50 lines (36 loc) · 760 Bytes

Whatsapp Gateway

Installation

  • Clone the repo
  • add .env inside the destination folder
  • add these variables:
API_PORT=
WA_SESSION=
SECRET_KEY=

MONGOD_HOST=localhost
MONGOD_PORT=27017
MONGOD_DB=
MONGOD_USERNAME=
MONGOD_PASSWORD=
MONGOD_AUTH_SOURCE=

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

Shared Node Modules and .next Releases

GIT PULL AND REMOVE NODE_MODULES
git checkout . && git pull && rm -rf node_modules && ln -s ../api/node_modules/
ln -s ../api/tokens
ln -s ../api/log_qr
SETUP API
pm2 delete --silent api
pm2 start -n api-whatsapp-gateway dante.js --silent
SETUP SENDER WA GATEWAY
pm2 delete --silent wa_{phone}
pm2 start -n wa-{phone} wa_baileys.js --silent