Created
March 10, 2016 21:15
-
-
Save vdeturckheim/f6d48d28a96eb3dbe5fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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