Advertisement
deusthorr

index.js

Mar 4th, 2022
2,733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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');
  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