Created
March 11, 2014 03:33
-
-
Save bigtiger/9479020 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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