This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 19th, 2012  |  syntax: JavaScript  |  size: 0.29 KB  |  views: 94  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. });
clone this paste RAW Paste Data