Last active
May 22, 2016 07:54
-
-
Save BasantPandey/bbaf04d8cffc33cdde89a0a66ce191e0 to your computer and use it in GitHub Desktop.
Express Server : Simple express get request to start the server
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
/** | |
* Created by DELL on 4/22/2016. | |
*/ | |
var express = require('express'); | |
var app = express(); | |
app.get('/',function(req,res){ | |
res.send('Hello Express'); | |
}); | |
var Port = process.env.PORT || 3000; | |
app.listen(Port); | |
console.log("server running on port " + Port); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment