app.js
var express = require("express");
var app = express();
http.createServer(app);
app.get("/demo",function(req,res){
console.log("hello server");
res.send("hello browser");
res.end();
})
app.listen(3000);
app.js
var express = require("express");
var app = express();
http.createServer(app);
app.get("/demo",function(req,res){
console.log("hello server");
res.send("hello browser");
res.end();
})
app.listen(3000);