Skip to content

Instantly share code, notes, and snippets.

@BasantPandey
Last active May 22, 2016 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BasantPandey/bbaf04d8cffc33cdde89a0a66ce191e0 to your computer and use it in GitHub Desktop.
Save BasantPandey/bbaf04d8cffc33cdde89a0a66ce191e0 to your computer and use it in GitHub Desktop.
Express Server : Simple express get request to start the server
/**
* 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