-
git clone https://github.com/hookdeck/nodejs-webhook-server-example.git
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
In a previous article, we looked at the practice of debugging webhooks. We covered why it is important to debug our webhooks, why webhooks can be difficult to debug, how to know what to debug, and tools that can help make the debugging process easier. In this post, we will put the theory of debugging webhooks into practice by receiving webhooks locally from a Stripe account and debugging them using the Hookdeck CLI.
-
Next, we need a local server to receive webhooks from Stripe. You can use any local server of your choosing, written in your preferred language, as long as you ensure that it is running on a specific port. For this exercise, we will use a Node.js sample API available on the Hookdeck GitHub repository.
-
hookdeck-cli
Alternative to ngrok for localhost asynchronous web development (e.g. webhooks). No account required.
In order to debug webhooks locally, we need to be able to receive webhooks in our local environment. This is not possible out of the box as local running servers are not publicly available on the internet. Therefore, we will use one of the tools mentioned in our debugging guide to achieve this. The Hookdeck CLI will be used because it is built specifically for debugging webhooks, as opposed to the others which have to be configured, and sometimes coupled with other tools, to work with webhooks.
Related posts
-
Webhooks Tutorial: The Beginner’s Guide to Working with Webhooks
-
I Made $6725 in February 2021
-
Release Radar · October 2024: Major updates from the open source community
-
How to Create Your Own Job Board Web App Using React.js, Node.js, SerpApi, and MUI
-
Build Your Own YouTube Thumbnail Downloader! RoR+SerpApi - Part 1