This sample app works as a webhook listener using Node and ExpressJS.
Prerequisites: Node.js.
To install this sample, run the following commands:
git clone https://github.com/ngrok/ngrok-webhook-nodejs-sample.git
cd ngrok-webhook-nodejs-sample
npm i
This will get the project installed locally.
Now you can launch the app:
npm start
Alternativelly, you can run one of the following apps:
npm run startFB
The app runs by default on port 3000
To make your app public using ngrok, enter:
ngrok http 3000
Please raise an issue if you find a problem with this app, or visit our Developer Community.
Apache 2.0, see LICENSE.