AskBox is a simple RequestBin clone for receiving and debugging webhooks.
AskBox generates a random endpoint that saves POST requests it receives to a local Redis server for two days. AskBox also provides a way to view the json data of requests in a browser.
It's configured to be run locally and work with ngrok.
- In a new directory, clone this repository
git clone https://github.com/aumi9292/askbox.git - Run the server using
node index.js. It will run theAskBoxserver onlocalhost:3000. - Make sure you have ngrok installed.
- In the directory where
ngrokis installed, run./ngrok http 3000. This generates a URL that will forward HTTP traffic tolocalhost:3000. - To see how AskBox works, navigate to any GitHub repository and add a webhook to it (
Settings => Webhooks). Do this using the endpoint output in thengrokterminal, concatenated withrand the path output when visitinglocalhost:3000. For example, this could behttps://c4fa-71-205-185-110.ngrok.io/r/l6DgkVc6. - This will send a
pingto the AskBox server running locally. To see the json object representation of thatPOSTrequest, visit thengrokURL, concatenated withr, the path output atlocalhost:3000, and the query stringinspect=true. For example,https://c4fa-71-205-185-110.ngrok.io/r/l6DgkVc6?inspect=true.