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.jsOpen a new terminal and execute this other command:
node index.jsAfter a few seconds press Ctrl+C and see how the server shuts down.