Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const hapi = require('hapi');
- const server = new hapi.Server();
- server.connection({host: 'localhost', port: '3000'});
- server.start(err => {
- if (err) {
- throw err;
- }
- console.log(`Server Running at PORT ${server.info.port}`);
- });
Add Comment
Please, Sign In to add comment