Skip to content

Commit

Permalink
add app.js, update scripts on package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hoatle committed Jul 6, 2017
1 parent a2208b5 commit a2228e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var express = require('express');
var app = express();

app.get('/', function (req, res) {
res.send('Hello World!');
});

var port = process.env.PORT || 3000;
app.listen(port, function () {
console.log('app listening on port ' + port);
});
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "nodejs-hello-world",
"version": "0.1.0-SNAPSHOT",
"description": "nodejs-hello-world",
"main": "index.js",
"main": "app.js",
"scripts": {
"dev": "nodemon --inspect=0.0.0.0:5858",
"dev:brk": "nodemon --inspec-brk=0.0.0.0:5858",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Teracy",
Expand Down

0 comments on commit a2228e9

Please sign in to comment.