Home
Softono
jamstack-comments-engine

jamstack-comments-engine

Open source JavaScript
161
Stars
46
Forks
21
Issues
4
Watchers
3 years
Last Commit

About jamstack-comments-engine

An example of a comments engine you could add to any JAMstack site hosted on Netlify

Platforms

Web Self-hosted

Languages

JavaScript

Jamstack Comments Engine screengrab

Comments engine example.

Comments for your site. With no server to maintain and no Javascript dependency.

Built on Netlify

Netlify Status

Setting up

  1. Clone the repo and deploy it as a netlify (with one click via this DTN button)

Deploy to Netlify

  1. Configure a Slack integration on your Slack account
  2. 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)
  1. 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
  2. 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.
  3. 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.