This is the codebase used in the article.
Files:
You need to start webhooks before index.
Execute the following command in a terminal:
node webhooks.js
Open a new terminal and execute this other command:
node index.js
After a few seconds press Ctrl+C
and see how the server shuts down.