Permalink
Browse files

add app.js, update scripts on package.json

  • Loading branch information...
hoatle committed Jul 6, 2017
1 parent a2208b5 commit a2228e9c4da01bf3988337def3cf26c4974a9c6f
Showing with 14 additions and 1 deletion.
  1. +11 −0 app.js
  2. +3 −1 package.json
11 app.js
@@ -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);
});
@@ -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",

0 comments on commit a2228e9

Please sign in to comment.