Skip to content

Instantly share code, notes, and snippets.

View mattgregory-dev's full-sized avatar
🏆
Available for application support opportunities

Matthew Gregory mattgregory-dev

🏆
Available for application support opportunities
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