
In this guide, we will be using the Hookdeck CLI as the local tunnelling solution. There are various local tunneling tools such as Ngrok & the Hookdeck CLI which could be used to proxy external requests to our server. Next, we run our server using a local tunneling solution so that we can have an HTTPS secured URL even while in development mode. As we move along in this guide, we will build on the server to cater for more functionalities required by the service we are building out. The above snippet is code for a basic NodeJS server that runs on port 3000. Within the index.js file, add the following lines of code:Įnter fullscreen mode Exit fullscreen mode To start, create an index.js file to hold the code for our web server. The web server we build will receive webhooks from Dev.to and post notifications to Slack. The first step in building out this service is to spin up a web server. Deploying our integration in production.

Updating our web server to trigger a Slack notification when we receive Dev.to webhooks.Subscribing to Dev.to API to send us webhooks.

Slack incoming webhooks tutorial how to#
In this short post, I will show you how to build a similar service, leveraging on Dev.to & Slack webhooks. This integration saves time and ensures my colleagues and friends are up to date with all the articles I publish. I built an integration to automatically notify colleagues within a Slack workspace whenever I make updates to an already published article. I love reading and publishing articles on Dev.to! Recently, I discovered the Dev.to API has webhook offerings.
