Working with webhooks in development

  • webtech

When we develop complex applications, often we want to integrate third party web services such as payment gateways, sms apis and other. Some of them send messages (webhooks) back to our web application in future time, for example to update the status of a record. During development when we work in our local development machine it's difficult to interact with incoming requests from such services. One solution to simplify this task is to use an online http tunnel services such gronk which is one of the ways to expose our virtual host on public internet.

After we download install ngrok client, to map a virtual host domain such as http://eshop.localhost from our local machine to public internet we execute the following command in gronk terminal

./ngrok http -host-header eshop.localhost 80

then ngrok will generate a public url

SaaS software, easy to use platform and interface to setup quickly your eshop .