Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created December 12, 2013 17:25
Show Gist options
  • Select an option

  • Save efleming969/7931848 to your computer and use it in GitHub Desktop.

Select an option

Save efleming969/7931848 to your computer and use it in GitHub Desktop.
var connect = require("connect")
var http = require("http")
var path = require("path")
var app = connect()
app.use(connect.favicon())
app.use(connect.logger("dev"))
app.use(connect.bodyParser())
app.use(connect.methodOverride())
app.use(connect.static("static"))
http.createServer(app).listen(8080, function () {
console.log("Server is running: http://0.0.0.0:8080");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment