From 57d1ca5823e74809436f92260dea7af667fb08bd Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 19:42:35 -0700 Subject: [PATCH 01/13] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b54463d8..29c717a2 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ ], "scripts": { "ng": "ng", - "start": "ng serve", + "start": "npm install && ng serve", "build": "ng build", "build-lib": "ng build @coreui/angular --prod", "test": "ng test", From fa429153d4a513d3d6628efdcd7d739d9f241ee8 Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 20:20:09 -0700 Subject: [PATCH 02/13] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 29c717a2..7c2f7a45 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ ], "scripts": { "ng": "ng", - "start": "npm install && ng serve", + "start": "ng serve -p 80", "build": "ng build", "build-lib": "ng build @coreui/angular --prod", "test": "ng test", From 6b5596ba099a49fd3cb89eea94e7baef13c94acf Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 20:22:52 -0700 Subject: [PATCH 03/13] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c2f7a45..35a94abe 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ ], "scripts": { "ng": "ng", - "start": "ng serve -p 80", + "start": "ng serve --port 80", "build": "ng build", "build-lib": "ng build @coreui/angular --prod", "test": "ng test", From aebbe7b2a8a77d02bcde2804545350e89e229c2c Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 21:18:38 -0700 Subject: [PATCH 04/13] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 35a94abe..b54463d8 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ ], "scripts": { "ng": "ng", - "start": "ng serve --port 80", + "start": "ng serve", "build": "ng build", "build-lib": "ng build @coreui/angular --prod", "test": "ng test", From 49f3deb99e4b1d91af53ed24fbc541f62bd34330 Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 21:20:48 -0700 Subject: [PATCH 05/13] Create buildspec.yml --- buildspec.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 buildspec.yml diff --git a/buildspec.yml b/buildspec.yml new file mode 100644 index 00000000..682d6780 --- /dev/null +++ b/buildspec.yml @@ -0,0 +1,4 @@ +version: 0.2 +artifacts: + files: + - '**/*' From 91cefc6a6af855b9c1d615ddb761d5f06333f583 Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 21:23:09 -0700 Subject: [PATCH 06/13] Update buildspec.yml --- buildspec.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildspec.yml b/buildspec.yml index 682d6780..7a71bf9a 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -2,3 +2,7 @@ version: 0.2 artifacts: files: - '**/*' +phases: + install: + runtime-versions: + nodejs: 10 From 426edf43e4bcb91cd0cd1440d81446d5a1260bd2 Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 21:24:45 -0700 Subject: [PATCH 07/13] Update buildspec.yml --- buildspec.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildspec.yml b/buildspec.yml index 7a71bf9a..d40048ab 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -6,3 +6,6 @@ phases: install: runtime-versions: nodejs: 10 + build: + commands: + - npm run build From c6858a4b4c2b33eea84f28e857e9f9521fae2183 Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 21:25:59 -0700 Subject: [PATCH 08/13] Update buildspec.yml --- buildspec.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/buildspec.yml b/buildspec.yml index d40048ab..06ea30bc 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -8,4 +8,5 @@ phases: nodejs: 10 build: commands: + - npm install - npm run build From a9444b803abbf968aae27499f08eaf4a4aad929d Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 21:32:19 -0700 Subject: [PATCH 09/13] Create server.js --- server.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 server.js diff --git a/server.js b/server.js new file mode 100644 index 00000000..821f3427 --- /dev/null +++ b/server.js @@ -0,0 +1,13 @@ +// server.js: This is a tiny NodeJS web server hosting static files from the /www folder in the Elastic Beanstalk deployment ZIP +// Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. +var express = require('express'); +// Let's create an instance of an express web server +var app = express(); +// By default, let's use port 80, unless we provide a different value as argument or system environment variable +var port = process.env.PORT || process.argv[2] || 80; +// Let's host all the static files in /www as root of our little web server +app.use('/', express.static(__dirname + '/www')); +// Start listening on the desired port for incoming traffic +var server = app.listen(port, function () { + console.log('listening on port:', port); +}); From 3f43c9dd3b1217ac5f6c2d9c8b29e3faff6f884b Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 21:43:21 -0700 Subject: [PATCH 10/13] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 06ea30bc..7da97eae 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -9,4 +9,4 @@ phases: build: commands: - npm install - - npm run build + - npm build From 46b43df5f5c4b51207ff01ebc3a63d254d5cbe30 Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 21:45:16 -0700 Subject: [PATCH 11/13] Update buildspec.yml --- buildspec.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index 7da97eae..06ea30bc 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -9,4 +9,4 @@ phases: build: commands: - npm install - - npm build + - npm run build From 99d4d36bd82c9c9085d2678f0d01a209ea91acb7 Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 22:12:09 -0700 Subject: [PATCH 12/13] Update buildspec.yml From c1aa18ac5ee3ddc3b2a5db1a4b64fdd36d66a9f6 Mon Sep 17 00:00:00 2001 From: ksabine <45321232+ksabine@users.noreply.github.com> Date: Fri, 4 Oct 2019 23:52:19 -0700 Subject: [PATCH 13/13] Update package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index b54463d8..c4cca5ed 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "@angular/platform-browser-dynamic": "^8.2.7", "@angular/router": "^8.2.7", "core-js": "^2.6.9", + "express": "^4.17.1", "rxjs": "^6.5.3", "zone.js": "^0.10.2" },