Guest User

Index.js

a guest
Dec 15th, 2019
46
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Load express module with `require` directive
  2. var express = require('express')
  3. var app = express()
  4.  
  5. //Define request response in root URL (/)
  6. app.get('/', function (req, res) {
  7. res.send('Hello World!')
  8. })
  9.  
  10. //Launch listening server on port 8081
  11. app.listen(8080, function () {
  12. console.log('app listening on port 8080!')
  13. })
RAW Paste Data