diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 782ccf037..1a16d1310 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -1,11 +1,15 @@ -var express = require('express'); -app = express(); +var response; -app.get('/', function (req, res) { - res.send('Hello World!\n'); -}); -app.listen(8080, function () { - console.log('Example app listening on port 8080!'); -}); +application.get('/', function (req, res) { + + response = 'This is version 3 of the app.' + '\n'; + + + + //send the response to the client + + res.send(response); + +}); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..48e341a09 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3 @@ +{ + "lockfileVersion": 1 +}