SHARE
TWEET

Untitled

a guest Aug 19th, 2012 111 Never
  1. var express = require('express');
  2.  
  3. var app = express.createServer(/*express.logger()*/);
  4.  
  5. app.get('/', function(request, response) {
  6.   response.send('Hello World! ');
  7. });
  8.  
  9. var port = process.env.PORT || 5000;
  10. app.listen(port, function() {
  11.   console.log("Listening on " + port);
  12. });
RAW Paste Data
Top