Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. 'use strict';
  2.  
  3. const express = require('express');
  4.  
  5. // Constants
  6. const PORT = 8080;
  7. const HOST = '0.0.0.0';
  8.  
  9. // App
  10. const app = express();
  11. app.get('/', (req, res) => {
  12. res.send('Hello world\n');
  13. });
  14.  
  15. app.listen(PORT, HOST);
  16. console.log(`Running on http://${HOST}:${PORT}`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement