Created
June 19, 2013 15:13
-
-
Save efleming969/5815102 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
| 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