Open
Description
It would be super helpful for others who don't want to use Lambda or Express if one of the examples demonstrated how to use alexa-app with a simple low-level server such as this:
const http = require('http');
const alexa = require('alexa-app');
const alexaApp = new alexa.app('testApp');
const server = (req, res) => {
if (req.method === 'POST') {
const body = [];
req.on('data', (chunk) => body.push(chunk));
req.on('end', () => {
// do alexa-app integration magic in here
console.log(body.join(''));
res.writeHead(200);
res.end('ok');
});
} else {
res.writeHead(404);
res.end('bye');
}