Created
December 26, 2011 17:56
-
-
Save shim0mura/1521722 to your computer and use it in GitHub Desktop.
node.jsでhello world
This file contains 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"), | |
app = express.createServer(), | |
port = process.env.PORT || 3000; | |
app.configure(function(){ | |
app.use(app.router); | |
}); | |
app.get("/", function(req, res){ | |
res.end("hello world!!"); | |
}); | |
app.listen(port); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment