From 9522781ab9c4db549efc6384d1f591a1e2b280b2 Mon Sep 17 00:00:00 2001 From: Asri Azhari <119406840+AsriAzhari123@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:28:52 +0700 Subject: [PATCH 1/8] Update package.json --- nodejs-helloworld/package.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/nodejs-helloworld/package.json b/nodejs-helloworld/package.json index c9768b5e49..a6d1b678bd 100644 --- a/nodejs-helloworld/package.json +++ b/nodejs-helloworld/package.json @@ -1,11 +1,7 @@ { "name": "nodejs-helloworld", - "version": "1.0.0", - "description": "Hello World!", - "main": "app.js", - "author": "Red Hat Training", - "license": "ASL", + ...output omitted... "dependencies": { - "express": "~4.14.2" + "express": "4.14.x" } } From a86a280d0185cf5001cf99b3ce8ccf8aedf3a61e Mon Sep 17 00:00:00 2001 From: Student User Date: Tue, 7 Jan 2025 07:32:49 -0500 Subject: [PATCH 2/8] Fixed Express release --- nodejs-helloworld/package.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/nodejs-helloworld/package.json b/nodejs-helloworld/package.json index c9768b5e49..20d3d4ccfe 100644 --- a/nodejs-helloworld/package.json +++ b/nodejs-helloworld/package.json @@ -1,11 +1,13 @@ { + "name": "nodejs-helloworld", - "version": "1.0.0", - "description": "Hello World!", - "main": "app.js", - "author": "Red Hat Training", - "license": "ASL", + + ...output omitted... + "dependencies": { - "express": "~4.14.2" + + "express": "4.14.x" + } + } From 6d15ced34b6ee62fc27a3cb36183238c20bde752 Mon Sep 17 00:00:00 2001 From: Student User Date: Tue, 7 Jan 2025 07:35:36 -0500 Subject: [PATCH 3/8] Fixed Express release --- nodejs-helloworld/package.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/nodejs-helloworld/package.json b/nodejs-helloworld/package.json index 20d3d4ccfe..ca932b7a7a 100644 --- a/nodejs-helloworld/package.json +++ b/nodejs-helloworld/package.json @@ -2,8 +2,6 @@ "name": "nodejs-helloworld", - ...output omitted... - "dependencies": { "express": "4.14.x" From 6bd7998783256601a73f81c6a60c7770409fbad1 Mon Sep 17 00:00:00 2001 From: Student User Date: Tue, 7 Jan 2025 07:40:15 -0500 Subject: [PATCH 4/8] Added start up script --- nodejs-helloworld/app.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nodejs-helloworld/app.js b/nodejs-helloworld/app.js index 9646c01ab0..5d66b970cc 100644 --- a/nodejs-helloworld/app.js +++ b/nodejs-helloworld/app.js @@ -1,11 +1,11 @@ -var express = require('express'); -app = express(); +... -app.get('/', function (req, res) { - res.send('Hello World!'); -}); + "description": "Hello World!", -app.listen(8080, function () { - console.log('Example app listening on port 8080!'); -}); + "main": "app.js", + "scripts": { "start": "node app.js" }, + + "author": "Red Hat Training", + +... From 6e0466f7efdd32e4c4a3aa5bf300faed1a6a1826 Mon Sep 17 00:00:00 2001 From: Asri Azhari <119406840+AsriAzhari123@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:42:00 +0700 Subject: [PATCH 5/8] Update app.js --- nodejs-helloworld/app.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nodejs-helloworld/app.js b/nodejs-helloworld/app.js index 5d66b970cc..9646c01ab0 100644 --- a/nodejs-helloworld/app.js +++ b/nodejs-helloworld/app.js @@ -1,11 +1,11 @@ -... +var express = require('express'); +app = express(); - "description": "Hello World!", +app.get('/', function (req, res) { + res.send('Hello World!'); +}); - "main": "app.js", +app.listen(8080, function () { + console.log('Example app listening on port 8080!'); +}); - "scripts": { "start": "node app.js" }, - - "author": "Red Hat Training", - -... From c59e91abcc405a7af6ddda0c2e7426d6d75731e2 Mon Sep 17 00:00:00 2001 From: Asri Azhari <119406840+AsriAzhari123@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:43:01 +0700 Subject: [PATCH 6/8] Update package.json --- nodejs-helloworld/package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nodejs-helloworld/package.json b/nodejs-helloworld/package.json index ca932b7a7a..9646c01ab0 100644 --- a/nodejs-helloworld/package.json +++ b/nodejs-helloworld/package.json @@ -1,11 +1,11 @@ -{ +var express = require('express'); +app = express(); - "name": "nodejs-helloworld", +app.get('/', function (req, res) { + res.send('Hello World!'); +}); - "dependencies": { +app.listen(8080, function () { + console.log('Example app listening on port 8080!'); +}); - "express": "4.14.x" - - } - -} From a7baa4f2f3041cdc8586ef324db3e1971f531e89 Mon Sep 17 00:00:00 2001 From: Asri Azhari <119406840+AsriAzhari123@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:44:47 +0700 Subject: [PATCH 7/8] Update package.json --- nodejs-helloworld/package.json | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/nodejs-helloworld/package.json b/nodejs-helloworld/package.json index 9646c01ab0..3ef038dd6d 100644 --- a/nodejs-helloworld/package.json +++ b/nodejs-helloworld/package.json @@ -1,11 +1,10 @@ -var express = require('express'); -app = express(); - -app.get('/', function (req, res) { - res.send('Hello World!'); -}); - -app.listen(8080, function () { - console.log('Example app listening on port 8080!'); -}); - +{ + "name": "nodejs-helloworld", + "description": "Hello World!", + "main": "app.js", + "scripts": { "start": "node app.js" }, + "author": "Red Hat Training", + "dependencies": { + "express": "4.14.x" + } +} From fdcb38a3b1143adf749710d179305daffb38623f Mon Sep 17 00:00:00 2001 From: Asri Azhari <119406840+AsriAzhari123@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:45:48 +0700 Subject: [PATCH 8/8] Update package.json --- nodejs-helloworld/package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodejs-helloworld/package.json b/nodejs-helloworld/package.json index a6d1b678bd..3ef038dd6d 100644 --- a/nodejs-helloworld/package.json +++ b/nodejs-helloworld/package.json @@ -1,6 +1,9 @@ { "name": "nodejs-helloworld", - ...output omitted... + "description": "Hello World!", + "main": "app.js", + "scripts": { "start": "node app.js" }, + "author": "Red Hat Training", "dependencies": { "express": "4.14.x" }