Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created June 19, 2013 15:13
Show Gist options
  • Select an option

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

Select an option

Save efleming969/5815102 to your computer and use it in GitHub Desktop.
var express = require("express")
var http = require("http")
var path = require("path")
var app = express()
app.configure(function () {
app.use(express.favicon())
app.use(express.logger("dev"))
app.use(express.bodyParser())
app.use(express.methodOverride())
app.use(express.static(path.join(__dirname, "static")))
});
app.configure("development", function () {
app.use(express.errorHandler())
});
app.get("/data.json", function (req, res) {
res.send([])
});
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