makemehapi/01-HELLO_HAPI.js
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({
host: 'localhost',
port: Number(process.argv[2] || 8080)
});
function hellohandler(request, reply) {
reply("Hello Hapi");
}
server.route({path: '/', method:'GET', handler: hellohandler});
server.start();