Skip to content
Browse files

init

  • Loading branch information...
0 parents commit af61c3532e78b49d60370ec667c067f75687b4b1 @ekr ekr committed Oct 19, 2011
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
1 .gitignore
@@ -0,0 +1 @@
+node_modules
1 Procfile
@@ -0,0 +1 @@
+web: node web.js
7 package.json
@@ -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.
Something went wrong with that request. Please try again.