Skip to content

Instantly share code, notes, and snippets.

View marketingstarz's full-sized avatar

Matthew Gregory marketingstarz

View GitHub Profile
// Imports dependencies and set up http server
const
express = require('express'),
bodyParser = require('body-parser'),
app = express().use(bodyParser.json()); // creates express http server
// Sets server port and logs message on success
app.listen(process.env.PORT || 1337, () => console.log('webhook is listening'));
// Creates the endpoint for our webhook