committing my progress, but no working tests yet. stuck on bug where I can't curl the URL I get from the deploy transcript

This commit is contained in:
Jeff Lindsay
2013-06-10 21:26:31 -07:00
parent 06f2c8ff5e
commit 3e2989d954
6 changed files with 69 additions and 5 deletions

View File

@@ -0,0 +1 @@
web: bin/node web.js

View File

@@ -0,0 +1,11 @@
{
"name": "node-example",
"version": "0.0.1",
"dependencies": {
"express": "2.5.x"
},
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
}
}

View File

@@ -0,0 +1,12 @@
var express = require('express');
var app = express.createServer(express.logger());
app.get('/', function(request, response) {
response.send('nodejs/express');
});
var port = process.env.PORT || 5000;
app.listen(port, function() {
console.log("Listening on " + port);
});