Handling and processing Incoming webhook request configured at Glific.
git clone https://github.com/DostEducation/whatsapp-webhook-analytics.git
cd whatsapp-webhook-analytics
python -m venv venv
Activate the virtual environment
For Windows
venv\Scripts\Activate.ps1
For Mac
source ./venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
.env
file for your environment.Run these commands to add environment variables in the system.
For Windows
$env:FLASK_APP="manage.py"
$env:PYTHONPATH="<Path of your project, eg: C:\Users\whatsapp-webhook-analytics>"
For Mac
export FLASK_APP=manage.py
export PYTHONPATH=path-of-the-project
flask db upgrade
pre-commit install
functions_framework --target=handle_payload --debug