Skip to content

Webhook test apps for Node.js, Ruby, and Python

Notifications You must be signed in to change notification settings

button/webhook-test-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webhook Test Apps

Each folder contains a functioning test app for Node.js, Ruby, and Python. Each uses their respective popular web frameworks, Express, Sinatra, and Flask. To run, do the following:

  1. Open up your terminal and navigate to the language you're testing:
  • For Node.js, cd node
  • For Ruby, cd ruby
  • For Python, cd python
  1. Install dependencies:
  • For Node.js, npm install
  • For Ruby, bundle install
  1. Open up either the index.js, index.rb, or index.py and replace your 'WEBHOOK_SECRET' with your webhook secret found in your webhook dashboard after clicking into the the webhook you want to test from that list.
  2. Run the app:
  • For Node.js, node index.js
  • For Ruby, ruby index.rb
  • For Python, python index.py
  1. Open up a local tunnel using ngrok to the local port specified after the previous step. Typically, for Node.js it will be port 5000, for Ruby it will be port 4567, and for Python it will be port 5000.
  2. Set the URL given by ngrok on the webhook dashboard.
  3. Send a test webhook by selecting the Ping button on the webhook dashboard.

About

Webhook test apps for Node.js, Ruby, and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published