Guest User

Untitled

a guest
Feb 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. const hapi = require('hapi');
  2.  
  3. const server = new hapi.Server();
  4. server.connection({host: 'localhost', port: '3000'});
  5. server.start(err => {
  6. if (err) {
  7. throw err;
  8. }
  9. console.log(`Server Running at PORT ${server.info.port}`);
  10. });
Add Comment
Please, Sign In to add comment