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.
├── node_modules
├── .env.template
├── .eslintrc.js
├── .genezioignore
├── .gitignore
├── LICENSE
└── genezio.yaml
├── package-lock.json
├── package.json
└── tsconfig.json
└── whatsapp.ts
- Install the Genezio CLI globally
npm install -g genezio
- 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>
- Deploy the project with environment variables
genezio deploy --env .env
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 |
Check out:
If you need support or you have any questions, please join us in our Discord channel. We'd love to chat!