This is a cloud function based webhook that is being using to get webhook calls from RapidPro to capture different analytical data point.
- pyenv
- python 3.8
- Clone the repository
git clone https://github.com/DostEducation/RP_IVR_analytics.git
- Switch to project folder and setup the vertual environment
cd RP_IVR_analytics python -m venv venv
- Activate the virtual environment
source ./venv/bin/activate
- Install the dependencies:
pip install -r requirements-dev.txt
- Set up your .env file by copying .env.example
cp .env.example .env
- Add/update variables in your
.env
file for your environment. - Run the following command to get started with pre-commit
pre-commit install
- Start the server by following command
functions_framework --target=webhook --debug
GNU Affero General Public License v3.0