Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Garplind committed Aug 10, 2015
0 parents commit f264b1b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node server.js
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "node101",
"version": "1.0.0",
"description": "node tut",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"author": "",
"license": "ISC"
}
10 changes: 10 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var http = require('http');

var server = http.createServer(function(request, response) {
response.writeHead(200, {'Content-type': 'text/html'});
response.end('<h1>Hello World!</h1>');
});

var port = Number(process.env.PORT || 8080);

server.listen(port);

0 comments on commit f264b1b

Please sign in to comment.