var Hapi = require("hapi");// Create a server with a host and portvar server = new Hapi.Server("localhost", 8000);// Add the routeserver.route({ method: "GET", path: "/hello", handler: function (request, reply) { reply("hello world"); }});// Start the serverserver.start();