Created
June 4, 2017 15:39
-
-
Save RakeshChouhan/8fb532cc14aa60350bcb679dd7a9138b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require("express"); | |
var app = express(); | |
app.get("/", function(req, res){ | |
res.send("Get methods"); | |
}); | |
app.use(express.static("public")); // put the static data folder name here which contain your UI code. | |
var server = app.listen(8081, function(){ | |
var host = server.address().address; | |
var port = server.address().port; | |
console.log(host +" : "+port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment