We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2208b5 commit a2228e9Copy full SHA for a2228e9
2 files changed
app.js
@@ -0,0 +1,11 @@
1
+var express = require('express');
2
+var app = express();
3
+
4
+app.get('/', function (req, res) {
5
+ res.send('Hello World!');
6
+});
7
8
+var port = process.env.PORT || 3000;
9
+app.listen(port, function () {
10
+ console.log('app listening on port ' + port);
11
package.json
@@ -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 commit comments