Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The app is a one-page web application that is designed to capture incoming POST requests and display them on the index page. The app uses Cloudflare tunnels, which are available for a free trial.

Notifications You must be signed in to change notification settings

poputu/webhook_watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Webhook Listener

This is a Node.js application that creates a webhook listener and allows you to see the payloads sent to the listener.

Prerequisites

  • Node.js
  • cloudflared command-line tool

Installation

  1. Install cloudflared by running the following command:

    • Run brew install cloudflared
  2. Clone this repository and navigate to the root directory.

  3. Install the required dependencies by running:

    • Run nvm install

Usage

  1. To redirect requests to another application, you'll need to set the REDIRECT_PORT environment variable. This can be done by adding the variable to your system environment variables or by setting it in your IDE's run configuration, depending on your development environment. Once the variable is set, the application will automatically redirect requests to the specified port.

  2. Start the server by running the following command:

    -Run node app.js

  3. Open your browser and navigate to http://localhost:3099. You should see a message saying "Link, where listener is running:" followed by a link. This is the link where your webhook listener is running.

  4. Use provided link as the webhook URL when setting up a webhook on any service.

  5. When a webhook is sent to your listener, the payload will be displayed on the webpage.

License

This project is licensed under the MIT License

About

The app is a one-page web application that is designed to capture incoming POST requests and display them on the index page. The app uses Cloudflare tunnels, which are available for a free trial.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published