Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express and node pakages

var express = require('express');
var app = express();

app.get('/', function (req, res) {
   res.send('Hello World');
})

var server = app.listen(8081, function () {
   var host = server.address().address
   var port = server.address().port
   
   console.log("Example app listening at http://%s:%s", host, port)
})
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #express #node #pakages
ADD COMMENT
Topic
Name
4+6 =