Skip to content

Instantly share code, notes, and snippets.

@bigtiger
Created March 11, 2014 03:33
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 bigtiger/9479020 to your computer and use it in GitHub Desktop.
Save bigtiger/9479020 to your computer and use it in GitHub Desktop.
// set variables for environment
var express = require('express');
var app = express();
var path = require('path');
var port = 4000;
// Displays server log in the CLI
app.use(express.logger());
// Set server port
app.listen(port);
console.log("Server is running at => http://localhost:" + port + "/\nCTRL + C to shutdown");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment