A Template project for a Templafy Custom Content Connector API
- Fork the template
- Run locally
- Test locally
- Deploy to Azure
- Configure in Templafy Custom Content Connector
- Press "Use this template"
- Clone the repo to your local machine
npm install
npm run watch
- To test visit: localhost:3000/content/?search=templafy
Alternatively use Postman or similar tools to send the requests and inspect the responses.
- create an Azure Web App (Node 16)
- Press
Get Publish Profile
and copy all text - In github go to
Settings
>Secrets
- Create a new secret
secrets.AZUREAPPSERVICE_PUBLISHPROFILE
, and paste the text fromGet Publish Profile
- Open
.github/workflows/deploy_main_to_azure_web_app.yml
to adjust theapp-name
to match the name of your Azure Web App
- Enable the Custom Content Connector in the Templafy tenant
Hint: For demo and test purposes the Templafy tenant's Custom Content conector can be configured to work with the local server. Simply use ngrok or similar tools to expose the local server's port 3000 to the internet.