An open API service indexing awesome lists of open source software.

https://github.com/simply007/kontent-webhook-processing-function-js

Kentico Kontent Webhook Processing Javascript Azure Function Template
https://github.com/simply007/kontent-webhook-processing-function-js

azure azure-functions caas headless javascript kentico-kontent webhoo

Last synced: about 1 month ago
JSON representation

Kentico Kontent Webhook Processing Javascript Azure Function Template

Awesome Lists containing this project

README

          

# Kentico Kontent Webhook Processing JavaScript Azure Function Template

[![Gitter](https://img.shields.io/gitter/room/kentico/kontent.svg)](https://gitter.im/Kentico/Kontent)
[![Stack Overflow](https://img.shields.io/badge/Stack%20Overflow-ASK%20NOW-FE7A16.svg?logo=stackoverflow&logoColor=white)](https://stackoverflow.com/tags/kentico-kontent)

> Pretty long name, right?

## Prerequisites

Follow the [instructions](https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local) to enable local Azure function development.

## Get started

> Using VS Code IDE recommended

1. Clone the repository

```sh
git clone https://Github.com/Simply007/kontent-webhook-processing-function-js
```

1. [Create a webhook](https://docs.kontent.ai/tutorials/develop-apps/integrate/using-webhooks-for-automatic-updates#a-creating-a-webhook) in Kentico Kontent

1. Rename [`local.settings.json.template`](./local.settings.json.template) to `local.settings.json` and set the `KONTENT_WEBHOOK_SECRET` value to the secret of created webhook for [verification](KONTENT_WEBHOOK_SECRET)

1. Implement webhook processing in [index.js](/ProcessWebhook/index.js#L26)

1. Use [Azure Functions Extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions) to deploy the Azure function.