Skip to content

cristim67/whatsapp-bot-starter

Repository files navigation

Join our community Follow @geneziodev

Whatsapp Bot Starter

Prerequisites

If you don't already have them, you'll need to install the following tools:

Note: I recommend you to use nvm to manage NodeJs and npm versions. After installing nvm, you can easily get the any version of node by running nvm install <node_version>. nvm will automatically install the corresponding npm version.

Project Structure

├── node_modules
├── .env.template
├── .eslintrc.js
├── .genezioignore
├── .gitignore
├── LICENSE
└── genezio.yaml
├── package-lock.json
├── package.json
└── tsconfig.json
└── whatsapp.ts

Deploy Your Project

  1. Install the Genezio CLI globally
npm install -g genezio
  1. Login to Genezio
genezio login

3.Create a .env file in the server directory and add the following environment variables:

GRAPH_API_TOKEN=<temporary access token>
BUSINESS_PHONE_NUMBER_ID=<Phone number ID>
WEBHOOK_VERIFY_TOKEN=<random string>
  1. Deploy the project with environment variables
genezio deploy --env .env

Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install -g genezio Installs genezio globally
genezio login Logs in to genezio
genezio local Starts a local server
genezio deploy Deploys a production project
genezio --help Get help using genezio

Want to learn more?

Check out:

Contact

If you need support or you have any questions, please join us in our Discord channel. We'd love to chat!

Built With


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published