Commits

Don Brown  committed b48a699

First commit of example

  • Participants

Comments (0)

Files changed (4)

+node_modules
+web: node web.js

File package.json

+{
+    "name": "node-example",
+    "version": "0.0.1",
+    "dependencies": {
+        "express" : "2.2.0"
+    }
+}
+var express = require('express');
+
+var app = express.createServer(express.logger());
+
+app.get('/', function(request, response) {
+  response.send('Hello World!');
+  });
+
+var port = process.env.PORT || 3000;
+app.listen(port,function() {
+        console.log("Listening on " + port);
+        });
+