master | develop |
---|---|
Backend function for Kontent.ai Learn that fetches content from Kontent.ai.
The function responds to webhooks from Kontent.ai and then notifies Tutorial Search Service and Reference Preprocessor about changes in content.
- This project is a TypeScript Azure Functions application.
- It publishes events to an Azure Event Grid topic, where any number of subscribers can listen.
- Most importantly, the service forwards the type of Kontent.ai operation along with codenames of the affected content items, so the subscribers can then act accordingly.
- Node (+yarn) installed
- Visual Studio Code installed
- Subscriptions on MS Azure and Kontent.ai
- Open Visual Studio Code and install the prerequisites according to the following steps.
- Log in to Azure using the Azure Functions extension tab.
- Clone the project repository and open it in Visual Studio Code.
- Run
yarn install
in the terminal. - Set the required keys.
- Deploy to Azure using Azure Functions extension tab, or run locally by pressing
Ctrl + F5
in Visual Studio Code.
EventGrid.DocsChanged.Endpoint
- Event Grid endpointEventGrid.DocsChanged.Key
- Event Grid topic authentication key
- Run
yarn run test
in the terminal.
Feel free to open a new issue where you describe your proposed changes, or even create a new pull request from your branch with proposed changes.
All the source codes are published under MIT license.