Created
August 6, 2012 09:12
-
-
Save himerzi/3272467 to your computer and use it in GitHub Desktop.
A super-fast, asynchronous I/O, scalable, robust and event-driven, web-optimised, single-purpose, server.
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'); | |
var app = express.createServer(express.logger()); | |
app.get('/', function(request, response) { | |
response.send('Hello World!'); | |
}); | |
var port = process.env.PORT || 5000; | |
app.listen(port, function() { | |
console.log("Listening on " + port); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment