Skip to content

Instantly share code, notes, and snippets.

@vdeturckheim
Created March 10, 2016 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdeturckheim/f6d48d28a96eb3dbe5fb to your computer and use it in GitHub Desktop.
Save vdeturckheim/f6d48d28a96eb3dbe5fb to your computer and use it in GitHub Desktop.
const Hapi = require('hapi');
const Path = require('path');
const server = new Hapi.Server();
server.connection({ port: 4000 });
server.register([require('inert'), require('susie')], err => {
if (err) {
throw err;
}
server.route(require('./routes'));
server.start(err => {
if (err) {
throw err;
}
console.log('Started server');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment