This tiny express app is a simple example of how to use Nylas' webhooks feature. This app correctly responds to Nylas' challenge request when you add a webhook url to the developer dashboard. It also verifies any webhook notification POST requests by Nylas and prints out some information about the notification.
ngrok makes it really easy to test callback urls that are running locally on your computer.
node / npm
npm are installed.
Running the app
First, make sure ngrok is running with the same port that the local express app is running.
ngrok http 1234
Next, run the express app.
Follow the instructions that are printed to the console.