Skip to content

Instantly share code, notes, and snippets.

@shim0mura
Created December 26, 2011 17:56
Show Gist options
  • Save shim0mura/1521722 to your computer and use it in GitHub Desktop.
Save shim0mura/1521722 to your computer and use it in GitHub Desktop.
node.jsでhello world
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