Permalink
Browse files

init

  • Loading branch information...
ekr committed Oct 20, 2011
0 parents commit af61c3532e78b49d60370ec667c067f75687b4b1
Showing with 21 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 Procfile
  3. +7 −0 package.json
  4. +12 −0 web.js
@@ -0,0 +1 @@
+node_modules
@@ -0,0 +1 @@
+web: node web.js
@@ -0,0 +1,7 @@
+{
+ "name": "node-example",
+ "version": "0.0.1",
+ "dependencies": {
+ "express": "2.2.0"
+ }
+}
12 web.js
@@ -0,0 +1,12 @@
+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);
+});

0 comments on commit af61c35

Please sign in to comment.