Comments engine example.
Comments for your site. With no server to maintain and no Javascript dependency.
Built on Netlify
Setting up
- Clone the repo and deploy it as a netlify (with one click via this DTN button)
- Configure a Slack integration on your Slack account
- Add the required environment variables for:
API_AUTH
APPROVED_COMMENTS_FORM_ID
SLACK_WEBHOOK_URL
(You'll need to create and configure a Slack App)
- Add build hook (
https://app.netlify.com/sites/{SITE_NAME}/settings/deploys#build-hooks
) which will rebuild and deploy the site whenever a new comment is submitted to the approved form - Add a notification (
https://app.netlify.com/sites/{SITE_NAME}/settings/forms#form-notifications
) which will call our build hook (above) when a new comment is added to the approved comments form. - Add a notification (
https://app.netlify.com/sites/{SITE_NAME}/settings/forms#form-notifications
) to call our comment handler lambda when a new comment is posted to the comments queue for approval.