This is a simple cloud function that listens for webhook events from Vero and writes them to a BigQuery table.
- setup_bigquery.sh: Sets up the bigquery dataset and tables.
- deploy_function.sh: Deploys the cloud function in api folder.
- Run the setup_bigquery.sh script to setup the bigquery dataset and tables. Make sure to enter the variables at the top of the script.
- Create a new service account and give it the "BigQuery Data Editor" role.
- Deploy the cloud function using the deploy_function.sh script. Make sure to enter the variables at the top of the script.
- Copy the webhook url from the cloud function console and paste it into the Vero webhook settings.