Challenge: Setting up a web application with ngrok and webhooks

Code:

const express = require('express');
const app = express();
const port = 3000;

app.get('/', (req, res) => {
  console.log(req);  
  res.send('Hello World!');
});

app.listen(port, () => {
  console.log(`Example app listening at http://localhost:${port}`);
});

console:

{
  "name": "twilio",
  "version": "1.0.0",
  "description": "",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

Built With

Share this project:

Updates