From a26c9ebb54ba6ade6382f84d98d730dc6c6e0d25 Mon Sep 17 00:00:00 2001 From: algomesdias Date: Wed, 28 May 2025 04:11:55 -0400 Subject: [PATCH 1/4] new branch update app --- package-lock.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 package-lock.json 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 +} From befdb36aca4b8af5958e839aa512e6b27c22c5ea Mon Sep 17 00:00:00 2001 From: algomesdias Date: Wed, 28 May 2025 04:33:00 -0400 Subject: [PATCH 2/4] new version output --- express-helloworld/app.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 782ccf037..81b071840 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -1,10 +1,27 @@ var express = require('express'); app = express(); +...output omitted..app +var response; + + + app.get('/', function (req, res) { - res.send('Hello World!\n'); + + response = 'This is version 2 of the app.' + '\n'; + + + + //send the response to the client + + res.send(response); + + + }); +...output omitted... + app.listen(8080, function () { console.log('Example app listening on port 8080!'); }); From 2df0dd2cd0ddce4a83ff2251bf4523c742e6d2ea Mon Sep 17 00:00:00 2001 From: algomesdias Date: Wed, 28 May 2025 04:38:44 -0400 Subject: [PATCH 3/4] new version 2 --- express-helloworld/app.js | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 81b071840..1f3e44efb 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -1,28 +1,11 @@ -var express = require('express'); -app = express(); +// Define a route for the root path -...output omitted..app -var response; +const { application } = require("express"); +application.get('/', function (req, res) { + // Send the response directly -app.get('/', function (req, res) { - - response = 'This is version 2 of the app.' + '\n'; - - - - //send the response to the client - - res.send(response); - - - -}); - -...output omitted... - -app.listen(8080, function () { - console.log('Example app listening on port 8080!'); -}); + res.send('This is version 2 of the app.\n'); +}); \ No newline at end of file From 0a297820ce2c89afd06485bb4f939f7ef1ca04e0 Mon Sep 17 00:00:00 2001 From: algomesdias Date: Wed, 28 May 2025 04:56:40 -0400 Subject: [PATCH 4/4] version 3 --- express-helloworld/app.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 1f3e44efb..1a16d1310 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -1,11 +1,15 @@ -// Define a route for the root path +var response; + -const { application } = require("express"); application.get('/', function (req, res) { - // Send the response directly + response = 'This is version 3 of the app.' + '\n'; + + + + //send the response to the client - res.send('This is version 2 of the app.\n'); + res.send(response); }); \ No newline at end of file