├── 6-mongodb-migration ├── namespace-metadata.yaml ├── svc.yaml ├── pv.yaml ├── pv-minio.yaml ├── pv0.yaml ├── pv1.yaml ├── pv2.yaml ├── pvc-minio.yaml ├── mongo-backup-secret.yaml └── svc-minio.yaml ├── 4-two-tier-app ├── Kubernets_config_files │ ├── sec.txt │ ├── db-config.yaml │ ├── mysql-secret.yaml │ ├── app-secret.yaml │ ├── part2 │ │ ├── app-chart │ │ │ ├── templates │ │ │ │ ├── app-secret.yaml │ │ │ │ ├── app-secret-registry.yaml │ │ │ │ ├── app-config.yaml │ │ │ │ ├── app-svc.yaml │ │ │ │ ├── app-deployment.yaml │ │ │ │ └── application-ingress.yaml │ │ │ └── .helmignore │ │ ├── mysql-chart │ │ │ ├── templates │ │ │ │ ├── db-secret.yaml │ │ │ │ ├── mysql-svc.yaml │ │ │ │ └── db-initdb-config.yaml │ │ │ └── .helmignore │ │ ├── phpmyadmin-chart │ │ │ ├── templates │ │ │ │ ├── phpmyadmin-config.yaml │ │ │ │ ├── phpmyadmin-svc.yaml │ │ │ │ └── phpmyadmin-pod.yaml │ │ │ └── .helmignore │ │ ├── db-pvc.yaml │ │ ├── app-svc.yaml │ │ ├── db-pv.yaml │ │ ├── mysql-svc.yaml │ │ ├── phpmyadmin-svc.yaml │ │ ├── application-ingress.yaml.bk │ │ ├── application-ingress.yaml │ │ └── application-ingress.yaml.ok │ ├── db-secret.yaml │ ├── phpmyadmin-config.yaml │ ├── init.sql │ ├── db-pvc.yaml │ ├── app-config.yaml │ ├── registry_cred.yaml │ ├── db-pv.yaml │ ├── mysql-svc.yaml │ ├── app-svc.yaml │ ├── phpmyadmin-svc.yaml │ ├── phpmyadmin-pod.yaml │ ├── db-initdb-config.yaml │ ├── app-deployment.yaml │ └── mysql-pod.yaml └── APP-CODE │ └── node_project │ ├── node_modules │ ├── mime │ │ ├── .npmignore │ │ └── cli.js │ ├── .bin │ │ ├── mime │ │ ├── ejs │ │ ├── jake │ │ └── semver │ ├── dotenv │ │ ├── config.d.ts │ │ ├── config.js │ │ └── lib │ │ │ ├── cli-options.js │ │ │ └── env-options.js │ ├── call-bind │ │ ├── .eslintignore │ │ ├── .nycrc │ │ ├── .eslintrc │ │ ├── callBound.js │ │ └── .github │ │ │ └── FUNDING.yml │ ├── isarray │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── Makefile │ │ ├── index.js │ │ ├── test.js │ │ └── component.json │ ├── ecdsa-sig-formatter │ │ ├── CODEOWNERS │ │ └── src │ │ │ ├── param-bytes-for-alg.js │ │ │ └── ecdsa-sig-formatter.d.ts │ ├── debug │ │ ├── node.js │ │ ├── .coveralls.yml │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── .eslintrc │ │ ├── src │ │ │ ├── index.js │ │ │ └── inspector-log.js │ │ └── component.json │ ├── sqlstring │ │ └── index.js │ ├── buffer-equal-constant-time │ │ ├── .npmignore │ │ ├── .travis.yml │ │ └── package.json │ ├── cookie-signature │ │ ├── .npmignore │ │ ├── package.json │ │ └── History.md │ ├── mysql │ │ └── lib │ │ │ ├── protocol │ │ │ ├── SqlString.js │ │ │ ├── PacketHeader.js │ │ │ ├── packets │ │ │ │ ├── EmptyPacket.js │ │ │ │ ├── ComPingPacket.js │ │ │ │ ├── ComQuitPacket.js │ │ │ │ ├── ComStatisticsPacket.js │ │ │ │ ├── LocalDataFilePacket.js │ │ │ │ ├── OldPasswordPacket.js │ │ │ │ ├── AuthSwitchResponsePacket.js │ │ │ │ ├── ResultSetHeaderPacket.js │ │ │ │ ├── UseOldPasswordPacket.js │ │ │ │ ├── ComQueryPacket.js │ │ │ │ ├── StatisticsPacket.js │ │ │ │ ├── LocalInfileRequestPacket.js │ │ │ │ ├── Field.js │ │ │ │ ├── AuthSwitchRequestPacket.js │ │ │ │ └── EofPacket.js │ │ │ ├── ResultSet.js │ │ │ ├── sequences │ │ │ │ ├── index.js │ │ │ │ └── Ping.js │ │ │ ├── BufferList.js │ │ │ └── Timer.js │ │ │ └── PoolSelector.js │ ├── object-inspect │ │ ├── util.inspect.js │ │ ├── example │ │ │ ├── circular.js │ │ │ ├── fn.js │ │ │ ├── inspect.js │ │ │ └── all.js │ │ ├── .nycrc │ │ ├── test │ │ │ ├── holes.js │ │ │ ├── lowbyte.js │ │ │ ├── undef.js │ │ │ ├── deep.js │ │ │ ├── global.js │ │ │ ├── browser │ │ │ │ └── dom.js │ │ │ ├── circular.js │ │ │ ├── has.js │ │ │ └── fakes.js │ │ ├── package-support.json │ │ ├── .github │ │ │ └── FUNDING.yml │ │ └── test-core-js.js │ ├── readable-stream │ │ ├── duplex.js │ │ ├── transform.js │ │ ├── lib │ │ │ └── internal │ │ │ │ └── streams │ │ │ │ ├── stream.js │ │ │ │ └── stream-browser.js │ │ ├── passthrough.js │ │ ├── duplex-browser.js │ │ ├── writable-browser.js │ │ ├── writable.js │ │ ├── readable-browser.js │ │ └── readable.js │ ├── bcryptjs │ │ ├── .vscode │ │ │ └── settings.json │ │ ├── .npmignore │ │ ├── dist │ │ │ ├── bcrypt.min.js.gz │ │ │ └── README.md │ │ ├── .travis.yml │ │ ├── src │ │ │ ├── bcrypt │ │ │ │ └── prng │ │ │ │ │ └── README.md │ │ │ └── bower.json │ │ └── bower.json │ ├── concat-map │ │ ├── .travis.yml │ │ ├── example │ │ │ └── map.js │ │ └── index.js │ ├── es-errors │ │ ├── .eslintrc │ │ ├── index.d.ts │ │ ├── type.d.ts │ │ ├── uri.d.ts │ │ ├── eval.d.ts │ │ ├── index.js │ │ ├── range.d.ts │ │ ├── eval.js │ │ ├── syntax.d.ts │ │ ├── type.js │ │ ├── uri.js │ │ ├── range.js │ │ ├── ref.d.ts │ │ ├── ref.js │ │ ├── syntax.js │ │ ├── test │ │ │ └── index.js │ │ └── .github │ │ │ └── FUNDING.yml │ ├── has-proto │ │ ├── .eslintrc │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── test │ │ │ └── index.js │ │ └── .github │ │ │ └── FUNDING.yml │ ├── hasown │ │ ├── .eslintrc │ │ ├── tsconfig.json │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── .nycrc │ │ └── .github │ │ │ └── FUNDING.yml │ ├── unpipe │ │ └── HISTORY.md │ ├── balanced-match │ │ └── .github │ │ │ └── FUNDING.yml │ ├── random-bytes │ │ └── HISTORY.md │ ├── semver │ │ ├── preload.js │ │ ├── functions │ │ │ ├── eq.js │ │ │ ├── gt.js │ │ │ ├── gte.js │ │ │ ├── lt.js │ │ │ ├── lte.js │ │ │ ├── neq.js │ │ │ ├── rcompare.js │ │ │ ├── compare-loose.js │ │ │ ├── major.js │ │ │ ├── minor.js │ │ │ ├── patch.js │ │ │ ├── sort.js │ │ │ ├── rsort.js │ │ │ ├── compare.js │ │ │ ├── valid.js │ │ │ ├── clean.js │ │ │ ├── prerelease.js │ │ │ ├── satisfies.js │ │ │ ├── compare-build.js │ │ │ ├── parse.js │ │ │ └── inc.js │ │ ├── classes │ │ │ └── index.js │ │ ├── ranges │ │ │ ├── gtr.js │ │ │ ├── ltr.js │ │ │ ├── intersects.js │ │ │ ├── to-comparators.js │ │ │ ├── valid.js │ │ │ ├── min-satisfying.js │ │ │ └── max-satisfying.js │ │ ├── internal │ │ │ ├── debug.js │ │ │ ├── parse-options.js │ │ │ └── identifiers.js │ │ ├── range.bnf │ │ └── LICENSE │ ├── connect-flash │ │ ├── .travis.yml │ │ └── lib │ │ │ └── index.js │ ├── core-util-is │ │ └── README.md │ ├── supports-color │ │ └── browser.js │ ├── filelist │ │ ├── node_modules │ │ │ ├── brace-expansion │ │ │ │ └── .github │ │ │ │ │ └── FUNDING.yml │ │ │ └── minimatch │ │ │ │ ├── lib │ │ │ │ └── path.js │ │ │ │ └── LICENSE │ │ ├── jakefile.js │ │ └── package.json │ ├── setprototypeof │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── LICENSE │ │ └── test │ │ │ └── index.js │ ├── side-channel │ │ ├── README.md │ │ ├── .editorconfig │ │ ├── .eslintrc │ │ ├── .nycrc │ │ └── .github │ │ │ └── FUNDING.yml │ ├── es-define-property │ │ ├── index.d.ts │ │ ├── .nycrc │ │ ├── .eslintrc │ │ ├── index.js │ │ └── .github │ │ │ └── FUNDING.yml │ ├── utils-merge │ │ ├── .npmignore │ │ └── index.js │ ├── jsonwebtoken │ │ ├── lib │ │ │ ├── psSupported.js │ │ │ ├── rsaPssKeyDetailsSupported.js │ │ │ ├── asymmetricKeyDetailsSupported.js │ │ │ ├── NotBeforeError.js │ │ │ ├── TokenExpiredError.js │ │ │ ├── timespan.js │ │ │ └── JsonWebTokenError.js │ │ └── index.js │ ├── function-bind │ │ ├── index.js │ │ ├── .github │ │ │ ├── SECURITY.md │ │ │ └── FUNDING.yml │ │ ├── test │ │ │ └── .eslintrc │ │ ├── .nycrc │ │ └── .eslintrc │ ├── util-deprecate │ │ ├── node.js │ │ ├── History.md │ │ └── package.json │ ├── set-function-length │ │ ├── tsconfig.json │ │ ├── env.d.ts │ │ ├── .nycrc │ │ ├── index.d.ts │ │ ├── .eslintrc │ │ └── .github │ │ │ └── FUNDING.yml │ ├── toidentifier │ │ ├── HISTORY.md │ │ └── index.js │ ├── has-symbols │ │ ├── .nycrc │ │ ├── .eslintrc │ │ ├── index.js │ │ ├── .github │ │ │ └── FUNDING.yml │ │ └── test │ │ │ ├── index.js │ │ │ └── shams │ │ │ ├── get-own-property-symbols.js │ │ │ └── core-js.js │ ├── get-intrinsic │ │ ├── .nycrc │ │ ├── .github │ │ │ └── FUNDING.yml │ │ └── .eslintrc │ ├── has-property-descriptors │ │ ├── .nycrc │ │ ├── .eslintrc │ │ ├── .github │ │ │ └── FUNDING.yml │ │ └── index.js │ ├── mime-db │ │ └── index.js │ ├── async │ │ ├── apply.js │ │ ├── internal │ │ │ ├── getIterator.js │ │ │ ├── breakLoop.js │ │ │ ├── withoutIndex.js │ │ │ ├── isArrayLike.js │ │ │ ├── range.js │ │ │ ├── initialParams.js │ │ │ ├── onlyOnce.js │ │ │ ├── once.js │ │ │ ├── promiseCallback.js │ │ │ └── reject.js │ │ ├── bower.json │ │ ├── constant.js │ │ ├── queue.js │ │ └── unmemoize.js │ ├── qs │ │ ├── lib │ │ │ ├── index.js │ │ │ └── formats.js │ │ ├── .nycrc │ │ ├── .github │ │ │ └── FUNDING.yml │ │ └── .editorconfig │ ├── jake │ │ ├── test │ │ │ ├── integration │ │ │ │ ├── jakelib │ │ │ │ │ └── required_module.jake.js │ │ │ │ ├── list_tasks.js │ │ │ │ └── publish_task.js │ │ │ └── unit │ │ │ │ └── jakefile.js │ │ ├── lib │ │ │ ├── task │ │ │ │ ├── index.js │ │ │ │ └── directory_task.js │ │ │ └── utils │ │ │ │ └── logger.js │ │ └── README.md │ ├── express │ │ └── index.js │ ├── body-parser │ │ └── node_modules │ │ │ └── qs │ │ │ ├── lib │ │ │ ├── index.js │ │ │ └── formats.js │ │ │ ├── .nycrc │ │ │ ├── .github │ │ │ └── FUNDING.yml │ │ │ └── .editorconfig │ ├── define-data-property │ │ ├── .nycrc │ │ ├── index.d.ts │ │ ├── .eslintrc │ │ └── .github │ │ │ └── FUNDING.yml │ ├── inherits │ │ ├── inherits.js │ │ ├── package.json │ │ ├── LICENSE │ │ └── inherits_browser.js │ ├── gopd │ │ ├── .eslintrc │ │ ├── index.js │ │ ├── .github │ │ │ └── FUNDING.yml │ │ └── test │ │ │ └── index.js │ ├── encodeurl │ │ └── HISTORY.md │ ├── jws │ │ ├── lib │ │ │ └── tostring.js │ │ ├── index.js │ │ └── package.json │ ├── has-flag │ │ ├── index.js │ │ └── index.d.ts │ ├── color-name │ │ ├── README.md │ │ └── package.json │ ├── merge-descriptors │ │ └── HISTORY.md │ ├── on-headers │ │ └── HISTORY.md │ ├── forwarded │ │ └── HISTORY.md │ ├── lodash.once │ │ ├── README.md │ │ └── package.json │ ├── process-nextick-args │ │ ├── readme.md │ │ └── package.json │ ├── escape-html │ │ └── package.json │ ├── lodash.includes │ │ ├── README.md │ │ └── package.json │ ├── lodash.isnumber │ │ ├── README.md │ │ └── package.json │ ├── lodash.isstring │ │ ├── README.md │ │ └── package.json │ ├── lodash.isboolean │ │ ├── README.md │ │ └── package.json │ ├── lodash.isinteger │ │ ├── README.md │ │ └── package.json │ ├── methods │ │ └── HISTORY.md │ ├── media-typer │ │ └── HISTORY.md │ ├── lodash.isplainobject │ │ ├── README.md │ │ └── package.json │ ├── express-session │ │ └── node_modules │ │ │ └── cookie-signature │ │ │ └── package.json │ ├── content-type │ │ └── HISTORY.md │ ├── path-to-regexp │ │ └── package.json │ ├── iconv-lite │ │ └── encodings │ │ │ └── index.js │ ├── minimatch │ │ ├── LICENSE │ │ └── package.json │ ├── ms │ │ └── package.json │ └── ipaddr.js │ │ └── package.json │ ├── .env │ ├── dockerfile │ ├── routes │ └── auth.js │ ├── public │ └── welcome.css │ └── package.json ├── 5-github-action ├── requirements.txt ├── Dockerfile └── app-k8s │ ├── service.yaml │ └── deployment.yaml ├── 1-K8S-CICD ├── Dockerfile ├── src │ └── images │ │ └── img.jpg ├── html-src │ └── images │ │ └── img.jpg ├── k8s-src │ ├── secret.yml │ ├── sample.yml │ └── svc.yml ├── test-login-app │ ├── templates │ │ ├── secret.yaml │ │ ├── service.yaml │ │ └── deployment.yaml │ └── .helmignore ├── chart-name.py └── package-name.py ├── 2-AgroCD ├── code-repo │ ├── Dockerfile │ └── source_code │ │ └── images │ │ ├── 1.jpg │ │ ├── 2.jpg │ │ ├── 2.png │ │ └── 3.jpg └── manifest-repo │ └── test-login-app │ ├── templates │ ├── secret.yaml │ ├── service.yaml │ └── deployment.yaml │ └── .helmignore └── 3-Jenkins-CICD ├── jenkins-prj ├── Dockerfile └── src │ └── images │ └── img.jpg └── manifest-repo └── test-login-app ├── templates ├── secret.yaml ├── service.yaml └── deployment.yaml └── .helmignore /6-mongodb-migration/namespace-metadata.yaml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/sec.txt: -------------------------------------------------------------------------------- 1 | P@ssw0rd 2 | -------------------------------------------------------------------------------- /5-github-action/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask 2 | requests 3 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mime/.npmignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/.bin/mime: -------------------------------------------------------------------------------- 1 | ../mime/cli.js -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/.bin/ejs: -------------------------------------------------------------------------------- 1 | ../ejs/bin/cli.js -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/.bin/jake: -------------------------------------------------------------------------------- 1 | ../jake/bin/cli.js -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/dotenv/config.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /1-K8S-CICD/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:latest 2 | COPY src/. /usr/share/nginx/html 3 | 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/.bin/semver: -------------------------------------------------------------------------------- 1 | ../semver/bin/semver.js -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/call-bind/.eslintignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/isarray/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/ecdsa-sig-formatter/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @omsmith 2 | -------------------------------------------------------------------------------- /2-AgroCD/code-repo/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:latest 2 | COPY source_code/. /usr/share/nginx/html 3 | 4 | -------------------------------------------------------------------------------- /3-Jenkins-CICD/jenkins-prj/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:latest 2 | COPY src/. /usr/share/nginx/html 3 | 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/debug/node.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/node'); 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/sqlstring/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/SqlString'); 2 | -------------------------------------------------------------------------------- /1-K8S-CICD/src/images/img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaraminejad/cicd_pipeline/HEAD/1-K8S-CICD/src/images/img.jpg -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/buffer-equal-constant-time/.npmignore: -------------------------------------------------------------------------------- 1 | .*.sw[mnop] 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/cookie-signature/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/debug/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/SqlString.js: -------------------------------------------------------------------------------- 1 | module.exports = require('sqlstring'); 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/util.inspect.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inspect; 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./readable').Duplex 2 | -------------------------------------------------------------------------------- /1-K8S-CICD/html-src/images/img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaraminejad/cicd_pipeline/HEAD/1-K8S-CICD/html-src/images/img.jpg -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/bcryptjs/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "vsicons.presets.angular": false 3 | } -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/concat-map/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | } 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-proto/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | } 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/hasown/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | } 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/isarray/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./readable').Transform 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/index.d.ts: -------------------------------------------------------------------------------- 1 | declare const Error: ErrorConstructor; 2 | 3 | export = Error; 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-proto/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function hasProto(): boolean; 2 | 3 | export = hasProto; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/lib/internal/streams/stream.js: -------------------------------------------------------------------------------- 1 | module.exports = require('stream'); 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./readable').PassThrough 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/duplex-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/_stream_duplex.js'); 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/unpipe/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.0 / 2015-06-14 2 | ================== 3 | 4 | * Initial release 5 | -------------------------------------------------------------------------------- /2-AgroCD/code-repo/source_code/images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaraminejad/cicd_pipeline/HEAD/2-AgroCD/code-repo/source_code/images/1.jpg -------------------------------------------------------------------------------- /2-AgroCD/code-repo/source_code/images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaraminejad/cicd_pipeline/HEAD/2-AgroCD/code-repo/source_code/images/2.jpg -------------------------------------------------------------------------------- /2-AgroCD/code-repo/source_code/images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaraminejad/cicd_pipeline/HEAD/2-AgroCD/code-repo/source_code/images/2.png -------------------------------------------------------------------------------- /2-AgroCD/code-repo/source_code/images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaraminejad/cicd_pipeline/HEAD/2-AgroCD/code-repo/source_code/images/3.jpg -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/balanced-match/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | tidelift: "npm/balanced-match" 2 | patreon: juliangruber 3 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/type.d.ts: -------------------------------------------------------------------------------- 1 | declare const TypeError: TypeErrorConstructor 2 | 3 | export = TypeError; 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/uri.d.ts: -------------------------------------------------------------------------------- 1 | declare const URIError: URIErrorConstructor; 2 | 3 | export = URIError; 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/isarray/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/.bin/tape test.js 4 | 5 | .PHONY: test 6 | 7 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/random-bytes/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.0 / 2016-01-17 2 | ================== 3 | 4 | * Initial release 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/writable-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/_stream_writable.js'); 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/preload.js: -------------------------------------------------------------------------------- 1 | // XXX remove in v8 or beyond 2 | module.exports = require('./index.js') 3 | -------------------------------------------------------------------------------- /3-Jenkins-CICD/jenkins-prj/src/images/img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaraminejad/cicd_pipeline/HEAD/3-Jenkins-CICD/jenkins-prj/src/images/img.jpg -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/buffer-equal-constant-time/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.11" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/connect-flash/.travis.yml: -------------------------------------------------------------------------------- 1 | language: "node_js" 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | - 0.8 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/eval.d.ts: -------------------------------------------------------------------------------- 1 | declare const EvalError: EvalErrorConstructor; 2 | 3 | export = EvalError; 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** @type {import('.')} */ 4 | module.exports = Error; 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/range.d.ts: -------------------------------------------------------------------------------- 1 | declare const RangeError: RangeErrorConstructor; 2 | 3 | export = RangeError; 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/eval.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** @type {import('./eval')} */ 4 | module.exports = EvalError; 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/syntax.d.ts: -------------------------------------------------------------------------------- 1 | declare const SyntaxError: SyntaxErrorConstructor; 2 | 3 | export = SyntaxError; 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/type.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** @type {import('./type')} */ 4 | module.exports = TypeError; 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/uri.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** @type {import('./uri')} */ 4 | module.exports = URIError; 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/lib/internal/streams/stream-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = require('events').EventEmitter; 2 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/range.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** @type {import('./range')} */ 4 | module.exports = RangeError; 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/ref.d.ts: -------------------------------------------------------------------------------- 1 | declare const ReferenceError: ReferenceErrorConstructor; 2 | 3 | export = ReferenceError; 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/ref.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** @type {import('./ref')} */ 4 | module.exports = ReferenceError; 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/supports-color/browser.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = { 3 | stdout: false, 4 | stderr: false 5 | }; 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/bcryptjs/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | debug.log 4 | doco/ 5 | tests/bench.js 6 | *.png 7 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/syntax.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** @type {import('./syntax')} */ 4 | module.exports = SyntaxError; 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/hasown/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@ljharb/tsconfig", 3 | "exclude": [ 4 | "coverage", 5 | ], 6 | } 7 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/connect-flash/lib/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Expose middleware. 3 | */ 4 | exports = module.exports = require('./flash'); 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/filelist/node_modules/brace-expansion/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | tidelift: "npm/brace-expansion" 2 | patreon: juliangruber 3 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/db-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | MYSQL_DATABASE: sql_login 4 | kind: ConfigMap 5 | metadata: 6 | name: db-config 7 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/mysql-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | ROOT_PASSWORD: UEBzc3cwcmQK 4 | kind: Secret 5 | metadata: 6 | name: db-secret 7 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/setprototypeof/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function setPrototypeOf(o: any, proto: object | null): any; 2 | export = setPrototypeOf; 3 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/side-channel/README.md: -------------------------------------------------------------------------------- 1 | # side-channel 2 | Store information about any JS value in a side channel. Uses WeakMap if available. 3 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/app-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | DATABASE_PASSWORD: UEBzc3cwcmQ= 4 | kind: Secret 5 | metadata: 6 | name: app-secret 7 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-define-property/index.d.ts: -------------------------------------------------------------------------------- 1 | declare const defineProperty: false | typeof Object.defineProperty; 2 | 3 | export = defineProperty; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | yarn.lock 8 | coverage 9 | bower.json 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/.env: -------------------------------------------------------------------------------- 1 | DATABASE = 'sql_login' 2 | DATABASE_HOST = '172.17.0.2' 3 | DATABASE_USER = 'root' 4 | DATABASE_PASSWORD = 'P@ssw0rd' 5 | DATABASE_PORT=3306 6 | PORT=5000 -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/hasown/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function hasOwn(o: O, p: K): o is O & Record; 2 | 3 | export = hasOwn; 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/eq.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const eq = (a, b, loose) => compare(a, b, loose) === 0 3 | module.exports = eq 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/gt.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const gt = (a, b, loose) => compare(a, b, loose) > 0 3 | module.exports = gt 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/gte.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const gte = (a, b, loose) => compare(a, b, loose) >= 0 3 | module.exports = gte 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/lt.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const lt = (a, b, loose) => compare(a, b, loose) < 0 3 | module.exports = lt 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/lte.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const lte = (a, b, loose) => compare(a, b, loose) <= 0 3 | module.exports = lte 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/utils-merge/.npmignore: -------------------------------------------------------------------------------- 1 | CONTRIBUTING.md 2 | Makefile 3 | docs/ 4 | examples/ 5 | reports/ 6 | test/ 7 | 8 | .jshintrc 9 | .travis.yml 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:latest 2 | WORKDIR /usr/src/app 3 | COPY package*.json ./ 4 | RUN npm install 5 | COPY . . 6 | EXPOSE 5000 7 | CMD [ "node" , "app.js"] 8 | 9 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jsonwebtoken/lib/psSupported.js: -------------------------------------------------------------------------------- 1 | var semver = require('semver'); 2 | 3 | module.exports = semver.satisfies(process.version, '^6.12.0 || >=8.0.0'); 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/neq.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const neq = (a, b, loose) => compare(a, b, loose) !== 0 3 | module.exports = neq 4 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/app-chart/templates/app-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | DATABASE_PASSWORD: UEBzc3cwcmQ= 4 | kind: Secret 5 | metadata: 6 | name: app-secret 7 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js: -------------------------------------------------------------------------------- 1 | const semver = require('semver'); 2 | 3 | module.exports = semver.satisfies(process.version, '>=16.9.0'); 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/rcompare.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const rcompare = (a, b, loose) => compare(b, a, loose) 3 | module.exports = rcompare 4 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/db-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | MYSQL_ROOT_PASSWORD: UEBzc3cwcmQ= 4 | kind: Secret 5 | metadata: 6 | creationTimestamp: null 7 | name: db-secret 8 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js: -------------------------------------------------------------------------------- 1 | const semver = require('semver'); 2 | 3 | module.exports = semver.satisfies(process.version, '>=15.7.0'); 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/compare-loose.js: -------------------------------------------------------------------------------- 1 | const compare = require('./compare') 2 | const compareLoose = (a, b) => compare(a, b, true) 3 | module.exports = compareLoose 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/major.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const major = (a, loose) => new SemVer(a, loose).major 3 | module.exports = major 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/minor.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const minor = (a, loose) => new SemVer(a, loose).minor 3 | module.exports = minor 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/patch.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const patch = (a, loose) => new SemVer(a, loose).patch 3 | module.exports = patch 4 | -------------------------------------------------------------------------------- /1-K8S-CICD/k8s-src/secret.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | .dockerconfigjson: kjghxzxkhgjxzhgjxhdghjxghxcGJtVnFasfafa 4 | kind: Secret 5 | metadata: 6 | name: doksec 7 | type: kubernetes.io/dockerconfigjson 8 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/function-bind/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var implementation = require('./implementation'); 4 | 5 | module.exports = Function.prototype.bind || implementation; 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | var toString = {}.toString; 2 | 3 | module.exports = Array.isArray || function (arr) { 4 | return toString.call(arr) == '[object Array]'; 5 | }; 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/bcryptjs/dist/bcrypt.min.js.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkaraminejad/cicd_pipeline/HEAD/4-two-tier-app/APP-CODE/node_project/node_modules/bcryptjs/dist/bcrypt.min.js.gz -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/classes/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | SemVer: require('./semver.js'), 3 | Range: require('./range.js'), 4 | Comparator: require('./comparator.js'), 5 | } 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/util-deprecate/node.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * For Node.js, simply re-export the core `util.deprecate` function. 4 | */ 5 | 6 | module.exports = require('util').deprecate; 7 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/PacketHeader.js: -------------------------------------------------------------------------------- 1 | module.exports = PacketHeader; 2 | function PacketHeader(length, number) { 3 | this.length = length; 4 | this.number = number; 5 | } 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/example/circular.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var obj = { a: 1, b: [3, 4] }; 5 | obj.c = obj; 6 | console.log(inspect(obj)); 7 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/example/fn.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var obj = [1, 2, function f(n) { return n + 5; }, 4]; 5 | console.log(inspect(obj)); 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/sort.js: -------------------------------------------------------------------------------- 1 | const compareBuild = require('./compare-build') 2 | const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose)) 3 | module.exports = sort 4 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/mysql-chart/templates/db-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | MYSQL_ROOT_PASSWORD: UEBzc3cwcmQ= 4 | kind: Secret 5 | metadata: 6 | creationTimestamp: null 7 | name: db-secret 8 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/rsort.js: -------------------------------------------------------------------------------- 1 | const compareBuild = require('./compare-build') 2 | const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose)) 3 | module.exports = rsort 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mime/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var mime = require('./mime.js'); 4 | var file = process.argv[2]; 5 | var type = mime.lookup(file); 6 | 7 | process.stdout.write(type + '\n'); 8 | 9 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/set-function-length/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@ljharb/tsconfig", 3 | "compilerOptions": { 4 | "target": "es2021", 5 | }, 6 | "exclude": [ 7 | "coverage", 8 | ], 9 | } 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/toidentifier/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2021-11-14 2 | ================== 3 | 4 | * pref: enable strict mode 5 | 6 | 1.0.0 / 2018-07-09 7 | ================== 8 | 9 | * Initial release 10 | -------------------------------------------------------------------------------- /5-github-action/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.10-slim 2 | 3 | WORKDIR /app 4 | 5 | COPY requirements.txt . 6 | RUN pip install --no-cache-dir -r requirements.txt 7 | 8 | COPY . . 9 | 10 | EXPOSE 5000 11 | CMD ["python", "app.py"] 12 | 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/call-bind/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "exclude": [ 6 | "coverage", 7 | "test" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/function-bind/.github/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security 2 | 3 | Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report. 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-symbols/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "exclude": [ 6 | "coverage", 7 | "test" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/compare.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const compare = (a, b, loose) => 3 | new SemVer(a, loose).compare(new SemVer(b, loose)) 4 | 5 | module.exports = compare 6 | -------------------------------------------------------------------------------- /1-K8S-CICD/test-login-app/templates/secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | .dockerconfigjson: jdfhgjsdgfhdsgjsdg;lhsdagiajs= 4 | kind: Secret 5 | metadata: 6 | creationTimestamp: null 7 | name: helm-secret 8 | type: kubernetes.io/dockerconfigjson 9 | -------------------------------------------------------------------------------- /2-AgroCD/manifest-repo/test-login-app/templates/secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | .dockerconfigjson: ;klklklklk'k'= 4 | kind: Secret 5 | metadata: 6 | creationTimestamp: null 7 | name: helm-secret 8 | type: kubernetes.io/dockerconfigjson 9 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/get-intrinsic/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "exclude": [ 6 | "coverage", 7 | "test" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/phpmyadmin-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | PMA_HOST: "mysql-svc.default.svc.cluster.local" 4 | PMA_PORT: "3306" 5 | kind: ConfigMap 6 | metadata: 7 | creationTimestamp: null 8 | name: phpadmin-config 9 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-define-property/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "exclude": [ 6 | "coverage", 7 | "test" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/filelist/node_modules/minimatch/lib/path.js: -------------------------------------------------------------------------------- 1 | const isWindows = typeof process === 'object' && 2 | process && 3 | process.platform === 'win32' 4 | module.exports = isWindows ? { sep: '\\' } : { sep: '/' } 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/valid.js: -------------------------------------------------------------------------------- 1 | const parse = require('./parse') 2 | const valid = (version, options) => { 3 | const v = parse(version, options) 4 | return v ? v.version : null 5 | } 6 | module.exports = valid 7 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-property-descriptors/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "exclude": [ 6 | "coverage", 7 | "test" 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/side-channel/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = tab 8 | indent_size = 2 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/concat-map/example/map.js: -------------------------------------------------------------------------------- 1 | var concatMap = require('../'); 2 | var xs = [ 1, 2, 3, 4, 5, 6 ]; 3 | var ys = concatMap(xs, function (x) { 4 | return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; 5 | }); 6 | console.dir(ys); 7 | -------------------------------------------------------------------------------- /3-Jenkins-CICD/manifest-repo/test-login-app/templates/secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | .dockerconfigjson: jdfhgjsdgfhdsgjsdg;lhsdagiajs= 4 | kind: Secret 5 | metadata: 6 | creationTimestamp: null 7 | name: helm-secret 8 | type: kubernetes.io/dockerconfigjson 9 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/debug/.travis.yml: -------------------------------------------------------------------------------- 1 | 2 | language: node_js 3 | node_js: 4 | - "6" 5 | - "5" 6 | - "4" 7 | 8 | install: 9 | - make node_modules 10 | 11 | script: 12 | - make lint 13 | - make test 14 | - make coveralls 15 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/init.sql: -------------------------------------------------------------------------------- 1 | CREATE DATABASE IF NOT EXISTS sql_login; 2 | USE sql_login; 3 | CREATE TABLE users (id INT NOT NULL AUTO_INCREMENT, firstname VARCHAR(256), lastname VARCHAR(256),email VARCHAR(256),password VARCHAR(256),PRIMARY KEY (id)); 4 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/dotenv/config.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | require('./lib/main').config( 3 | Object.assign( 4 | {}, 5 | require('./lib/env-options'), 6 | require('./lib/cli-options')(process.argv) 7 | ) 8 | ) 9 | })() 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-define-property/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "new-cap": ["error", { 8 | "capIsNewExceptions": [ 9 | "GetIntrinsic", 10 | ], 11 | }], 12 | }, 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-symbols/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "max-statements-per-line": [2, { "max": 2 }], 8 | "no-magic-numbers": 0, 9 | "multiline-comment-style": 0, 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/clean.js: -------------------------------------------------------------------------------- 1 | const parse = require('./parse') 2 | const clean = (version, options) => { 3 | const s = parse(version.trim().replace(/^[=v]+/, ''), options) 4 | return s ? s.version : null 5 | } 6 | module.exports = clean 7 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/app-chart/templates/app-secret-registry.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | .dockerconfigjson: XXXXXXXXXXXXXXXX 4 | kind: Secret 5 | metadata: 6 | creationTimestamp: null 7 | name: registery-credenial 8 | type: kubernetes.io/dockerconfigjson 9 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/phpmyadmin-chart/templates/phpmyadmin-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | PMA_HOST: "mysql-svc.default.svc.cluster.local" 4 | PMA_PORT: "3306" 5 | kind: ConfigMap 6 | metadata: 7 | creationTimestamp: null 8 | name: phpadmin-config 9 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/db-pvc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolumeClaim 3 | metadata: 4 | name: mysql-pv-claim 5 | spec: 6 | storageClassName: manual 7 | accessModes: 8 | - ReadWriteOnce 9 | resources: 10 | requests: 11 | storage: 2Gi 12 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/debug/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true 5 | }, 6 | "rules": { 7 | "no-console": 0, 8 | "no-empty": [1, { "allowEmptyCatch": true }] 9 | }, 10 | "extends": "eslint:recommended" 11 | } 12 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/function-bind/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "array-bracket-newline": 0, 4 | "array-element-newline": 0, 5 | "max-statements-per-line": [2, { "max": 2 }], 6 | "no-invalid-this": 0, 7 | "no-magic-numbers": 0, 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/hasown/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var call = Function.prototype.call; 4 | var $hasOwn = Object.prototype.hasOwnProperty; 5 | var bind = require('function-bind'); 6 | 7 | /** @type {import('.')} */ 8 | module.exports = bind.call(call, $hasOwn); 9 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/EmptyPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = EmptyPacket; 2 | function EmptyPacket() { 3 | } 4 | 5 | EmptyPacket.prototype.parse = function parse() { 6 | }; 7 | 8 | EmptyPacket.prototype.write = function write() { 9 | }; 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/ranges/gtr.js: -------------------------------------------------------------------------------- 1 | // Determine if version is greater than all the versions possible in the range. 2 | const outside = require('./outside') 3 | const gtr = (version, range, options) => outside(version, range, '>', options) 4 | module.exports = gtr 5 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/ranges/ltr.js: -------------------------------------------------------------------------------- 1 | const outside = require('./outside') 2 | // Determine if version is less than all the versions possible in the range 3 | const ltr = (version, range, options) => outside(version, range, '<', options) 4 | module.exports = ltr 5 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/db-pvc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolumeClaim 3 | metadata: 4 | name: mysql-pv-claim 5 | spec: 6 | storageClassName: manual 7 | accessModes: 8 | - ReadWriteOnce 9 | resources: 10 | requests: 11 | storage: 2Gi 12 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/app-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | DATABASE: sql_login 4 | DATABASE_HOST: mysql-svc.default.svc.cluster.local 5 | DATABASE_USER: root 6 | DATABASE_PORT: "3306" 7 | PORT: "5000" 8 | kind: ConfigMap 9 | metadata: 10 | name: app-config 11 | -------------------------------------------------------------------------------- /6-mongodb-migration/svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | creationTimestamp: null 5 | labels: 6 | app: mangodb-svc 7 | name: mangodb-svc 8 | spec: 9 | ports: 10 | - port: 27017 11 | clusterIP: None # Headless 12 | selector: 13 | app: mangodb-demo 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/side-channel/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "max-lines-per-function": 0, 8 | "multiline-comment-style": 1, 9 | "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }], 10 | }, 11 | } 12 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mime-db/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * mime-db 3 | * Copyright(c) 2014 Jonathan Ong 4 | * Copyright(c) 2015-2022 Douglas Christopher Wilson 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module exports. 10 | */ 11 | 12 | module.exports = require('./db.json') 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/ranges/intersects.js: -------------------------------------------------------------------------------- 1 | const Range = require('../classes/range') 2 | const intersects = (r1, r2, options) => { 3 | r1 = new Range(r1, options) 4 | r2 = new Range(r2, options) 5 | return r1.intersects(r2, options) 6 | } 7 | module.exports = intersects 8 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/registry_cred.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | .dockerconfigjson: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 4 | kind: Secret 5 | metadata: 6 | creationTimestamp: null 7 | name: registery-credenial 8 | type: kubernetes.io/dockerconfigjson 9 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-property-descriptors/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "func-name-matching": 0, 8 | "id-length": 0, 9 | "new-cap": [2, { 10 | "capIsNewExceptions": ["GetIntrinsic"], 11 | }], 12 | }, 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/prerelease.js: -------------------------------------------------------------------------------- 1 | const parse = require('./parse') 2 | const prerelease = (version, options) => { 3 | const parsed = parse(version, options) 4 | return (parsed && parsed.prerelease.length) ? parsed.prerelease : null 5 | } 6 | module.exports = prerelease 7 | -------------------------------------------------------------------------------- /1-K8S-CICD/k8s-src/sample.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | labels: 5 | run: webapp 6 | name: webapp 7 | spec: 8 | containers: 9 | - image: registry.gitlab.com/d6245/k8s-cluster/sample:v1 10 | name: webapp 11 | restartPolicy: Always 12 | imagePullSecrets: 13 | - name: docsec 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/apply.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | 7 | exports.default = function (fn, ...args) { 8 | return (...callArgs) => fn(...args, ...callArgs); 9 | }; 10 | 11 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var stringify = require('./stringify'); 4 | var parse = require('./parse'); 5 | var formats = require('./formats'); 6 | 7 | module.exports = { 8 | formats: formats, 9 | parse: parse, 10 | stringify: stringify 11 | }; 12 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/set-function-length/env.d.ts: -------------------------------------------------------------------------------- 1 | declare const env: { 2 | __proto__: null, 3 | boundFnsHaveConfigurableLengths: boolean; 4 | boundFnsHaveWritableLengths: boolean; 5 | functionsHaveConfigurableLengths: boolean; 6 | functionsHaveWritableLengths: boolean; 7 | }; 8 | 9 | export = env; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jake/test/integration/jakelib/required_module.jake.js: -------------------------------------------------------------------------------- 1 | let { task, namespace } = require(`${process.env.PROJECT_DIR}/lib/jake`); 2 | 3 | namespace('usingRequire', function () { 4 | task('test', () => { 5 | console.log('howdy test'); 6 | }); 7 | }); 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | var Stream = require("stream") 2 | var Writable = require("./lib/_stream_writable.js") 3 | 4 | if (process.env.READABLE_STREAM === 'disable') { 5 | module.exports = Stream && Stream.Writable || Writable 6 | } else { 7 | module.exports = Writable 8 | } 9 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/app-chart/templates/app-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | DATABASE: sql_login 4 | DATABASE_HOST: mysql-svc.default.svc.cluster.local 5 | DATABASE_USER: root 6 | DATABASE_PORT: "3306" 7 | PORT: "5000" 8 | kind: ConfigMap 9 | metadata: 10 | name: app-config 11 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/ResultSet.js: -------------------------------------------------------------------------------- 1 | module.exports = ResultSet; 2 | function ResultSet(resultSetHeaderPacket) { 3 | this.resultSetHeaderPacket = resultSetHeaderPacket; 4 | this.fieldPackets = []; 5 | this.eofPackets = []; 6 | this.rows = []; 7 | } 8 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/qs/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "dist" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/routes/auth.js: -------------------------------------------------------------------------------- 1 | const express=require("express"); 2 | const router=express.Router(); 3 | const authController=require('../controllers/auth'); 4 | 5 | 6 | router.post('/login',authController.login); 7 | router.post('/register',authController.register); 8 | 9 | 10 | module.exports = router; 11 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/getIterator.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | 7 | exports.default = function (coll) { 8 | return coll[Symbol.iterator] && coll[Symbol.iterator](); 9 | }; 10 | 11 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/express/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * express 3 | * Copyright(c) 2009-2013 TJ Holowaychuk 4 | * Copyright(c) 2013 Roman Shtylman 5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson 6 | * MIT Licensed 7 | */ 8 | 9 | 'use strict'; 10 | 11 | module.exports = require('./lib/express'); 12 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/hasown/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "test" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/internal/debug.js: -------------------------------------------------------------------------------- 1 | const debug = ( 2 | typeof process === 'object' && 3 | process.env && 4 | process.env.NODE_DEBUG && 5 | /\bsemver\b/i.test(process.env.NODE_DEBUG) 6 | ) ? (...args) => console.error('SEMVER', ...args) 7 | : () => {} 8 | 9 | module.exports = debug 10 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/db-pv.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolume 3 | metadata: 4 | name: mysql-pv-volume 5 | labels: 6 | type: local 7 | spec: 8 | storageClassName: manual 9 | capacity: 10 | storage: 2Gi 11 | accessModes: 12 | - ReadWriteOnce 13 | hostPath: 14 | path: "/mnt/data" 15 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/function-bind/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "test" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/side-channel/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "test" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/app-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: app-svc 6 | name: app-svc 7 | spec: 8 | ports: 9 | - name: app-svc 10 | port: 5000 11 | protocol: TCP 12 | targetPort: 5000 13 | selector: 14 | app: node-app 15 | type: ClusterIP 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/body-parser/node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var stringify = require('./stringify'); 4 | var parse = require('./parse'); 5 | var formats = require('./formats'); 6 | 7 | module.exports = { 8 | formats: formats, 9 | parse: parse, 10 | stringify: stringify 11 | }; 12 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/call-bind/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "func-name-matching": 0, 8 | "id-length": 0, 9 | "new-cap": [2, { 10 | "capIsNewExceptions": [ 11 | "GetIntrinsic", 12 | ], 13 | }], 14 | "no-magic-numbers": 0, 15 | }, 16 | } 17 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jake/lib/task/index.js: -------------------------------------------------------------------------------- 1 | 2 | let Task = require('./task').Task; 3 | let FileTask = require('./file_task').FileTask; 4 | let DirectoryTask = require('./directory_task').DirectoryTask; 5 | 6 | exports.Task = Task; 7 | exports.FileTask = FileTask; 8 | exports.DirectoryTask = DirectoryTask; 9 | 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/set-function-length/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "test" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/db-pv.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolume 3 | metadata: 4 | name: mysql-pv-volume 5 | labels: 6 | type: local 7 | spec: 8 | storageClassName: manual 9 | capacity: 10 | storage: 5Gi 11 | accessModes: 12 | - ReadWriteOnce 13 | hostPath: 14 | path: "/mnt/data" 15 | -------------------------------------------------------------------------------- /6-mongodb-migration/pv.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolume 3 | metadata: 4 | name: mangodb-pv 5 | labels: 6 | type: local 7 | spec: 8 | storageClassName: manual 9 | capacity: 10 | storage: 2Gi 11 | accessModes: 12 | - ReadWriteOnce 13 | hostPath: 14 | path: "/mnt/c/Malek/youtube/mangodb-migration/data1" 15 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/define-data-property/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "test" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/satisfies.js: -------------------------------------------------------------------------------- 1 | const Range = require('../classes/range') 2 | const satisfies = (version, range, options) => { 3 | try { 4 | range = new Range(range, options) 5 | } catch (er) { 6 | return false 7 | } 8 | return range.test(version) 9 | } 10 | module.exports = satisfies 11 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/set-function-length/index.d.ts: -------------------------------------------------------------------------------- 1 | declare namespace setFunctionLength { 2 | type Func = (...args: unknown[]) => unknown; 3 | } 4 | 5 | declare function setFunctionLength(fn: T, length: number, loose?: boolean): T; 6 | 7 | export = setFunctionLength; -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/mysql-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: mysql-svc 6 | name: mysql-svc 7 | spec: 8 | ports: 9 | - name: mysql-svc 10 | port: 3306 11 | protocol: TCP 12 | targetPort: 3306 13 | selector: 14 | app: mysql-sts 15 | type: ClusterIP 16 | -------------------------------------------------------------------------------- /6-mongodb-migration/pv-minio.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolume 3 | metadata: 4 | name: minio-pv 5 | labels: 6 | type: local 7 | spec: 8 | storageClassName: minio 9 | capacity: 10 | storage: 5Gi 11 | accessModes: 12 | - ReadWriteOnce 13 | hostPath: 14 | path: "/mnt/c/Malek/youtube/mangodb-migration/data" 15 | -------------------------------------------------------------------------------- /6-mongodb-migration/pv0.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolume 3 | metadata: 4 | name: mangodb-pv0 5 | labels: 6 | type: local 7 | spec: 8 | storageClassName: manual 9 | capacity: 10 | storage: 2Gi 11 | accessModes: 12 | - ReadWriteOnce 13 | hostPath: 14 | path: "/mnt/c/Malek/youtube/mangodb-migration/data0" 15 | -------------------------------------------------------------------------------- /6-mongodb-migration/pv1.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolume 3 | metadata: 4 | name: mangodb-pv1 5 | labels: 6 | type: local 7 | spec: 8 | storageClassName: manual 9 | capacity: 10 | storage: 2Gi 11 | accessModes: 12 | - ReadWriteOnce 13 | hostPath: 14 | path: "/mnt/c/Malek/youtube/mangodb-migration/data1" 15 | -------------------------------------------------------------------------------- /6-mongodb-migration/pv2.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolume 3 | metadata: 4 | name: mangodb-pv2 5 | labels: 6 | type: local 7 | spec: 8 | storageClassName: manual 9 | capacity: 10 | storage: 2Gi 11 | accessModes: 12 | - ReadWriteOnce 13 | hostPath: 14 | path: "/mnt/c/Malek/youtube/mangodb-migration/data2" 15 | -------------------------------------------------------------------------------- /6-mongodb-migration/pvc-minio.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolumeClaim 3 | metadata: 4 | name: minio-pvc 5 | spec: 6 | storageClassName: minio 7 | accessModes: 8 | - ReadWriteOnce 9 | resources: 10 | requests: 11 | storage: 4Gi # Adjust storage size as needed 12 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/body-parser/node_modules/qs/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "reporter": ["text-summary", "text", "html", "json"], 5 | "lines": 86, 6 | "statements": 85.93, 7 | "functions": 82.43, 8 | "branches": 76.06, 9 | "exclude": [ 10 | "coverage", 11 | "dist" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | try { 2 | var util = require('util'); 3 | /* istanbul ignore next */ 4 | if (typeof util.inherits !== 'function') throw ''; 5 | module.exports = util.inherits; 6 | } catch (e) { 7 | /* istanbul ignore next */ 8 | module.exports = require('./inherits_browser.js'); 9 | } 10 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/app-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: app-svc 6 | name: app-svc 7 | spec: 8 | ports: 9 | - name: app-svc 10 | port: 5000 11 | protocol: TCP 12 | targetPort: 5000 13 | nodePort: 31000 14 | selector: 15 | app: node-app 16 | type: NodePort 17 | -------------------------------------------------------------------------------- /5-github-action/app-k8s/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: app-svc 6 | name: app-svc 7 | spec: 8 | ports: 9 | - name: app-svc 10 | port: 5000 11 | protocol: TCP 12 | targetPort: 5000 13 | selector: 14 | app: app-weather 15 | type: NodePort 16 | status: 17 | loadBalancer: {} 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/gopd/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "func-style": [2, "declaration"], 8 | "id-length": 0, 9 | "multiline-comment-style": 0, 10 | "new-cap": [2, { 11 | "capIsNewExceptions": [ 12 | "GetIntrinsic", 13 | ], 14 | }], 15 | }, 16 | } 17 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/.nycrc: -------------------------------------------------------------------------------- 1 | { 2 | "all": true, 3 | "check-coverage": false, 4 | "instrumentation": false, 5 | "sourceMap": false, 6 | "reporter": ["text-summary", "text", "html", "json"], 7 | "exclude": [ 8 | "coverage", 9 | "example", 10 | "test", 11 | "test-core-js.js" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/app-chart/templates/app-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: app-svc 6 | name: app-svc 7 | spec: 8 | ports: 9 | - name: app-svc 10 | port: 5000 11 | protocol: TCP 12 | targetPort: 5000 13 | selector: 14 | app: node-app 15 | type: ClusterIP 16 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/mysql-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: mysql-svc 6 | name: mysql-svc 7 | spec: 8 | ports: 9 | - name: mysql-svc 10 | port: 3306 11 | protocol: TCP 12 | targetPort: 3306 13 | clusterIP: None 14 | selector: 15 | app: mysql-sts 16 | -------------------------------------------------------------------------------- /1-K8S-CICD/k8s-src/svc.yml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: webapp-svc 6 | name: webapp-svc 7 | spec: 8 | ports: 9 | - name: webapp-svc 10 | port: 80 11 | protocol: TCP 12 | targetPort: 80 13 | nodePort: 31000 14 | selector: 15 | run: webapp 16 | type: NodePort 17 | status: 18 | loadBalancer: {} -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/breakLoop.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | // A temporary value used to identify if the loop should be broken. 7 | // See #1064, #1293 8 | const breakLoop = {}; 9 | exports.default = breakLoop; 10 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/withoutIndex.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = _withoutIndex; 7 | function _withoutIndex(iteratee) { 8 | return (value, index, callback) => iteratee(value, callback); 9 | } 10 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/compare-build.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const compareBuild = (a, b, loose) => { 3 | const versionA = new SemVer(a, loose) 4 | const versionB = new SemVer(b, loose) 5 | return versionA.compare(versionB) || versionA.compareBuild(versionB) 6 | } 7 | module.exports = compareBuild 8 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/debug/src/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Detect Electron renderer process, which is node, but we should 3 | * treat as a browser. 4 | */ 5 | 6 | if (typeof process !== 'undefined' && process.type === 'renderer') { 7 | module.exports = require('./browser.js'); 8 | } else { 9 | module.exports = require('./node.js'); 10 | } 11 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/encodeurl/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.2 / 2018-01-21 2 | ================== 3 | 4 | * Fix encoding `%` as last character 5 | 6 | 1.0.1 / 2016-06-09 7 | ================== 8 | 9 | * Fix encoding unpaired surrogates at start/end of string 10 | 11 | 1.0.0 / 2016-06-08 12 | ================== 13 | 14 | * Initial release 15 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jsonwebtoken/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | decode: require('./decode'), 3 | verify: require('./verify'), 4 | sign: require('./sign'), 5 | JsonWebTokenError: require('./lib/JsonWebTokenError'), 6 | NotBeforeError: require('./lib/NotBeforeError'), 7 | TokenExpiredError: require('./lib/TokenExpiredError'), 8 | }; 9 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jws/lib/tostring.js: -------------------------------------------------------------------------------- 1 | /*global module*/ 2 | var Buffer = require('buffer').Buffer; 3 | 4 | module.exports = function toString(obj) { 5 | if (typeof obj === 'string') 6 | return obj; 7 | if (typeof obj === 'number' || Buffer.isBuffer(obj)) 8 | return obj.toString(); 9 | return JSON.stringify(obj); 10 | }; 11 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/ranges/to-comparators.js: -------------------------------------------------------------------------------- 1 | const Range = require('../classes/range') 2 | 3 | // Mostly just for testing and legacy API reasons 4 | const toComparators = (range, options) => 5 | new Range(range, options).set 6 | .map(comp => comp.map(c => c.value).join(' ').trim().split(' ')) 7 | 8 | module.exports = toComparators 9 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/phpmyadmin-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: phpmyadmin-svc 6 | name: phpmyadmin-svc 7 | spec: 8 | ports: 9 | - name: phpmyadmin-svc 10 | port: 8099 11 | protocol: TCP 12 | targetPort: 80 13 | selector: 14 | run: phpadmin-pod 15 | type: ClusterIP 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/bcryptjs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 0.12 6 | - 4 7 | - 6 8 | 9 | before_script: npm -g install testjs 10 | 11 | env: 12 | - CXX=g++-4.8 13 | addons: 14 | apt: 15 | sources: 16 | - ubuntu-toolchain-r-test 17 | packages: 18 | - g++-4.8 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/filelist/jakefile.js: -------------------------------------------------------------------------------- 1 | testTask('FileList', function () { 2 | this.testFiles.include('test/*.js'); 3 | }); 4 | 5 | publishTask('FileList', function () { 6 | this.packageFiles.include([ 7 | 'jakefile.js', 8 | 'README.md', 9 | 'package.json', 10 | 'index.js', 11 | 'index.d.ts' 12 | ]); 13 | }); 14 | 15 | 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/example/inspect.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /* eslint-env browser */ 4 | var inspect = require('../'); 5 | 6 | var d = document.createElement('div'); 7 | d.setAttribute('id', 'beep'); 8 | d.innerHTML = 'woooiiiii'; 9 | 10 | console.log(inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }])); 11 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "async", 3 | "main": "dist/async.js", 4 | "ignore": [ 5 | "bower_components", 6 | "lib", 7 | "test", 8 | "node_modules", 9 | "perf", 10 | "support", 11 | "**/.*", 12 | "*.config.js", 13 | "*.json", 14 | "index.js", 15 | "Makefile" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/mysql-chart/templates/mysql-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: mysql-svc 6 | name: mysql-svc 7 | spec: 8 | ports: 9 | - name: mysql-svc 10 | port: 3306 11 | protocol: TCP 12 | targetPort: 3306 13 | clusterIP: None 14 | selector: 15 | app: mysql-sts 16 | -------------------------------------------------------------------------------- /6-mongodb-migration/mongo-backup-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Secret 3 | metadata: 4 | name: mongo-backup-secret 5 | type: Opaque 6 | stringData: 7 | MONGO_URI: mongodb://mangodb-svc:27017 8 | MINIO_ENDPOINT: http://minio-service.default.svc.cluster.local:9000 9 | MINIO_BUCKET: demo 10 | MINIO_ACCESS_KEY: minioadmin 11 | MINIO_SECRET_KEY: minioadmin 12 | 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/sequences/index.js: -------------------------------------------------------------------------------- 1 | exports.ChangeUser = require('./ChangeUser'); 2 | exports.Handshake = require('./Handshake'); 3 | exports.Ping = require('./Ping'); 4 | exports.Query = require('./Query'); 5 | exports.Quit = require('./Quit'); 6 | exports.Sequence = require('./Sequence'); 7 | exports.Statistics = require('./Statistics'); 8 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/phpmyadmin-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: phpmyadmin-svc 6 | name: phpmyadmin-svc 7 | spec: 8 | ports: 9 | - name: phpmyadmin-svc 10 | port: 8099 11 | protocol: TCP 12 | targetPort: 80 13 | nodePort: 30248 14 | selector: 15 | run: phpadmin-pod 16 | type: NodePort 17 | -------------------------------------------------------------------------------- /1-K8S-CICD/chart-name.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | f = open('test-login-app/Chart.yaml','r') 4 | lines = f.readlines() 5 | for row in lines: 6 | if row.startswith("name"): 7 | chart=row 8 | if row.startswith("version"): 9 | version=row 10 | 11 | 12 | chart_name=chart.split(" ") 13 | ver=version.split(" ") 14 | print(chart_name[1].strip()) 15 | f.close() 16 | 17 | 18 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/phpmyadmin-pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | labels: 5 | run: phpadmin-pod 6 | name: phpadmin-pod 7 | spec: 8 | containers: 9 | - image: phpmyadmin 10 | name: phpadmin-pod 11 | envFrom: 12 | - configMapRef: 13 | name: phpadmin-config 14 | dnsPolicy: ClusterFirst 15 | restartPolicy: Always 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/isArrayLike.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = isArrayLike; 7 | function isArrayLike(value) { 8 | return value && typeof value.length === 'number' && value.length >= 0 && value.length % 1 === 0; 9 | } 10 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/gopd/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var GetIntrinsic = require('get-intrinsic'); 4 | 5 | var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); 6 | 7 | if ($gOPD) { 8 | try { 9 | $gOPD([], 'length'); 10 | } catch (e) { 11 | // IE 8 has a broken gOPD 12 | $gOPD = null; 13 | } 14 | } 15 | 16 | module.exports = $gOPD; 17 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/phpmyadmin-chart/templates/phpmyadmin-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: phpmyadmin-svc 6 | name: phpmyadmin-svc 7 | spec: 8 | ports: 9 | - name: phpmyadmin-svc 10 | port: 8099 11 | protocol: TCP 12 | targetPort: 80 13 | selector: 14 | run: phpadmin-pod 15 | type: ClusterIP 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/range.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = range; 7 | function range(size) { 8 | var result = Array(size); 9 | while (size--) { 10 | result[size] = size; 11 | } 12 | return result; 13 | } 14 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test/holes.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var inspect = require('../'); 3 | 4 | var xs = ['a', 'b']; 5 | xs[5] = 'f'; 6 | xs[7] = 'j'; 7 | xs[8] = 'k'; 8 | 9 | test('holes', function (t) { 10 | t.plan(1); 11 | t.equal( 12 | inspect(xs), 13 | "[ 'a', 'b', , , , 'f', , 'j', 'k' ]" 14 | ); 15 | }); 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test/lowbyte.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var inspect = require('../'); 3 | 4 | var obj = { x: 'a\r\nb', y: '\x05! \x1f \x12' }; 5 | 6 | test('interpolate low bytes', function (t) { 7 | t.plan(1); 8 | t.equal( 9 | inspect(obj), 10 | "{ x: 'a\\r\\nb', y: '\\x05! \\x1F \\x12' }" 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/dotenv/lib/cli-options.js: -------------------------------------------------------------------------------- 1 | const re = /^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/ 2 | 3 | module.exports = function optionMatcher (args) { 4 | return args.reduce(function (acc, cur) { 5 | const matches = cur.match(re) 6 | if (matches) { 7 | acc[matches[1]] = matches[2] 8 | } 9 | return acc 10 | }, {}) 11 | } 12 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/db-initdb-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | init.sql: | 4 | CREATE DATABASE IF NOT EXISTS sql_login; 5 | USE sql_login; 6 | CREATE TABLE users (id INT NOT NULL AUTO_INCREMENT, firstname VARCHAR(256), lastname VARCHAR(256),email VARCHAR(256),password VARCHAR(256),PRIMARY KEY (id)); 7 | kind: ConfigMap 8 | metadata: 9 | name: mysql-initdb-config 10 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/function-bind/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "func-name-matching": 0, 8 | "indent": [2, 4], 9 | "no-new-func": [1], 10 | }, 11 | 12 | "overrides": [ 13 | { 14 | "files": "test/**", 15 | "rules": { 16 | "max-lines-per-function": 0, 17 | "strict": [0] 18 | }, 19 | }, 20 | ], 21 | } 22 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-flag/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = (flag, argv = process.argv) => { 4 | const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); 5 | const position = argv.indexOf(prefix + flag); 6 | const terminatorPosition = argv.indexOf('--'); 7 | return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); 8 | }; 9 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/phpmyadmin-chart/templates/phpmyadmin-pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | labels: 5 | run: phpadmin-pod 6 | name: phpadmin-pod 7 | spec: 8 | containers: 9 | - image: phpmyadmin 10 | name: phpadmin-pod 11 | envFrom: 12 | - configMapRef: 13 | name: phpadmin-config 14 | dnsPolicy: ClusterFirst 15 | restartPolicy: Always 16 | -------------------------------------------------------------------------------- /6-mongodb-migration/svc-minio.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: minio-service 5 | spec: 6 | selector: 7 | app: minio 8 | ports: 9 | - name: console 10 | protocol: TCP 11 | port: 9000 12 | targetPort: 9000 13 | nodePort: 30000 14 | type: NodePort # Or NodePort/LoadBalancer for external access 15 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/constant.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | 7 | exports.default = function (...args) { 8 | return function (...ignoredArgs /*, callback*/) { 9 | var callback = ignoredArgs.pop(); 10 | return callback(null, ...args); 11 | }; 12 | }; 13 | 14 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/initialParams.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | 7 | exports.default = function (fn) { 8 | return function (...args /*, callback*/) { 9 | var callback = args.pop(); 10 | return fn.call(this, args, callback); 11 | }; 12 | }; 13 | 14 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/util-deprecate/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.2 / 2015-10-07 3 | ================== 4 | 5 | * use try/catch when checking `localStorage` (#3, @kumavis) 6 | 7 | 1.0.1 / 2014-11-25 8 | ================== 9 | 10 | * browser: use `console.warn()` for deprecation calls 11 | * browser: more jsdocs 12 | 13 | 1.0.0 / 2014-04-30 14 | ================== 15 | 16 | * initial commit 17 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/ComPingPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = ComPingPacket; 2 | function ComPingPacket() { 3 | this.command = 0x0e; 4 | } 5 | 6 | ComPingPacket.prototype.write = function(writer) { 7 | writer.writeUnsignedNumber(1, this.command); 8 | }; 9 | 10 | ComPingPacket.prototype.parse = function(parser) { 11 | this.command = parser.parseUnsignedNumber(1); 12 | }; 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test/undef.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var inspect = require('../'); 3 | 4 | var obj = { a: 1, b: [3, 4, undefined, null], c: undefined, d: null }; 5 | 6 | test('undef and null', function (t) { 7 | t.plan(1); 8 | t.equal( 9 | inspect(obj), 10 | '{ a: 1, b: [ 3, 4, undefined, null ], c: undefined, d: null }' 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/ranges/valid.js: -------------------------------------------------------------------------------- 1 | const Range = require('../classes/range') 2 | const validRange = (range, options) => { 3 | try { 4 | // Return '*' instead of '' so that truthiness works. 5 | // This will throw if it's invalid anyway 6 | return new Range(range, options).range || '*' 7 | } catch (er) { 8 | return null 9 | } 10 | } 11 | module.exports = validRange 12 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-proto/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = { 4 | __proto__: null, 5 | foo: {} 6 | }; 7 | 8 | var $Object = Object; 9 | 10 | /** @type {import('.')} */ 11 | module.exports = function hasProto() { 12 | // @ts-expect-error: TS errors on an inherited property for some reason 13 | return { __proto__: test }.foo === test.foo 14 | && !(test instanceof $Object); 15 | }; 16 | -------------------------------------------------------------------------------- /1-K8S-CICD/test-login-app/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: webapp-svc 6 | name: {{ .Release.Name }}-webapp-svc 7 | spec: 8 | ports: 9 | - name: webapp-svc 10 | port: 80 11 | protocol: TCP 12 | targetPort: 80 13 | # nodePort: 31000 14 | selector: 15 | app: logindep 16 | type: {{ .Values.service.type }} 17 | status: 18 | loadBalancer: {} 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/define-data-property/index.d.ts: -------------------------------------------------------------------------------- 1 | 2 | declare function defineDataProperty( 3 | obj: Record, 4 | property: keyof typeof obj, 5 | value: typeof obj[typeof property], 6 | nonEnumerable?: boolean | null, 7 | nonWritable?: boolean | null, 8 | nonConfigurable?: boolean | null, 9 | loose?: boolean 10 | ): void; 11 | 12 | export = defineDataProperty; -------------------------------------------------------------------------------- /1-K8S-CICD/package-name.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | f = open('test-login-app/Chart.yaml','r') 4 | lines = f.readlines() 5 | for row in lines: 6 | if row.startswith("name"): 7 | chart=row 8 | if row.startswith("version"): 9 | version=row 10 | 11 | 12 | chart_name=chart.split(" ") 13 | ver=version.split(" ") 14 | package=chart_name[1].strip()+'-'+ver[1].strip()+'.tgz' 15 | print(package) 16 | f.close() 17 | 18 | 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/ComQuitPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = ComQuitPacket; 2 | function ComQuitPacket() { 3 | this.command = 0x01; 4 | } 5 | 6 | ComQuitPacket.prototype.parse = function parse(parser) { 7 | this.command = parser.parseUnsignedNumber(1); 8 | }; 9 | 10 | ComQuitPacket.prototype.write = function write(writer) { 11 | writer.writeUnsignedNumber(1, this.command); 12 | }; 13 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/mysql-chart/templates/db-initdb-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | init.sql: | 4 | CREATE DATABASE IF NOT EXISTS sql_login; 5 | USE sql_login; 6 | CREATE TABLE users (id INT NOT NULL AUTO_INCREMENT, firstname VARCHAR(256), lastname VARCHAR(256),email VARCHAR(256),password VARCHAR(256),PRIMARY KEY (id)); 7 | kind: ConfigMap 8 | metadata: 9 | name: mysql-initdb-config 10 | -------------------------------------------------------------------------------- /2-AgroCD/manifest-repo/test-login-app/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: webapp-svc 6 | name: {{ .Release.Name }}-webapp-svc 7 | spec: 8 | ports: 9 | - name: webapp-svc 10 | port: 80 11 | protocol: TCP 12 | targetPort: 80 13 | # nodePort: 31000 14 | selector: 15 | app: logindep 16 | type: {{ .Values.service.type }} 17 | status: 18 | loadBalancer: {} 19 | -------------------------------------------------------------------------------- /3-Jenkins-CICD/manifest-repo/test-login-app/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: webapp-svc 6 | name: {{ .Release.Name }}-webapp-svc 7 | spec: 8 | ports: 9 | - name: webapp-svc 10 | port: 80 11 | protocol: TCP 12 | targetPort: 80 13 | # nodePort: 31000 14 | selector: 15 | app: logindep 16 | type: {{ .Values.service.type }} 17 | status: 18 | loadBalancer: {} 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/readable-browser.js: -------------------------------------------------------------------------------- 1 | exports = module.exports = require('./lib/_stream_readable.js'); 2 | exports.Stream = exports; 3 | exports.Readable = exports; 4 | exports.Writable = require('./lib/_stream_writable.js'); 5 | exports.Duplex = require('./lib/_stream_duplex.js'); 6 | exports.Transform = require('./lib/_stream_transform.js'); 7 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 8 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = ComStatisticsPacket; 2 | function ComStatisticsPacket() { 3 | this.command = 0x09; 4 | } 5 | 6 | ComStatisticsPacket.prototype.write = function(writer) { 7 | writer.writeUnsignedNumber(1, this.command); 8 | }; 9 | 10 | ComStatisticsPacket.prototype.parse = function(parser) { 11 | this.command = parser.parseUnsignedNumber(1); 12 | }; 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/parse.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const parse = (version, options, throwErrors = false) => { 3 | if (version instanceof SemVer) { 4 | return version 5 | } 6 | try { 7 | return new SemVer(version, options) 8 | } catch (er) { 9 | if (!throwErrors) { 10 | return null 11 | } 12 | throw er 13 | } 14 | } 15 | 16 | module.exports = parse 17 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/concat-map/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (xs, fn) { 2 | var res = []; 3 | for (var i = 0; i < xs.length; i++) { 4 | var x = fn(xs[i], i); 5 | if (isArray(x)) res.push.apply(res, x); 6 | else res.push(x); 7 | } 8 | return res; 9 | }; 10 | 11 | var isArray = Array.isArray || function (xs) { 12 | return Object.prototype.toString.call(xs) === '[object Array]'; 13 | }; 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/internal/parse-options.js: -------------------------------------------------------------------------------- 1 | // parse out just the options we care about 2 | const looseOption = Object.freeze({ loose: true }) 3 | const emptyOpts = Object.freeze({ }) 4 | const parseOptions = options => { 5 | if (!options) { 6 | return emptyOpts 7 | } 8 | 9 | if (typeof options !== 'object') { 10 | return looseOption 11 | } 12 | 13 | return options 14 | } 15 | module.exports = parseOptions 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "2.6.9", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "src/browser.js", 12 | "scripts": [ 13 | "src/browser.js", 14 | "src/debug.js" 15 | ], 16 | "dependencies": { 17 | "rauchg/ms.js": "0.7.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/isarray/test.js: -------------------------------------------------------------------------------- 1 | var isArray = require('./'); 2 | var test = require('tape'); 3 | 4 | test('is array', function(t){ 5 | t.ok(isArray([])); 6 | t.notOk(isArray({})); 7 | t.notOk(isArray(null)); 8 | t.notOk(isArray(false)); 9 | 10 | var obj = {}; 11 | obj[0] = true; 12 | t.notOk(isArray(obj)); 13 | 14 | var arr = []; 15 | arr.foo = 'bar'; 16 | t.ok(isArray(arr)); 17 | 18 | t.end(); 19 | }); 20 | 21 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/define-data-property/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "complexity": 0, 8 | "id-length": 0, 9 | "new-cap": ["error", { 10 | "capIsNewExceptions": [ 11 | "GetIntrinsic", 12 | ], 13 | }], 14 | }, 15 | 16 | "overrides": [ 17 | { 18 | "files": "test/**", 19 | "rules": { 20 | "max-lines-per-function": "off", 21 | }, 22 | }, 23 | ], 24 | } 25 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js: -------------------------------------------------------------------------------- 1 | module.exports = LocalDataFilePacket; 2 | 3 | /** 4 | * Create a new LocalDataFilePacket 5 | * @constructor 6 | * @param {Buffer} data The data contents of the packet 7 | * @public 8 | */ 9 | function LocalDataFilePacket(data) { 10 | this.data = data; 11 | } 12 | 13 | LocalDataFilePacket.prototype.write = function(writer) { 14 | writer.writeBuffer(this.data); 15 | }; 16 | -------------------------------------------------------------------------------- /1-K8S-CICD/test-login-app/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/onlyOnce.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = onlyOnce; 7 | function onlyOnce(fn) { 8 | return function (...args) { 9 | if (fn === null) throw new Error("Callback was already called."); 10 | var callFn = fn; 11 | fn = null; 12 | callFn.apply(this, args); 13 | }; 14 | } 15 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jsonwebtoken/lib/NotBeforeError.js: -------------------------------------------------------------------------------- 1 | var JsonWebTokenError = require('./JsonWebTokenError'); 2 | 3 | var NotBeforeError = function (message, date) { 4 | JsonWebTokenError.call(this, message); 5 | this.name = 'NotBeforeError'; 6 | this.date = date; 7 | }; 8 | 9 | NotBeforeError.prototype = Object.create(JsonWebTokenError.prototype); 10 | 11 | NotBeforeError.prototype.constructor = NotBeforeError; 12 | 13 | module.exports = NotBeforeError; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/bcryptjs/src/bcrypt/prng/README.md: -------------------------------------------------------------------------------- 1 | Because of [reasonable security doubts](https://github.com/dcodeIO/bcrypt.js/issues/16), these files, which used to be 2 | a part of bcrypt-isaac.js, are no longer used but are kept here for reference only. 3 | 4 | What is required instead is a proper way to collect entropy sources (using an intermediate stream cipher) which is then 5 | used to seed the CSPRNG. Pick one and use `bcrypt.setRandomFallback` instead. 6 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/color-name/README.md: -------------------------------------------------------------------------------- 1 | A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors. 2 | 3 | [![NPM](https://nodei.co/npm/color-name.png?mini=true)](https://nodei.co/npm/color-name/) 4 | 5 | 6 | ```js 7 | var colors = require('color-name'); 8 | colors.red //[255,0,0] 9 | ``` 10 | 11 | 12 | -------------------------------------------------------------------------------- /2-AgroCD/manifest-repo/test-login-app/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/once.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = once; 7 | function once(fn) { 8 | function wrapper(...args) { 9 | if (fn === null) return; 10 | var callFn = fn; 11 | fn = null; 12 | callFn.apply(this, args); 13 | } 14 | Object.assign(wrapper, fn); 15 | return wrapper; 16 | } 17 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-define-property/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var GetIntrinsic = require('get-intrinsic'); 4 | 5 | /** @type {import('.')} */ 6 | var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false; 7 | if ($defineProperty) { 8 | try { 9 | $defineProperty({}, 'a', { value: 1 }); 10 | } catch (e) { 11 | // IE 8 has a broken defineProperty 12 | $defineProperty = false; 13 | } 14 | } 15 | 16 | module.exports = $defineProperty; 17 | -------------------------------------------------------------------------------- /5-github-action/app-k8s/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | labels: 5 | app: app-weather 6 | name: app-weather 7 | spec: 8 | replicas: 1 9 | selector: 10 | matchLabels: 11 | app: app-weather 12 | strategy: {} 13 | template: 14 | metadata: 15 | labels: 16 | app: app-weather 17 | spec: 18 | containers: 19 | - image: registry.gitlab.com/karaminejad/infra/weather-app:67eea75 20 | name: weather-app 21 | -------------------------------------------------------------------------------- /3-Jenkins-CICD/manifest-repo/test-login-app/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/debug/src/inspector-log.js: -------------------------------------------------------------------------------- 1 | module.exports = inspectorLog; 2 | 3 | // black hole 4 | const nullStream = new (require('stream').Writable)(); 5 | nullStream._write = () => {}; 6 | 7 | /** 8 | * Outputs a `console.log()` to the Node.js Inspector console *only*. 9 | */ 10 | function inspectorLog() { 11 | const stdout = console._stdout; 12 | console._stdout = nullStream; 13 | console.log.apply(console, arguments); 14 | console._stdout = stdout; 15 | } 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | 5 | var E = require('../'); 6 | var R = require('../range'); 7 | var Ref = require('../ref'); 8 | var S = require('../syntax'); 9 | var T = require('../type'); 10 | 11 | test('errors', function (t) { 12 | t.equal(E, Error); 13 | t.equal(R, RangeError); 14 | t.equal(Ref, ReferenceError); 15 | t.equal(S, SyntaxError); 16 | t.equal(T, TypeError); 17 | 18 | t.end(); 19 | }); 20 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/app-chart/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/mysql-chart/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = OldPasswordPacket; 2 | function OldPasswordPacket(options) { 3 | options = options || {}; 4 | 5 | this.scrambleBuff = options.scrambleBuff; 6 | } 7 | 8 | OldPasswordPacket.prototype.parse = function(parser) { 9 | this.scrambleBuff = parser.parsePacketTerminatedBuffer(); 10 | }; 11 | 12 | OldPasswordPacket.prototype.write = function(writer) { 13 | writer.writeBuffer(this.scrambleBuff); 14 | }; 15 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test/deep.js: -------------------------------------------------------------------------------- 1 | var inspect = require('../'); 2 | var test = require('tape'); 3 | 4 | test('deep', function (t) { 5 | t.plan(4); 6 | var obj = [[[[[[500]]]]]]; 7 | t.equal(inspect(obj), '[ [ [ [ [ [Array] ] ] ] ] ]'); 8 | t.equal(inspect(obj, { depth: 4 }), '[ [ [ [ [Array] ] ] ] ]'); 9 | t.equal(inspect(obj, { depth: 2 }), '[ [ [Array] ] ]'); 10 | 11 | t.equal(inspect([[[{ a: 1 }]]], { depth: 3 }), '[ [ [ [Object] ] ] ]'); 12 | }); 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test/global.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | 5 | var test = require('tape'); 6 | var globalThis = require('globalthis')(); 7 | 8 | test('global object', function (t) { 9 | /* eslint-env browser */ 10 | var expected = typeof window === 'undefined' ? 'globalThis' : 'Window'; 11 | t.equal( 12 | inspect([globalThis]), 13 | '[ { [object ' + expected + '] } ]' 14 | ); 15 | 16 | t.end(); 17 | }); 18 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/phpmyadmin-chart/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jsonwebtoken/lib/TokenExpiredError.js: -------------------------------------------------------------------------------- 1 | var JsonWebTokenError = require('./JsonWebTokenError'); 2 | 3 | var TokenExpiredError = function (message, expiredAt) { 4 | JsonWebTokenError.call(this, message); 5 | this.name = 'TokenExpiredError'; 6 | this.expiredAt = expiredAt; 7 | }; 8 | 9 | TokenExpiredError.prototype = Object.create(JsonWebTokenError.prototype); 10 | 11 | TokenExpiredError.prototype.constructor = TokenExpiredError; 12 | 13 | module.exports = TokenExpiredError; -------------------------------------------------------------------------------- /1-K8S-CICD/test-login-app/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | labels: 5 | app: logindep 6 | name: {{ .Release.Name }}-logindep 7 | spec: 8 | replicas: 3 9 | selector: 10 | matchLabels: 11 | app: logindep 12 | template: 13 | metadata: 14 | labels: 15 | app: logindep 16 | spec: 17 | containers: 18 | - image: {{ .Values.image.repository }} 19 | name: sample 20 | imagePullSecrets: 21 | - name: helm-secret 22 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/merge-descriptors/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2016-01-17 2 | ================== 3 | 4 | * perf: enable strict mode 5 | 6 | 1.0.0 / 2015-03-01 7 | ================== 8 | 9 | * Add option to only add new descriptors 10 | * Add simple argument validation 11 | * Add jsdoc to source file 12 | 13 | 0.0.2 / 2013-12-14 14 | ================== 15 | 16 | * Move repository to `component` organization 17 | 18 | 0.0.1 / 2013-10-29 19 | ================== 20 | 21 | * Initial release 22 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js: -------------------------------------------------------------------------------- 1 | module.exports = AuthSwitchResponsePacket; 2 | function AuthSwitchResponsePacket(options) { 3 | options = options || {}; 4 | 5 | this.data = options.data; 6 | } 7 | 8 | AuthSwitchResponsePacket.prototype.parse = function parse(parser) { 9 | this.data = parser.parsePacketTerminatedBuffer(); 10 | }; 11 | 12 | AuthSwitchResponsePacket.prototype.write = function write(writer) { 13 | writer.writeBuffer(this.data); 14 | }; 15 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = ResultSetHeaderPacket; 2 | function ResultSetHeaderPacket(options) { 3 | options = options || {}; 4 | 5 | this.fieldCount = options.fieldCount; 6 | } 7 | 8 | ResultSetHeaderPacket.prototype.parse = function(parser) { 9 | this.fieldCount = parser.parseLengthCodedNumber(); 10 | }; 11 | 12 | ResultSetHeaderPacket.prototype.write = function(writer) { 13 | writer.writeLengthCodedNumber(this.fieldCount); 14 | }; 15 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = UseOldPasswordPacket; 2 | function UseOldPasswordPacket(options) { 3 | options = options || {}; 4 | 5 | this.firstByte = options.firstByte || 0xfe; 6 | } 7 | 8 | UseOldPasswordPacket.prototype.parse = function(parser) { 9 | this.firstByte = parser.parseUnsignedNumber(1); 10 | }; 11 | 12 | UseOldPasswordPacket.prototype.write = function(writer) { 13 | writer.writeUnsignedNumber(1, this.firstByte); 14 | }; 15 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/package-support.json: -------------------------------------------------------------------------------- 1 | { 2 | "versions": [ 3 | { 4 | "version": "*", 5 | "target": { 6 | "node": "all" 7 | }, 8 | "response": { 9 | "type": "time-permitting" 10 | }, 11 | "backing": { 12 | "npm-funding": true, 13 | "donations": [ 14 | "https://github.com/ljharb", 15 | "https://tidelift.com/funding/github/npm/object-inspect" 16 | ] 17 | } 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-symbols/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var origSymbol = typeof Symbol !== 'undefined' && Symbol; 4 | var hasSymbolSham = require('./shams'); 5 | 6 | module.exports = function hasNativeSymbols() { 7 | if (typeof origSymbol !== 'function') { return false; } 8 | if (typeof Symbol !== 'function') { return false; } 9 | if (typeof origSymbol('foo') !== 'symbol') { return false; } 10 | if (typeof Symbol('bar') !== 'symbol') { return false; } 11 | 12 | return hasSymbolSham(); 13 | }; 14 | -------------------------------------------------------------------------------- /2-AgroCD/manifest-repo/test-login-app/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | labels: 5 | app: logindep 6 | name: {{ .Release.Name }}-logindep 7 | spec: 8 | replicas: 3 9 | selector: 10 | matchLabels: 11 | app: logindep 12 | template: 13 | metadata: 14 | labels: 15 | app: logindep 16 | spec: 17 | containers: 18 | - image: {{ .Values.image.repository }} 19 | name: sample 20 | imagePullSecrets: 21 | - name: helm-secret 22 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/call-bind/callBound.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var GetIntrinsic = require('get-intrinsic'); 4 | 5 | var callBind = require('./'); 6 | 7 | var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); 8 | 9 | module.exports = function callBoundIntrinsic(name, allowMissing) { 10 | var intrinsic = GetIntrinsic(name, !!allowMissing); 11 | if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { 12 | return callBind(intrinsic); 13 | } 14 | return intrinsic; 15 | }; 16 | -------------------------------------------------------------------------------- /3-Jenkins-CICD/manifest-repo/test-login-app/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | labels: 5 | app: logindep 6 | name: {{ .Release.Name }}-logindep 7 | spec: 8 | replicas: 3 9 | selector: 10 | matchLabels: 11 | app: logindep 12 | template: 13 | metadata: 14 | labels: 15 | app: logindep 16 | spec: 17 | containers: 18 | - image: {{ .Values.image.repository }} 19 | name: sample 20 | imagePullSecrets: 21 | - name: helm-secret 22 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/on-headers/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.2 / 2019-02-21 2 | ================== 3 | 4 | * Fix `res.writeHead` patch missing return value 5 | 6 | 1.0.1 / 2015-09-29 7 | ================== 8 | 9 | * perf: enable strict mode 10 | 11 | 1.0.0 / 2014-08-10 12 | ================== 13 | 14 | * Honor `res.statusCode` change in `listener` 15 | * Move to `jshttp` organization 16 | * Prevent `arguments`-related de-opt 17 | 18 | 0.0.0 / 2014-05-13 19 | ================== 20 | 21 | * Initial implementation 22 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/setprototypeof/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | /* eslint no-proto: 0 */ 3 | module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties) 4 | 5 | function setProtoOf (obj, proto) { 6 | obj.__proto__ = proto 7 | return obj 8 | } 9 | 10 | function mixinProperties (obj, proto) { 11 | for (var prop in proto) { 12 | if (!Object.prototype.hasOwnProperty.call(obj, prop)) { 13 | obj[prop] = proto[prop] 14 | } 15 | } 16 | return obj 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/utils-merge/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Merge object b with object a. 3 | * 4 | * var a = { foo: 'bar' } 5 | * , b = { bar: 'baz' }; 6 | * 7 | * merge(a, b); 8 | * // => { foo: 'bar', bar: 'baz' } 9 | * 10 | * @param {Object} a 11 | * @param {Object} b 12 | * @return {Object} 13 | * @api public 14 | */ 15 | 16 | exports = module.exports = function(a, b){ 17 | if (a && b) { 18 | for (var key in b) { 19 | a[key] = b[key]; 20 | } 21 | } 22 | return a; 23 | }; 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/forwarded/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.2.0 / 2021-05-31 2 | ================== 3 | 4 | * Use `req.socket` over deprecated `req.connection` 5 | 6 | 0.1.2 / 2017-09-14 7 | ================== 8 | 9 | * perf: improve header parsing 10 | * perf: reduce overhead when no `X-Forwarded-For` header 11 | 12 | 0.1.1 / 2017-09-10 13 | ================== 14 | 15 | * Fix trimming leading / trailing OWS 16 | * perf: hoist regular expression 17 | 18 | 0.1.0 / 2014-09-21 19 | ================== 20 | 21 | * Initial release 22 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jsonwebtoken/lib/timespan.js: -------------------------------------------------------------------------------- 1 | var ms = require('ms'); 2 | 3 | module.exports = function (time, iat) { 4 | var timestamp = iat || Math.floor(Date.now() / 1000); 5 | 6 | if (typeof time === 'string') { 7 | var milliseconds = ms(time); 8 | if (typeof milliseconds === 'undefined') { 9 | return; 10 | } 11 | return Math.floor(timestamp + milliseconds / 1000); 12 | } else if (typeof time === 'number') { 13 | return timestamp + time; 14 | } else { 15 | return; 16 | } 17 | 18 | }; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/ComQueryPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = ComQueryPacket; 2 | function ComQueryPacket(sql) { 3 | this.command = 0x03; 4 | this.sql = sql; 5 | } 6 | 7 | ComQueryPacket.prototype.write = function(writer) { 8 | writer.writeUnsignedNumber(1, this.command); 9 | writer.writeString(this.sql); 10 | }; 11 | 12 | ComQueryPacket.prototype.parse = function(parser) { 13 | this.command = parser.parseUnsignedNumber(1); 14 | this.sql = parser.parsePacketTerminatedString(); 15 | }; 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test/browser/dom.js: -------------------------------------------------------------------------------- 1 | var inspect = require('../../'); 2 | var test = require('tape'); 3 | 4 | test('dom element', function (t) { 5 | t.plan(1); 6 | 7 | var d = document.createElement('div'); 8 | d.setAttribute('id', 'beep'); 9 | d.innerHTML = 'woooiiiii'; 10 | 11 | t.equal( 12 | inspect([d, { a: 3, b: 4, c: [5, 6, [7, [8, [9]]]] }]), 13 | '[
...
, { a: 3, b: 4, c: [ 5, 6, [ 7, [ 8, [Object] ] ] ] } ]' 14 | ); 15 | }); 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/public/welcome.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap'); 2 | 3 | *{ 4 | margin: 0; 5 | padding: 0; 6 | box-sizing: border-box; 7 | font-family: 'Roboto', sans-serif; 8 | outline: none; 9 | border: none; 10 | } 11 | 12 | body{ 13 | display: flex; 14 | justify-content: center; 15 | align-items: center; 16 | min-height: 100vh; 17 | background: linear-gradient(-45deg,#7f379b,#ffa26c); 18 | } 19 | 20 | h1{ 21 | font-size: 2.5em; 22 | } -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jsonwebtoken/lib/JsonWebTokenError.js: -------------------------------------------------------------------------------- 1 | var JsonWebTokenError = function (message, error) { 2 | Error.call(this, message); 3 | if(Error.captureStackTrace) { 4 | Error.captureStackTrace(this, this.constructor); 5 | } 6 | this.name = 'JsonWebTokenError'; 7 | this.message = message; 8 | if (error) this.inner = error; 9 | }; 10 | 11 | JsonWebTokenError.prototype = Object.create(Error.prototype); 12 | JsonWebTokenError.prototype.constructor = JsonWebTokenError; 13 | 14 | module.exports = JsonWebTokenError; 15 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/example/all.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var Buffer = require('safer-buffer').Buffer; 5 | 6 | var holes = ['a', 'b']; 7 | holes[4] = 'e'; 8 | holes[6] = 'g'; 9 | 10 | var obj = { 11 | a: 1, 12 | b: [3, 4, undefined, null], 13 | c: undefined, 14 | d: null, 15 | e: { 16 | regex: /^x/i, 17 | buf: Buffer.from('abc'), 18 | holes: holes 19 | }, 20 | now: new Date() 21 | }; 22 | obj.self = obj; 23 | console.log(inspect(obj)); 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/BufferList.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = BufferList; 3 | function BufferList() { 4 | this.bufs = []; 5 | this.size = 0; 6 | } 7 | 8 | BufferList.prototype.shift = function shift() { 9 | var buf = this.bufs.shift(); 10 | 11 | if (buf) { 12 | this.size -= buf.length; 13 | } 14 | 15 | return buf; 16 | }; 17 | 18 | BufferList.prototype.push = function push(buf) { 19 | if (!buf || !buf.length) { 20 | return; 21 | } 22 | 23 | this.bufs.push(buf); 24 | this.size += buf.length; 25 | }; 26 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.once/README.md: -------------------------------------------------------------------------------- 1 | # lodash.once v4.1.1 2 | 3 | The [lodash](https://lodash.com/) method `_.once` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.once 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var once = require('lodash.once'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#once) or [package source](https://github.com/lodash/lodash/blob/4.1.1-npm-packages/lodash.once) for more details. 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/internal/identifiers.js: -------------------------------------------------------------------------------- 1 | const numeric = /^[0-9]+$/ 2 | const compareIdentifiers = (a, b) => { 3 | const anum = numeric.test(a) 4 | const bnum = numeric.test(b) 5 | 6 | if (anum && bnum) { 7 | a = +a 8 | b = +b 9 | } 10 | 11 | return a === b ? 0 12 | : (anum && !bnum) ? -1 13 | : (bnum && !anum) ? 1 14 | : a < b ? -1 15 | : 1 16 | } 17 | 18 | const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a) 19 | 20 | module.exports = { 21 | compareIdentifiers, 22 | rcompareIdentifiers, 23 | } 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test/circular.js: -------------------------------------------------------------------------------- 1 | var inspect = require('../'); 2 | var test = require('tape'); 3 | 4 | test('circular', function (t) { 5 | t.plan(2); 6 | var obj = { a: 1, b: [3, 4] }; 7 | obj.c = obj; 8 | t.equal(inspect(obj), '{ a: 1, b: [ 3, 4 ], c: [Circular] }'); 9 | 10 | var double = {}; 11 | double.a = [double]; 12 | double.b = {}; 13 | double.b.inner = double.b; 14 | double.b.obj = double; 15 | t.equal(inspect(double), '{ a: [ [Circular] ], b: { inner: [Circular], obj: [Circular] } }'); 16 | }); 17 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jake/test/integration/list_tasks.js: -------------------------------------------------------------------------------- 1 | const PROJECT_DIR = process.env.PROJECT_DIR; 2 | const JAKE_CMD = `${PROJECT_DIR}/bin/cli.js`; 3 | 4 | let assert = require('assert'); 5 | let proc = require('child_process'); 6 | 7 | suite('listTasks', function () { 8 | test('execute "jake -T" without any errors', function () { 9 | let message = 'cannot run "jake -T" command'; 10 | let listTasks = function () { 11 | proc.execFileSync(JAKE_CMD, ['-T']); 12 | }; 13 | assert.doesNotThrow(listTasks, TypeError, message); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/sequences/Ping.js: -------------------------------------------------------------------------------- 1 | var Sequence = require('./Sequence'); 2 | var Util = require('util'); 3 | var Packets = require('../packets'); 4 | 5 | module.exports = Ping; 6 | Util.inherits(Ping, Sequence); 7 | 8 | function Ping(options, callback) { 9 | if (!callback && typeof options === 'function') { 10 | callback = options; 11 | options = {}; 12 | } 13 | 14 | Sequence.call(this, options, callback); 15 | } 16 | 17 | Ping.prototype.start = function() { 18 | this.emit('packet', new Packets.ComPingPacket()); 19 | }; 20 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/process-nextick-args/readme.md: -------------------------------------------------------------------------------- 1 | process-nextick-args 2 | ===== 3 | 4 | [![Build Status](https://travis-ci.org/calvinmetcalf/process-nextick-args.svg?branch=master)](https://travis-ci.org/calvinmetcalf/process-nextick-args) 5 | 6 | ```bash 7 | npm install --save process-nextick-args 8 | ``` 9 | 10 | Always be able to pass arguments to process.nextTick, no matter the platform 11 | 12 | ```js 13 | var pna = require('process-nextick-args'); 14 | 15 | pna.nextTick(function (a, b, c) { 16 | console.log(a, b, c); 17 | }, 'step', 3, 'profit'); 18 | ``` 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/set-function-length/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "id-length": "off", 8 | "new-cap": ["error", { 9 | "capIsNewExceptions": [ 10 | "GetIntrinsic" 11 | ], 12 | }], 13 | "no-extra-parens": "off", 14 | }, 15 | 16 | "overrides": [ 17 | { 18 | "files": ["test/**/*.js"], 19 | "rules": { 20 | "id-length": "off", 21 | "max-lines-per-function": "off", 22 | "multiline-comment-style": "off", 23 | "no-empty-function": "off", 24 | }, 25 | }, 26 | ], 27 | } 28 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/escape-html/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "escape-html", 3 | "description": "Escape string for use in HTML", 4 | "version": "1.0.3", 5 | "license": "MIT", 6 | "keywords": [ 7 | "escape", 8 | "html", 9 | "utility" 10 | ], 11 | "repository": "component/escape-html", 12 | "devDependencies": { 13 | "benchmark": "1.0.0", 14 | "beautify-benchmark": "0.2.4" 15 | }, 16 | "files": [ 17 | "LICENSE", 18 | "Readme.md", 19 | "index.js" 20 | ], 21 | "scripts": { 22 | "bench": "node benchmark/index.js" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.includes/README.md: -------------------------------------------------------------------------------- 1 | # lodash.includes v4.3.0 2 | 3 | The [lodash](https://lodash.com/) method `_.includes` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.includes 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var includes = require('lodash.includes'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#includes) or [package source](https://github.com/lodash/lodash/blob/4.3.0-npm-packages/lodash.includes) for more details. 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isnumber/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isnumber v3.0.3 2 | 3 | The [lodash](https://lodash.com/) method `_.isNumber` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isnumber 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isNumber = require('lodash.isnumber'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isNumber) or [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash.isnumber) for more details. 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isstring/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isstring v4.0.1 2 | 3 | The [lodash](https://lodash.com/) method `_.isString` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isstring 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isString = require('lodash.isstring'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isString) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.isstring) for more details. 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/functions/inc.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | 3 | const inc = (version, release, options, identifier, identifierBase) => { 4 | if (typeof (options) === 'string') { 5 | identifierBase = identifier 6 | identifier = options 7 | options = undefined 8 | } 9 | 10 | try { 11 | return new SemVer( 12 | version instanceof SemVer ? version.version : version, 13 | options 14 | ).inc(release, identifier, identifierBase).version 15 | } catch (er) { 16 | return null 17 | } 18 | } 19 | module.exports = inc 20 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isboolean/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isboolean v3.0.3 2 | 3 | The [lodash](https://lodash.com/) method `_.isBoolean` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isboolean 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isBoolean = require('lodash.isboolean'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isBoolean) or [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash.isboolean) for more details. 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isinteger/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isinteger v4.0.4 2 | 3 | The [lodash](https://lodash.com/) method `_.isInteger` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isinteger 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isInteger = require('lodash.isinteger'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isInteger) or [package source](https://github.com/lodash/lodash/blob/4.0.4-npm-packages/lodash.isinteger) for more details. 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/methods/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.1.2 / 2016-01-17 2 | ================== 3 | 4 | * perf: enable strict mode 5 | 6 | 1.1.1 / 2014-12-30 7 | ================== 8 | 9 | * Improve `browserify` support 10 | 11 | 1.1.0 / 2014-07-05 12 | ================== 13 | 14 | * Add `CONNECT` method 15 | 16 | 1.0.1 / 2014-06-02 17 | ================== 18 | 19 | * Fix module to work with harmony transform 20 | 21 | 1.0.0 / 2014-05-08 22 | ================== 23 | 24 | * Add `PURGE` method 25 | 26 | 0.1.0 / 2013-10-28 27 | ================== 28 | 29 | * Add `http.METHODS` support 30 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-proto/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | var hasProto = require('../'); 5 | 6 | test('hasProto', function (t) { 7 | var result = hasProto(); 8 | t.equal(typeof result, 'boolean', 'returns a boolean (' + result + ')'); 9 | 10 | var obj = { __proto__: null }; 11 | if (result) { 12 | t.notOk('toString' in obj, 'null object lacks toString'); 13 | } else { 14 | t.ok('toString' in obj, 'without proto, null object has toString'); 15 | t.equal(obj.__proto__, null); // eslint-disable-line no-proto 16 | } 17 | 18 | t.end(); 19 | }); 20 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/media-typer/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.3.0 / 2014-09-07 2 | ================== 3 | 4 | * Support Node.js 0.6 5 | * Throw error when parameter format invalid on parse 6 | 7 | 0.2.0 / 2014-06-18 8 | ================== 9 | 10 | * Add `typer.format()` to format media types 11 | 12 | 0.1.0 / 2014-06-17 13 | ================== 14 | 15 | * Accept `req` as argument to `parse` 16 | * Accept `res` as argument to `parse` 17 | * Parse media type with extra LWS between type and first parameter 18 | 19 | 0.0.0 / 2014-06-13 20 | ================== 21 | 22 | * Initial implementation 23 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/cookie-signature/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cookie-signature", 3 | "version": "1.0.6", 4 | "description": "Sign and unsign cookies", 5 | "keywords": ["cookie", "sign", "unsign"], 6 | "author": "TJ Holowaychuk ", 7 | "license": "MIT", 8 | "repository": { "type": "git", "url": "https://github.com/visionmedia/node-cookie-signature.git"}, 9 | "dependencies": {}, 10 | "devDependencies": { 11 | "mocha": "*", 12 | "should": "*" 13 | }, 14 | "scripts": { 15 | "test": "mocha --require should --reporter spec" 16 | }, 17 | "main": "index" 18 | } 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/qs/lib/formats.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var replace = String.prototype.replace; 4 | var percentTwenties = /%20/g; 5 | 6 | var Format = { 7 | RFC1738: 'RFC1738', 8 | RFC3986: 'RFC3986' 9 | }; 10 | 11 | module.exports = { 12 | 'default': Format.RFC3986, 13 | formatters: { 14 | RFC1738: function (value) { 15 | return replace.call(value, percentTwenties, '+'); 16 | }, 17 | RFC3986: function (value) { 18 | return String(value); 19 | } 20 | }, 21 | RFC1738: Format.RFC1738, 22 | RFC3986: Format.RFC3986 23 | }; 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | function getParamSize(keySize) { 4 | var result = ((keySize / 8) | 0) + (keySize % 8 === 0 ? 0 : 1); 5 | return result; 6 | } 7 | 8 | var paramBytesForAlg = { 9 | ES256: getParamSize(256), 10 | ES384: getParamSize(384), 11 | ES512: getParamSize(521) 12 | }; 13 | 14 | function getParamBytesForAlg(alg) { 15 | var paramBytes = paramBytesForAlg[alg]; 16 | if (paramBytes) { 17 | return paramBytes; 18 | } 19 | 20 | throw new Error('Unknown algorithm "' + alg + '"'); 21 | } 22 | 23 | module.exports = getParamBytesForAlg; 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test/has.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var test = require('tape'); 5 | var mockProperty = require('mock-property'); 6 | 7 | test('when Object#hasOwnProperty is deleted', function (t) { 8 | t.plan(1); 9 | var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays 10 | 11 | t.teardown(mockProperty(Array.prototype, 1, { value: 2 })); // this is needed to account for "in" vs "hasOwnProperty" 12 | t.teardown(mockProperty(Object.prototype, 'hasOwnProperty', { 'delete': true })); 13 | 14 | t.equal(inspect(arr), '[ 1, , 3 ]'); 15 | }); 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isplainobject/README.md: -------------------------------------------------------------------------------- 1 | # lodash.isplainobject v4.0.6 2 | 3 | The [lodash](https://lodash.com/) method `_.isPlainObject` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.isplainobject 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var isPlainObject = require('lodash.isplainobject'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.isplainobject) for more details. 19 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/buffer-equal-constant-time/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "buffer-equal-constant-time", 3 | "version": "1.0.1", 4 | "description": "Constant-time comparison of Buffers", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "mocha test.js" 8 | }, 9 | "repository": "git@github.com:goinstant/buffer-equal-constant-time.git", 10 | "keywords": [ 11 | "buffer", 12 | "equal", 13 | "constant-time", 14 | "crypto" 15 | ], 16 | "author": "GoInstant Inc., a salesforce.com company", 17 | "license": "BSD-3-Clause", 18 | "devDependencies": { 19 | "mocha": "~1.15.1" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/qs/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/qs 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with a single custom sponsorship URL 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/body-parser/node_modules/qs/lib/formats.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var replace = String.prototype.replace; 4 | var percentTwenties = /%20/g; 5 | 6 | var Format = { 7 | RFC1738: 'RFC1738', 8 | RFC3986: 'RFC3986' 9 | }; 10 | 11 | module.exports = { 12 | 'default': Format.RFC3986, 13 | formatters: { 14 | RFC1738: function (value) { 15 | return replace.call(value, percentTwenties, '+'); 16 | }, 17 | RFC3986: function (value) { 18 | return String(value); 19 | } 20 | }, 21 | RFC1738: Format.RFC1738, 22 | RFC3986: Format.RFC3986 23 | }; 24 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/express-session/node_modules/cookie-signature/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cookie-signature", 3 | "version": "1.0.7", 4 | "description": "Sign and unsign cookies", 5 | "keywords": ["cookie", "sign", "unsign"], 6 | "author": "TJ Holowaychuk ", 7 | "license": "MIT", 8 | "repository": { "type": "git", "url": "https://github.com/visionmedia/node-cookie-signature.git"}, 9 | "dependencies": {}, 10 | "devDependencies": { 11 | "mocha": "*", 12 | "should": "*" 13 | }, 14 | "scripts": { 15 | "test": "mocha --require should --reporter spec" 16 | }, 17 | "main": "index" 18 | } -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/hasown/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/hasown 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with a single custom sponsorship URL 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-errors/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/es-errors 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with a single custom sponsorship URL 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jake/lib/utils/logger.js: -------------------------------------------------------------------------------- 1 | let util = require('util'); 2 | 3 | let logger = new (function () { 4 | let _output = function (type, out) { 5 | let quiet = typeof jake != 'undefined' && jake.program && 6 | jake.program.opts && jake.program.opts.quiet; 7 | let msg; 8 | if (!quiet) { 9 | msg = typeof out == 'string' ? out : util.inspect(out); 10 | console[type](msg); 11 | } 12 | }; 13 | 14 | this.log = function (out) { 15 | _output('log', out); 16 | }; 17 | 18 | this.error = function (out) { 19 | _output('error', out); 20 | }; 21 | 22 | })(); 23 | 24 | module.exports = logger; 25 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/body-parser/node_modules/qs/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/qs 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with a single custom sponsorship URL 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jake/README.md: -------------------------------------------------------------------------------- 1 | ### Jake -- the JavaScript build tool for Node.js 2 | 3 | [![Build Status](https://travis-ci.org/jakejs/jake.svg?branch=master)](https://travis-ci.org/jakejs/jake) 4 | 5 | Documentation site at [http://jakejs.com](http://jakejs.com/) 6 | 7 | ### Contributing 8 | 1. [Install node](http://nodejs.org/#download). 9 | 2. Clone this repository `$ git clone git@github.com:jakejs/jake.git`. 10 | 3. Install dependencies `$ npm install`. 11 | 4. Run tests with `$ npm test`. 12 | 5. Start Hacking! 13 | 14 | ### License 15 | 16 | Licensed under the Apache License, Version 2.0 17 | () 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/es-define-property/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/es-define-property 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with a single custom sponsorship URL 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/gopd/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/gopd 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/set-function-length/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/set-function-name 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with a single custom sponsorship URL 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/call-bind/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/call-bind 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-proto/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/has-proto 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/app-deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | labels: 5 | app: node-app 6 | name: node-app 7 | spec: 8 | replicas: 1 9 | selector: 10 | matchLabels: 11 | app: node-app 12 | template: 13 | metadata: 14 | labels: 15 | app: node-app 16 | spec: 17 | imagePullSecrets: 18 | - name: registery-credenial 19 | containers: 20 | - image: registry.gitlab.com/d6245/app-k8s/app-login:v1 21 | name: node-app 22 | envFrom: 23 | - configMapRef: 24 | name: app-config 25 | - secretRef: 26 | name: app-secret 27 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/promiseCallback.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | const PROMISE_SYMBOL = Symbol('promiseCallback'); 7 | 8 | function promiseCallback() { 9 | let resolve, reject; 10 | function callback(err, ...args) { 11 | if (err) return reject(err); 12 | resolve(args.length > 1 ? args : args[0]); 13 | } 14 | 15 | callback[PROMISE_SYMBOL] = new Promise((res, rej) => { 16 | resolve = res, reject = rej; 17 | }); 18 | 19 | return callback; 20 | } 21 | 22 | exports.promiseCallback = promiseCallback; 23 | exports.PROMISE_SYMBOL = PROMISE_SYMBOL; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/function-bind/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/function-bind 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/get-intrinsic/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/get-intrinsic 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-symbols/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/has-symbols 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/side-channel/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/side-channel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/object-inspect 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node_test", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "scripts": { 6 | "test": "echo \"Error: no test specified\" && exit 1", 7 | "start": "nodemon app.js" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "description": "", 13 | "dependencies": { 14 | "bcryptjs": "^2.4.3", 15 | "body-parser": "^1.20.2", 16 | "connect-flash": "^0.1.1", 17 | "cookie-parser": "^1.4.6", 18 | "dotenv": "^16.4.5", 19 | "ejs": "^3.1.10", 20 | "express": "^4.19.2", 21 | "express-session": "^1.18.0", 22 | "jsonwebtoken": "^9.0.2", 23 | "mysql": "^2.18.1" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/toidentifier/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * toidentifier 3 | * Copyright(c) 2016 Douglas Christopher Wilson 4 | * MIT Licensed 5 | */ 6 | 7 | 'use strict' 8 | 9 | /** 10 | * Module exports. 11 | * @public 12 | */ 13 | 14 | module.exports = toIdentifier 15 | 16 | /** 17 | * Trasform the given string into a JavaScript identifier 18 | * 19 | * @param {string} str 20 | * @returns {string} 21 | * @public 22 | */ 23 | 24 | function toIdentifier (str) { 25 | return str 26 | .split(' ') 27 | .map(function (token) { 28 | return token.slice(0, 1).toUpperCase() + token.slice(1) 29 | }) 30 | .join('') 31 | .replace(/[^ _0-9a-z]/gi, '') 32 | } 33 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/content-type/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.5 / 2023-01-29 2 | ================== 3 | 4 | * perf: skip value escaping when unnecessary 5 | 6 | 1.0.4 / 2017-09-11 7 | ================== 8 | 9 | * perf: skip parameter parsing when no parameters 10 | 11 | 1.0.3 / 2017-09-10 12 | ================== 13 | 14 | * perf: remove argument reassignment 15 | 16 | 1.0.2 / 2016-05-09 17 | ================== 18 | 19 | * perf: enable strict mode 20 | 21 | 1.0.1 / 2015-02-13 22 | ================== 23 | 24 | * Improve missing `Content-Type` header error message 25 | 26 | 1.0.0 / 2015-02-01 27 | ================== 28 | 29 | * Initial implementation, derived from `media-typer@0.3.0` 30 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/define-data-property/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/define-data-property 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/StatisticsPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = StatisticsPacket; 2 | function StatisticsPacket() { 3 | this.message = undefined; 4 | } 5 | 6 | StatisticsPacket.prototype.parse = function(parser) { 7 | this.message = parser.parsePacketTerminatedString(); 8 | 9 | var items = this.message.split(/\s\s/); 10 | for (var i = 0; i < items.length; i++) { 11 | var m = items[i].match(/^(.+)\:\s+(.+)$/); 12 | if (m !== null) { 13 | this[m[1].toLowerCase().replace(/\s/g, '_')] = Number(m[2]); 14 | } 15 | } 16 | }; 17 | 18 | StatisticsPacket.prototype.write = function(writer) { 19 | writer.writeString(this.message); 20 | }; 21 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test-core-js.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('core-js'); 4 | 5 | var inspect = require('./'); 6 | var test = require('tape'); 7 | 8 | test('Maps', function (t) { 9 | t.equal(inspect(new Map([[1, 2]])), 'Map (1) {1 => 2}'); 10 | t.end(); 11 | }); 12 | 13 | test('WeakMaps', function (t) { 14 | t.equal(inspect(new WeakMap([[{}, 2]])), 'WeakMap { ? }'); 15 | t.end(); 16 | }); 17 | 18 | test('Sets', function (t) { 19 | t.equal(inspect(new Set([[1, 2]])), 'Set (1) {[ 1, 2 ]}'); 20 | t.end(); 21 | }); 22 | 23 | test('WeakSets', function (t) { 24 | t.equal(inspect(new WeakSet([[1, 2]])), 'WeakSet { ? }'); 25 | t.end(); 26 | }); 27 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/app-chart/templates/app-deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | labels: 5 | app: node-app 6 | name: node-app 7 | spec: 8 | replicas: 1 9 | selector: 10 | matchLabels: 11 | app: node-app 12 | template: 13 | metadata: 14 | labels: 15 | app: node-app 16 | spec: 17 | imagePullSecrets: 18 | - name: registery-credenial 19 | containers: 20 | - image: registry.gitlab.com/d6245/app-k8s/app-login:v1 21 | name: node-app 22 | envFrom: 23 | - configMapRef: 24 | name: app-config 25 | - secretRef: 26 | name: app-secret 27 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-property-descriptors/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/has-property-descriptors 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/application-ingress.yaml.bk: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | nginx.ingress.kubernetes.io/rewrite-target: / 7 | name: apps-ingress 8 | spec: 9 | rules: 10 | - http: 11 | paths: 12 | - backend: 13 | service: 14 | name: app-svc 15 | port: 16 | number: 5000 17 | path: /app 18 | pathType: Prefix 19 | - backend: 20 | service: 21 | name: phpmyadmin-svc 22 | port: 23 | number: 8099 24 | path: /php 25 | pathType: Prefix 26 | 27 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/range.bnf: -------------------------------------------------------------------------------- 1 | range-set ::= range ( logical-or range ) * 2 | logical-or ::= ( ' ' ) * '||' ( ' ' ) * 3 | range ::= hyphen | simple ( ' ' simple ) * | '' 4 | hyphen ::= partial ' - ' partial 5 | simple ::= primitive | partial | tilde | caret 6 | primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial 7 | partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? 8 | xr ::= 'x' | 'X' | '*' | nr 9 | nr ::= '0' | [1-9] ( [0-9] ) * 10 | tilde ::= '~' partial 11 | caret ::= '^' partial 12 | qualifier ::= ( '-' pre )? ( '+' build )? 13 | pre ::= parts 14 | build ::= parts 15 | parts ::= part ( '.' part ) * 16 | part ::= nr | [-0-9A-Za-z]+ 17 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-property-descriptors/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var $defineProperty = require('es-define-property'); 4 | 5 | var hasPropertyDescriptors = function hasPropertyDescriptors() { 6 | return !!$defineProperty; 7 | }; 8 | 9 | hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { 10 | // node v0.6 has a bug where array lengths can be Set but not Defined 11 | if (!$defineProperty) { 12 | return null; 13 | } 14 | try { 15 | return $defineProperty([], 'length', { value: 1 }).length !== 1; 16 | } catch (e) { 17 | // In Firefox 4-22, defining length on an array throws an exception. 18 | return true; 19 | } 20 | }; 21 | 22 | module.exports = hasPropertyDescriptors; 23 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jws/index.js: -------------------------------------------------------------------------------- 1 | /*global exports*/ 2 | var SignStream = require('./lib/sign-stream'); 3 | var VerifyStream = require('./lib/verify-stream'); 4 | 5 | var ALGORITHMS = [ 6 | 'HS256', 'HS384', 'HS512', 7 | 'RS256', 'RS384', 'RS512', 8 | 'PS256', 'PS384', 'PS512', 9 | 'ES256', 'ES384', 'ES512' 10 | ]; 11 | 12 | exports.ALGORITHMS = ALGORITHMS; 13 | exports.sign = SignStream.sign; 14 | exports.verify = VerifyStream.verify; 15 | exports.decode = VerifyStream.decode; 16 | exports.isValid = VerifyStream.isValid; 17 | exports.createSign = function createSign(opts) { 18 | return new SignStream(opts); 19 | }; 20 | exports.createVerify = function createVerify(opts) { 21 | return new VerifyStream(opts); 22 | }; 23 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/path-to-regexp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "path-to-regexp", 3 | "description": "Express style path to RegExp utility", 4 | "version": "0.1.10", 5 | "files": [ 6 | "index.js", 7 | "LICENSE" 8 | ], 9 | "scripts": { 10 | "test": "istanbul cover _mocha -- -R spec" 11 | }, 12 | "keywords": [ 13 | "express", 14 | "regexp" 15 | ], 16 | "component": { 17 | "scripts": { 18 | "path-to-regexp": "index.js" 19 | } 20 | }, 21 | "license": "MIT", 22 | "repository": { 23 | "type": "git", 24 | "url": "https://github.com/pillarjs/path-to-regexp.git" 25 | }, 26 | "devDependencies": { 27 | "mocha": "^1.17.1", 28 | "istanbul": "^0.2.6" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/ranges/min-satisfying.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const Range = require('../classes/range') 3 | const minSatisfying = (versions, range, options) => { 4 | let min = null 5 | let minSV = null 6 | let rangeObj = null 7 | try { 8 | rangeObj = new Range(range, options) 9 | } catch (er) { 10 | return null 11 | } 12 | versions.forEach((v) => { 13 | if (rangeObj.test(v)) { 14 | // satisfies(v, range, options) 15 | if (!min || minSV.compare(v) === 1) { 16 | // compare(min, v, true) 17 | min = v 18 | minSV = new SemVer(min, options) 19 | } 20 | } 21 | }) 22 | return min 23 | } 24 | module.exports = minSatisfying 25 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/process-nextick-args/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "process-nextick-args", 3 | "version": "2.0.1", 4 | "description": "process.nextTick but always with args", 5 | "main": "index.js", 6 | "files": [ 7 | "index.js" 8 | ], 9 | "scripts": { 10 | "test": "node test.js" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/calvinmetcalf/process-nextick-args.git" 15 | }, 16 | "author": "", 17 | "license": "MIT", 18 | "bugs": { 19 | "url": "https://github.com/calvinmetcalf/process-nextick-args/issues" 20 | }, 21 | "homepage": "https://github.com/calvinmetcalf/process-nextick-args", 22 | "devDependencies": { 23 | "tap": "~0.2.6" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/ranges/max-satisfying.js: -------------------------------------------------------------------------------- 1 | const SemVer = require('../classes/semver') 2 | const Range = require('../classes/range') 3 | 4 | const maxSatisfying = (versions, range, options) => { 5 | let max = null 6 | let maxSV = null 7 | let rangeObj = null 8 | try { 9 | rangeObj = new Range(range, options) 10 | } catch (er) { 11 | return null 12 | } 13 | versions.forEach((v) => { 14 | if (rangeObj.test(v)) { 15 | // satisfies(v, range, options) 16 | if (!max || maxSV.compare(v) === -1) { 17 | // compare(max, v, true) 18 | max = v 19 | maxSV = new SemVer(max, options) 20 | } 21 | } 22 | }) 23 | return max 24 | } 25 | module.exports = maxSatisfying 26 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/inherits/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "inherits", 3 | "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", 4 | "version": "2.0.4", 5 | "keywords": [ 6 | "inheritance", 7 | "class", 8 | "klass", 9 | "oop", 10 | "object-oriented", 11 | "inherits", 12 | "browser", 13 | "browserify" 14 | ], 15 | "main": "./inherits.js", 16 | "browser": "./inherits_browser.js", 17 | "repository": "git://github.com/isaacs/inherits", 18 | "license": "ISC", 19 | "scripts": { 20 | "test": "tap" 21 | }, 22 | "devDependencies": { 23 | "tap": "^14.2.4" 24 | }, 25 | "files": [ 26 | "inherits.js", 27 | "inherits_browser.js" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/mysql-pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | labels: 5 | run: mysql-pod 6 | name: mysql-pod 7 | spec: 8 | containers: 9 | - image: mysql:5.7 10 | name: mysql-pod 11 | envFrom: 12 | - secretRef: 13 | name: db-secret 14 | volumeMounts: 15 | - name: mysql-initdb 16 | mountPath: /docker-entrypoint-initdb.d 17 | - name: mysql-persistent-storage 18 | mountPath: /var/lib/mysql 19 | volumes: 20 | - name: mysql-initdb 21 | configMap: 22 | name: mysql-initdb-config 23 | - name: mysql-persistent-storage 24 | persistentVolumeClaim: 25 | claimName: mysql-pv-claim 26 | dnsPolicy: ClusterFirst 27 | restartPolicy: Always 28 | 29 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/queue.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | 7 | exports.default = function (worker, concurrency) { 8 | var _worker = (0, _wrapAsync2.default)(worker); 9 | return (0, _queue2.default)((items, cb) => { 10 | _worker(items[0], cb); 11 | }, concurrency, 1); 12 | }; 13 | 14 | var _queue = require('./internal/queue.js'); 15 | 16 | var _queue2 = _interopRequireDefault(_queue); 17 | 18 | var _wrapAsync = require('./internal/wrapAsync.js'); 19 | 20 | var _wrapAsync2 = _interopRequireDefault(_wrapAsync); 21 | 22 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 23 | 24 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jake/lib/task/directory_task.js: -------------------------------------------------------------------------------- 1 | let fs = require('fs'); 2 | let FileTask = require('./file_task').FileTask; 3 | 4 | /** 5 | @name jake 6 | @namespace jake 7 | */ 8 | /** 9 | @name jake.DirectoryTask 10 | @constructor 11 | @augments EventEmitter 12 | @augments jake.Task 13 | @augments jake.FileTask 14 | @description A Jake DirectoryTask 15 | 16 | @param {String} name The name of the directory to create. 17 | */ 18 | class DirectoryTask extends FileTask { 19 | constructor(...args) { 20 | super(...args); 21 | if (fs.existsSync(this.name)) { 22 | this.updateModTime(); 23 | } 24 | else { 25 | this.modTime = null; 26 | } 27 | } 28 | } 29 | 30 | exports.DirectoryTask = DirectoryTask; 31 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/bcryptjs/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bcryptjs", 3 | "description": "Optimized bcrypt in plain JavaScript with zero dependencies.", 4 | "version": "2.4.3", 5 | "main": "dist/bcrypt.min.js", 6 | "license": "New-BSD", 7 | "homepage": "http://dcode.io/", 8 | "repository": { 9 | "type": "git", 10 | "url": "git://github.com/dcodeIO/bcrypt.js.git" 11 | }, 12 | "keywords": ["bcrypt", "password", "auth", "authentication", "encryption", "crypt", "crypto"], 13 | "dependencies": {}, 14 | "devDependencies": {}, 15 | "ignore": [ 16 | "**/.*", 17 | "node_modules", 18 | "bower_components", 19 | "test", 20 | "tests" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/color-name/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "color-name", 3 | "version": "1.1.4", 4 | "description": "A list of color names and its values", 5 | "main": "index.js", 6 | "files": [ 7 | "index.js" 8 | ], 9 | "scripts": { 10 | "test": "node test.js" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "git@github.com:colorjs/color-name.git" 15 | }, 16 | "keywords": [ 17 | "color-name", 18 | "color", 19 | "color-keyword", 20 | "keyword" 21 | ], 22 | "author": "DY ", 23 | "license": "MIT", 24 | "bugs": { 25 | "url": "https://github.com/colorjs/color-name/issues" 26 | }, 27 | "homepage": "https://github.com/colorjs/color-name" 28 | } 29 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/PoolSelector.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * PoolSelector 4 | */ 5 | var PoolSelector = module.exports = {}; 6 | 7 | PoolSelector.RR = function PoolSelectorRoundRobin() { 8 | var index = 0; 9 | 10 | return function(clusterIds) { 11 | if (index >= clusterIds.length) { 12 | index = 0; 13 | } 14 | 15 | var clusterId = clusterIds[index++]; 16 | 17 | return clusterId; 18 | }; 19 | }; 20 | 21 | PoolSelector.RANDOM = function PoolSelectorRandom() { 22 | return function(clusterIds) { 23 | return clusterIds[Math.floor(Math.random() * clusterIds.length)]; 24 | }; 25 | }; 26 | 27 | PoolSelector.ORDER = function PoolSelectorOrder() { 28 | return function(clusterIds) { 29 | return clusterIds[0]; 30 | }; 31 | }; 32 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = LocalInfileRequestPacket; 2 | function LocalInfileRequestPacket(options) { 3 | options = options || {}; 4 | 5 | this.filename = options.filename; 6 | } 7 | 8 | LocalInfileRequestPacket.prototype.parse = function parse(parser) { 9 | if (parser.parseLengthCodedNumber() !== null) { 10 | var err = new TypeError('Received invalid field length'); 11 | err.code = 'PARSER_INVALID_FIELD_LENGTH'; 12 | throw err; 13 | } 14 | 15 | this.filename = parser.parsePacketTerminatedString(); 16 | }; 17 | 18 | LocalInfileRequestPacket.prototype.write = function write(writer) { 19 | writer.writeLengthCodedNumber(null); 20 | writer.writeString(this.filename); 21 | }; 22 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/bcryptjs/dist/README.md: -------------------------------------------------------------------------------- 1 | Distributions 2 | ============= 3 | bcrypt.js is available as the following distributions: 4 | 5 | * **[bcrypt.js](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.js)** 6 | contains the commented source code. 7 | 8 | * **[bcrypt.min.js](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.min.js)** 9 | has been compiled with Closure Compiler using advanced optimizations. 10 | 11 | * **[bcrypt.min.map](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.min.map)** 12 | contains the source map generated by Closure Compiler. 13 | 14 | * **[bcrypt.min.js.gz](https://github.com/dcodeIO/bcrypt.js/blob/master/dist/bcrypt.min.js.gz)** 15 | has also been gzipped using `-9`. 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/bcryptjs/src/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bcryptjs", 3 | "description": "Optimized bcrypt in plain JavaScript with zero dependencies.", 4 | "version": /*?== VERSION */, 5 | "main": "dist/bcrypt.min.js", 6 | "license": "New-BSD", 7 | "homepage": "http://dcode.io/", 8 | "repository": { 9 | "type": "git", 10 | "url": "git://github.com/dcodeIO/bcrypt.js.git" 11 | }, 12 | "keywords": ["bcrypt", "password", "auth", "authentication", "encryption", "crypt", "crypto"], 13 | "dependencies": {}, 14 | "devDependencies": {}, 15 | "ignore": [ 16 | "**/.*", 17 | "node_modules", 18 | "bower_components", 19 | "test", 20 | "tests" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/dotenv/lib/env-options.js: -------------------------------------------------------------------------------- 1 | // ../config.js accepts options via environment variables 2 | const options = {} 3 | 4 | if (process.env.DOTENV_CONFIG_ENCODING != null) { 5 | options.encoding = process.env.DOTENV_CONFIG_ENCODING 6 | } 7 | 8 | if (process.env.DOTENV_CONFIG_PATH != null) { 9 | options.path = process.env.DOTENV_CONFIG_PATH 10 | } 11 | 12 | if (process.env.DOTENV_CONFIG_DEBUG != null) { 13 | options.debug = process.env.DOTENV_CONFIG_DEBUG 14 | } 15 | 16 | if (process.env.DOTENV_CONFIG_OVERRIDE != null) { 17 | options.override = process.env.DOTENV_CONFIG_OVERRIDE 18 | } 19 | 20 | if (process.env.DOTENV_CONFIG_DOTENV_KEY != null) { 21 | options.DOTENV_KEY = process.env.DOTENV_CONFIG_DOTENV_KEY 22 | } 23 | 24 | module.exports = options 25 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/gopd/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | var gOPD = require('../'); 5 | 6 | test('gOPD', function (t) { 7 | t.test('supported', { skip: !gOPD }, function (st) { 8 | st.equal(typeof gOPD, 'function', 'is a function'); 9 | 10 | var obj = { x: 1 }; 11 | st.ok('x' in obj, 'property exists'); 12 | 13 | var desc = gOPD(obj, 'x'); 14 | st.deepEqual( 15 | desc, 16 | { 17 | configurable: true, 18 | enumerable: true, 19 | value: 1, 20 | writable: true 21 | }, 22 | 'descriptor is as expected' 23 | ); 24 | 25 | st.end(); 26 | }); 27 | 28 | t.test('not supported', { skip: gOPD }, function (st) { 29 | st.notOk(gOPD, 'is falsy'); 30 | 31 | st.end(); 32 | }); 33 | 34 | t.end(); 35 | }); 36 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jake/test/unit/jakefile.js: -------------------------------------------------------------------------------- 1 | 2 | task('foo', function () { 3 | console.log('ran top-level foo'); 4 | }); 5 | 6 | task('bar', function () { 7 | console.log('ran top-level bar'); 8 | }); 9 | 10 | task('zerb', function () { 11 | console.log('ran zerb'); 12 | }); 13 | 14 | namespace('zooby', function () { 15 | task('zerp', function () {}); 16 | 17 | task('derp', ['zerp'], function () {}); 18 | 19 | namespace('frang', function () { 20 | 21 | namespace('w00t', function () { 22 | task('bar', function () { 23 | console.log('ran zooby:frang:w00t:bar'); 24 | }); 25 | }); 26 | 27 | task('asdf', function () {}); 28 | }); 29 | 30 | }); 31 | 32 | namespace('hurr', function () { 33 | namespace('durr'); 34 | }); 35 | 36 | 37 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/application-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | nginx.ingress.kubernetes.io/rewrite-target: / 7 | name: apps-ingress 8 | spec: 9 | rules: 10 | - host: loginapp.duckdns.org 11 | http: 12 | paths: 13 | - backend: 14 | service: 15 | name: app-svc 16 | port: 17 | number: 5000 18 | path: / 19 | pathType: Prefix 20 | - host: dbmanage.duckdns.org 21 | http: 22 | paths: 23 | - backend: 24 | service: 25 | name: phpmyadmin-svc 26 | port: 27 | number: 8099 28 | path: / 29 | pathType: Prefix 30 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-symbols/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | var hasSymbols = require('../'); 5 | var runSymbolTests = require('./tests'); 6 | 7 | test('interface', function (t) { 8 | t.equal(typeof hasSymbols, 'function', 'is a function'); 9 | t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean'); 10 | t.end(); 11 | }); 12 | 13 | test('Symbols are supported', { skip: !hasSymbols() }, function (t) { 14 | runSymbolTests(t); 15 | t.end(); 16 | }); 17 | 18 | test('Symbols are not supported', { skip: hasSymbols() }, function (t) { 19 | t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined'); 20 | t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist'); 21 | t.end(); 22 | }); 23 | -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/application-ingress.yaml.ok: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | nginx.ingress.kubernetes.io/rewrite-target: / 7 | name: apps-ingress 8 | spec: 9 | rules: 10 | - host: loginapp.duckdns.org 11 | http: 12 | paths: 13 | - backend: 14 | service: 15 | name: app-svc 16 | port: 17 | number: 5000 18 | path: / 19 | pathType: Prefix 20 | - host: dbmanage.duckdns.org 21 | http: 22 | paths: 23 | - backend: 24 | service: 25 | name: phpmyadmin-svc 26 | port: 27 | number: 8099 28 | path: / 29 | pathType: Prefix 30 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/filelist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "filelist", 3 | "version": "1.0.4", 4 | "description": "Lazy-evaluating list of files, based on globs or regex patterns", 5 | "main": "index.js", 6 | "types": "index.d.ts", 7 | "scripts": { 8 | "test": "jake test" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git://github.com/mde/filelist.git" 13 | }, 14 | "keywords": [ 15 | "file", 16 | "utility", 17 | "glob" 18 | ], 19 | "author": "Matthew Eernisse (http://fleegix.org)", 20 | "license": "Apache-2.0", 21 | "bugs": { 22 | "url": "https://github.com/mde/filelist/issues" 23 | }, 24 | "homepage": "https://github.com/mde/filelist", 25 | "dependencies": { 26 | "minimatch": "^5.0.1" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/qs/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 4 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | max_line_length = 160 11 | quote_type = single 12 | 13 | [test/*] 14 | max_line_length = off 15 | 16 | [LICENSE.md] 17 | indent_size = off 18 | 19 | [*.md] 20 | max_line_length = off 21 | 22 | [*.json] 23 | max_line_length = off 24 | 25 | [Makefile] 26 | max_line_length = off 27 | 28 | [CHANGELOG.md] 29 | indent_style = space 30 | indent_size = 2 31 | 32 | [LICENSE] 33 | indent_size = 2 34 | max_line_length = off 35 | 36 | [coverage/**/*] 37 | indent_size = off 38 | indent_style = off 39 | indent = off 40 | max_line_length = off 41 | 42 | [.nycrc] 43 | indent_style = tab 44 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/unmemoize.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = unmemoize; 7 | /** 8 | * Undoes a [memoize]{@link module:Utils.memoize}d function, reverting it to the original, 9 | * unmemoized form. Handy for testing. 10 | * 11 | * @name unmemoize 12 | * @static 13 | * @memberOf module:Utils 14 | * @method 15 | * @see [async.memoize]{@link module:Utils.memoize} 16 | * @category Util 17 | * @param {AsyncFunction} fn - the memoized function 18 | * @returns {AsyncFunction} a function that calls the original unmemoized function 19 | */ 20 | function unmemoize(fn) { 21 | return (...args) => { 22 | return (fn.unmemoized || fn)(...args); 23 | }; 24 | } 25 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/Kubernets_config_files/part2/app-chart/templates/application-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | nginx.ingress.kubernetes.io/rewrite-target: / 7 | name: apps-ingress 8 | spec: 9 | rules: 10 | - host: loginapp.duckdns.org 11 | http: 12 | paths: 13 | - backend: 14 | service: 15 | name: app-svc 16 | port: 17 | number: 5000 18 | path: / 19 | pathType: Prefix 20 | - host: dbmanage.duckdns.org 21 | http: 22 | paths: 23 | - backend: 24 | service: 25 | name: phpmyadmin-svc 26 | port: 27 | number: 8099 28 | path: / 29 | pathType: Prefix 30 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/get-intrinsic/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "env": { 7 | "es6": true, 8 | "es2017": true, 9 | "es2020": true, 10 | "es2021": true, 11 | "es2022": true, 12 | }, 13 | 14 | "rules": { 15 | "array-bracket-newline": 0, 16 | "complexity": 0, 17 | "eqeqeq": [2, "allow-null"], 18 | "func-name-matching": 0, 19 | "id-length": 0, 20 | "max-lines": 0, 21 | "max-lines-per-function": [2, 90], 22 | "max-params": [2, 4], 23 | "max-statements": 0, 24 | "max-statements-per-line": [2, { "max": 2 }], 25 | "multiline-comment-style": 0, 26 | "no-magic-numbers": 0, 27 | "sort-keys": 0, 28 | }, 29 | 30 | "overrides": [ 31 | { 32 | "files": "test/**", 33 | "rules": { 34 | "new-cap": 0, 35 | }, 36 | }, 37 | ], 38 | } 39 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/Field.js: -------------------------------------------------------------------------------- 1 | var Types = require('../constants/types'); 2 | 3 | module.exports = Field; 4 | function Field(options) { 5 | options = options || {}; 6 | 7 | this.parser = options.parser; 8 | this.packet = options.packet; 9 | this.db = options.packet.db; 10 | this.table = options.packet.table; 11 | this.name = options.packet.name; 12 | this.type = Types[options.packet.type]; 13 | this.length = options.packet.length; 14 | } 15 | 16 | Field.prototype.string = function () { 17 | return this.parser.parseLengthCodedString(); 18 | }; 19 | 20 | Field.prototype.buffer = function () { 21 | return this.parser.parseLengthCodedBuffer(); 22 | }; 23 | 24 | Field.prototype.geometry = function () { 25 | return this.parser.parseGeometryValue(); 26 | }; 27 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/setprototypeof/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Wes Todd 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any 4 | purpose with or without fee is hereby granted, provided that the above 5 | copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 10 | SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 12 | OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 13 | CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | declare module "ecdsa-sig-formatter" { 4 | /** 5 | * Convert the ASN.1/DER encoded signature to a JOSE-style concatenated signature. Returns a base64 url encoded String. 6 | * If signature is a String, it should be base64 encoded 7 | * alg must be one of ES256, ES384 or ES512 8 | */ 9 | export function derToJose(signature: Buffer | string, alg: string): string; 10 | 11 | /** 12 | * Convert the JOSE-style concatenated signature to an ASN.1/DER encoded signature. Returns a Buffer 13 | * If signature is a String, it should be base64 url encoded 14 | * alg must be one of ES256, ES384 or ES512 15 | */ 16 | export function joseToDer(signature: Buffer | string, alg: string): Buffer 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/setprototypeof/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | /* eslint-env mocha */ 3 | /* eslint no-proto: 0 */ 4 | var assert = require('assert') 5 | var setPrototypeOf = require('..') 6 | 7 | describe('setProtoOf(obj, proto)', function () { 8 | it('should merge objects', function () { 9 | var obj = { a: 1, b: 2 } 10 | var proto = { b: 3, c: 4 } 11 | var mergeObj = setPrototypeOf(obj, proto) 12 | 13 | if (Object.getPrototypeOf) { 14 | assert.strictEqual(Object.getPrototypeOf(obj), proto) 15 | } else if ({ __proto__: [] } instanceof Array) { 16 | assert.strictEqual(obj.__proto__, proto) 17 | } else { 18 | assert.strictEqual(obj.a, 1) 19 | assert.strictEqual(obj.b, 2) 20 | assert.strictEqual(obj.c, 4) 21 | } 22 | assert.strictEqual(mergeObj, obj) 23 | }) 24 | }) 25 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/async/internal/reject.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, "__esModule", { 4 | value: true 5 | }); 6 | exports.default = reject; 7 | 8 | var _filter = require('./filter.js'); 9 | 10 | var _filter2 = _interopRequireDefault(_filter); 11 | 12 | var _wrapAsync = require('./wrapAsync.js'); 13 | 14 | var _wrapAsync2 = _interopRequireDefault(_wrapAsync); 15 | 16 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 17 | 18 | function reject(eachfn, arr, _iteratee, callback) { 19 | const iteratee = (0, _wrapAsync2.default)(_iteratee); 20 | return (0, _filter2.default)(eachfn, arr, (value, cb) => { 21 | iteratee(value, (err, v) => { 22 | cb(err, !v); 23 | }); 24 | }, callback); 25 | } 26 | module.exports = exports.default; -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.once/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lodash.once", 3 | "version": "4.1.1", 4 | "description": "The lodash method `_.once` exported as a module.", 5 | "homepage": "https://lodash.com/", 6 | "icon": "https://lodash.com/icon.svg", 7 | "license": "MIT", 8 | "keywords": "lodash-modularized, once", 9 | "author": "John-David Dalton (http://allyoucanleet.com/)", 10 | "contributors": [ 11 | "John-David Dalton (http://allyoucanleet.com/)", 12 | "Blaine Bublitz (https://github.com/phated)", 13 | "Mathias Bynens (https://mathiasbynens.be/)" 14 | ], 15 | "repository": "lodash/lodash", 16 | "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/iconv-lite/encodings/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // Update this array if you add/rename/remove files in this directory. 4 | // We support Browserify by skipping automatic module discovery and requiring modules directly. 5 | var modules = [ 6 | require("./internal"), 7 | require("./utf16"), 8 | require("./utf7"), 9 | require("./sbcs-codec"), 10 | require("./sbcs-data"), 11 | require("./sbcs-data-generated"), 12 | require("./dbcs-codec"), 13 | require("./dbcs-data"), 14 | ]; 15 | 16 | // Put all encoding/alias/codec definitions to single object and export it. 17 | for (var i = 0; i < modules.length; i++) { 18 | var module = modules[i]; 19 | for (var enc in module) 20 | if (Object.prototype.hasOwnProperty.call(module, enc)) 21 | exports[enc] = module[enc]; 22 | } 23 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jake/test/integration/publish_task.js: -------------------------------------------------------------------------------- 1 | let assert = require('assert'); 2 | let exec = require('child_process').execSync; 3 | 4 | const PROJECT_DIR = process.env.PROJECT_DIR; 5 | const JAKE_CMD = `${PROJECT_DIR}/bin/cli.js`; 6 | 7 | suite('publishTask', function () { 8 | 9 | this.timeout(7000); 10 | 11 | test('default task', function () { 12 | let out = exec(`${JAKE_CMD} -q publish`).toString().trim(); 13 | let expected = [ 14 | 'Fetched remote tags.' 15 | , 'On branch v0.0' 16 | , 'Bumped version number to v0.0.2.' 17 | , 'Created package for zerb v0.0.2' 18 | , 'Publishing zerb v0.0.2' 19 | , './pkg/zerb-v0.0.2.tar.gz' 20 | , 'BOOM! Published.' 21 | , 'Cleaned up package' 22 | ].join('\n'); 23 | assert.equal(expected, out); 24 | }); 25 | 26 | }); 27 | 28 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/jws/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jws", 3 | "version": "3.2.2", 4 | "description": "Implementation of JSON Web Signatures", 5 | "main": "index.js", 6 | "directories": { 7 | "test": "test" 8 | }, 9 | "scripts": { 10 | "test": "make test" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "git://github.com/brianloveswords/node-jws.git" 15 | }, 16 | "keywords": [ 17 | "jws", 18 | "json", 19 | "web", 20 | "signatures" 21 | ], 22 | "author": "Brian J Brennan", 23 | "license": "MIT", 24 | "readmeFilename": "readme.md", 25 | "gitHead": "c0f6b27bcea5a2ad2e304d91c2e842e4076a6b03", 26 | "dependencies": { 27 | "jwa": "^1.4.1", 28 | "safe-buffer": "^5.0.1" 29 | }, 30 | "devDependencies": { 31 | "semver": "^5.1.0", 32 | "tape": "~2.14.0" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isnumber/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lodash.isnumber", 3 | "version": "3.0.3", 4 | "description": "The lodash method `_.isNumber` exported as a module.", 5 | "homepage": "https://lodash.com/", 6 | "icon": "https://lodash.com/icon.svg", 7 | "license": "MIT", 8 | "keywords": "lodash-modularized, isnumber", 9 | "author": "John-David Dalton (http://allyoucanleet.com/)", 10 | "contributors": [ 11 | "John-David Dalton (http://allyoucanleet.com/)", 12 | "Blaine Bublitz (https://github.com/phated)", 13 | "Mathias Bynens (https://mathiasbynens.be/)" 14 | ], 15 | "repository": "lodash/lodash", 16 | "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isstring/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lodash.isstring", 3 | "version": "4.0.1", 4 | "description": "The lodash method `_.isString` exported as a module.", 5 | "homepage": "https://lodash.com/", 6 | "icon": "https://lodash.com/icon.svg", 7 | "license": "MIT", 8 | "keywords": "lodash-modularized, isstring", 9 | "author": "John-David Dalton (http://allyoucanleet.com/)", 10 | "contributors": [ 11 | "John-David Dalton (http://allyoucanleet.com/)", 12 | "Blaine Bublitz (https://github.com/phated)", 13 | "Mathias Bynens (https://mathiasbynens.be/)" 14 | ], 15 | "repository": "lodash/lodash", 16 | "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/minimatch/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/object-inspect/test/fakes.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var inspect = require('../'); 4 | var test = require('tape'); 5 | var hasToStringTag = require('has-tostringtag/shams')(); 6 | var forEach = require('for-each'); 7 | 8 | test('fakes', { skip: !hasToStringTag }, function (t) { 9 | forEach([ 10 | 'Array', 11 | 'Boolean', 12 | 'Date', 13 | 'Error', 14 | 'Number', 15 | 'RegExp', 16 | 'String' 17 | ], function (expected) { 18 | var faker = {}; 19 | faker[Symbol.toStringTag] = expected; 20 | 21 | t.equal( 22 | inspect(faker), 23 | '{ [Symbol(Symbol.toStringTag)]: \'' + expected + '\' }', 24 | 'faker masquerading as ' + expected + ' is not shown as one' 25 | ); 26 | }); 27 | 28 | t.end(); 29 | }); 30 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/semver/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/util-deprecate/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "util-deprecate", 3 | "version": "1.0.2", 4 | "description": "The Node.js `util.deprecate()` function with browser support", 5 | "main": "node.js", 6 | "browser": "browser.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git://github.com/TooTallNate/util-deprecate.git" 13 | }, 14 | "keywords": [ 15 | "util", 16 | "deprecate", 17 | "browserify", 18 | "browser", 19 | "node" 20 | ], 21 | "author": "Nathan Rajlich (http://n8.io/)", 22 | "license": "MIT", 23 | "bugs": { 24 | "url": "https://github.com/TooTallNate/util-deprecate/issues" 25 | }, 26 | "homepage": "https://github.com/TooTallNate/util-deprecate" 27 | } 28 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.includes/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lodash.includes", 3 | "version": "4.3.0", 4 | "description": "The lodash method `_.includes` exported as a module.", 5 | "homepage": "https://lodash.com/", 6 | "icon": "https://lodash.com/icon.svg", 7 | "license": "MIT", 8 | "keywords": "lodash-modularized, includes", 9 | "author": "John-David Dalton (http://allyoucanleet.com/)", 10 | "contributors": [ 11 | "John-David Dalton (http://allyoucanleet.com/)", 12 | "Blaine Bublitz (https://github.com/phated)", 13 | "Mathias Bynens (https://mathiasbynens.be/)" 14 | ], 15 | "repository": "lodash/lodash", 16 | "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isboolean/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lodash.isboolean", 3 | "version": "3.0.3", 4 | "description": "The lodash method `_.isBoolean` exported as a module.", 5 | "homepage": "https://lodash.com/", 6 | "icon": "https://lodash.com/icon.svg", 7 | "license": "MIT", 8 | "keywords": "lodash-modularized, isboolean", 9 | "author": "John-David Dalton (http://allyoucanleet.com/)", 10 | "contributors": [ 11 | "John-David Dalton (http://allyoucanleet.com/)", 12 | "Blaine Bublitz (https://github.com/phated)", 13 | "Mathias Bynens (https://mathiasbynens.be/)" 14 | ], 15 | "repository": "lodash/lodash", 16 | "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = AuthSwitchRequestPacket; 2 | function AuthSwitchRequestPacket(options) { 3 | options = options || {}; 4 | 5 | this.status = 0xfe; 6 | this.authMethodName = options.authMethodName; 7 | this.authMethodData = options.authMethodData; 8 | } 9 | 10 | AuthSwitchRequestPacket.prototype.parse = function parse(parser) { 11 | this.status = parser.parseUnsignedNumber(1); 12 | this.authMethodName = parser.parseNullTerminatedString(); 13 | this.authMethodData = parser.parsePacketTerminatedBuffer(); 14 | }; 15 | 16 | AuthSwitchRequestPacket.prototype.write = function write(writer) { 17 | writer.writeUnsignedNumber(1, this.status); 18 | writer.writeNullTerminatedString(this.authMethodName); 19 | writer.writeBuffer(this.authMethodData); 20 | }; 21 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isinteger/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lodash.isinteger", 3 | "version": "4.0.4", 4 | "description": "The lodash method `_.isInteger` exported as a module.", 5 | "homepage": "https://lodash.com/", 6 | "icon": "https://lodash.com/icon.svg", 7 | "license": "MIT", 8 | "keywords": "lodash-modularized, isinteger", 9 | "author": "John-David Dalton (http://allyoucanleet.com/)", 10 | "contributors": [ 11 | "John-David Dalton (http://allyoucanleet.com/)", 12 | "Blaine Bublitz (https://github.com/phated)", 13 | "Mathias Bynens (https://mathiasbynens.be/)" 14 | ], 15 | "repository": "lodash/lodash", 16 | "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/body-parser/node_modules/qs/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 4 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | max_line_length = 160 11 | quote_type = single 12 | 13 | [test/*] 14 | max_line_length = off 15 | 16 | [LICENSE.md] 17 | indent_size = off 18 | 19 | [*.md] 20 | max_line_length = off 21 | 22 | [*.json] 23 | max_line_length = off 24 | 25 | [Makefile] 26 | max_line_length = off 27 | 28 | [CHANGELOG.md] 29 | indent_style = space 30 | indent_size = 2 31 | 32 | [LICENSE] 33 | indent_size = 2 34 | max_line_length = off 35 | 36 | [coverage/**/*] 37 | indent_size = off 38 | indent_style = off 39 | indent = off 40 | max_line_length = off 41 | 42 | [.nycrc] 43 | indent_style = tab 44 | 45 | [tea.yaml] 46 | indent_size = 2 47 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-symbols/test/shams/get-own-property-symbols.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | 5 | if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') { 6 | test('has native Symbol support', function (t) { 7 | t.equal(typeof Symbol, 'function'); 8 | t.equal(typeof Symbol(), 'symbol'); 9 | t.end(); 10 | }); 11 | return; 12 | } 13 | 14 | var hasSymbols = require('../../shams'); 15 | 16 | test('polyfilled Symbols', function (t) { 17 | /* eslint-disable global-require */ 18 | t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling'); 19 | 20 | require('get-own-property-symbols'); 21 | 22 | require('../tests')(t); 23 | 24 | var hasSymbolsAfter = hasSymbols(); 25 | t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling'); 26 | /* eslint-enable global-require */ 27 | t.end(); 28 | }); 29 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/lodash.isplainobject/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lodash.isplainobject", 3 | "version": "4.0.6", 4 | "description": "The lodash method `_.isPlainObject` exported as a module.", 5 | "homepage": "https://lodash.com/", 6 | "icon": "https://lodash.com/icon.svg", 7 | "license": "MIT", 8 | "keywords": "lodash-modularized, isplainobject", 9 | "author": "John-David Dalton (http://allyoucanleet.com/)", 10 | "contributors": [ 11 | "John-David Dalton (http://allyoucanleet.com/)", 12 | "Blaine Bublitz (https://github.com/phated)", 13 | "Mathias Bynens (https://mathiasbynens.be/)" 14 | ], 15 | "repository": "lodash/lodash", 16 | "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } 17 | } 18 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/minimatch/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Isaac Z. Schlueter (http://blog.izs.me)", 3 | "name": "minimatch", 4 | "description": "a glob matcher in javascript", 5 | "version": "3.1.2", 6 | "publishConfig": { 7 | "tag": "v3-legacy" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git://github.com/isaacs/minimatch.git" 12 | }, 13 | "main": "minimatch.js", 14 | "scripts": { 15 | "test": "tap", 16 | "preversion": "npm test", 17 | "postversion": "npm publish", 18 | "postpublish": "git push origin --all; git push origin --tags" 19 | }, 20 | "engines": { 21 | "node": "*" 22 | }, 23 | "dependencies": { 24 | "brace-expansion": "^1.1.7" 25 | }, 26 | "devDependencies": { 27 | "tap": "^15.1.6" 28 | }, 29 | "license": "ISC", 30 | "files": [ 31 | "minimatch.js" 32 | ] 33 | } 34 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/packets/EofPacket.js: -------------------------------------------------------------------------------- 1 | module.exports = EofPacket; 2 | function EofPacket(options) { 3 | options = options || {}; 4 | 5 | this.fieldCount = undefined; 6 | this.warningCount = options.warningCount; 7 | this.serverStatus = options.serverStatus; 8 | this.protocol41 = options.protocol41; 9 | } 10 | 11 | EofPacket.prototype.parse = function(parser) { 12 | this.fieldCount = parser.parseUnsignedNumber(1); 13 | if (this.protocol41) { 14 | this.warningCount = parser.parseUnsignedNumber(2); 15 | this.serverStatus = parser.parseUnsignedNumber(2); 16 | } 17 | }; 18 | 19 | EofPacket.prototype.write = function(writer) { 20 | writer.writeUnsignedNumber(1, 0xfe); 21 | if (this.protocol41) { 22 | writer.writeUnsignedNumber(2, this.warningCount); 23 | writer.writeUnsignedNumber(2, this.serverStatus); 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/filelist/node_modules/minimatch/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/mysql/lib/protocol/Timer.js: -------------------------------------------------------------------------------- 1 | var Timers = require('timers'); 2 | 3 | module.exports = Timer; 4 | function Timer(object) { 5 | this._object = object; 6 | this._timeout = null; 7 | } 8 | 9 | Timer.prototype.active = function active() { 10 | if (this._timeout) { 11 | if (this._timeout.refresh) { 12 | this._timeout.refresh(); 13 | } else { 14 | Timers.active(this._timeout); 15 | } 16 | } 17 | }; 18 | 19 | Timer.prototype.start = function start(msecs) { 20 | this.stop(); 21 | this._timeout = Timers.setTimeout(this._onTimeout.bind(this), msecs); 22 | }; 23 | 24 | Timer.prototype.stop = function stop() { 25 | if (this._timeout) { 26 | Timers.clearTimeout(this._timeout); 27 | this._timeout = null; 28 | } 29 | }; 30 | 31 | Timer.prototype._onTimeout = function _onTimeout() { 32 | return this._object._onTimeout(); 33 | }; 34 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-symbols/test/shams/core-js.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | 5 | if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') { 6 | test('has native Symbol support', function (t) { 7 | t.equal(typeof Symbol, 'function'); 8 | t.equal(typeof Symbol(), 'symbol'); 9 | t.end(); 10 | }); 11 | return; 12 | } 13 | 14 | var hasSymbols = require('../../shams'); 15 | 16 | test('polyfilled Symbols', function (t) { 17 | /* eslint-disable global-require */ 18 | t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling'); 19 | require('core-js/fn/symbol'); 20 | require('core-js/fn/symbol/to-string-tag'); 21 | 22 | require('../tests')(t); 23 | 24 | var hasSymbolsAfter = hasSymbols(); 25 | t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling'); 26 | /* eslint-enable global-require */ 27 | t.end(); 28 | }); 29 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/readable-stream/readable.js: -------------------------------------------------------------------------------- 1 | var Stream = require('stream'); 2 | if (process.env.READABLE_STREAM === 'disable' && Stream) { 3 | module.exports = Stream; 4 | exports = module.exports = Stream.Readable; 5 | exports.Readable = Stream.Readable; 6 | exports.Writable = Stream.Writable; 7 | exports.Duplex = Stream.Duplex; 8 | exports.Transform = Stream.Transform; 9 | exports.PassThrough = Stream.PassThrough; 10 | exports.Stream = Stream; 11 | } else { 12 | exports = module.exports = require('./lib/_stream_readable.js'); 13 | exports.Stream = Stream || exports; 14 | exports.Readable = exports; 15 | exports.Writable = require('./lib/_stream_writable.js'); 16 | exports.Duplex = require('./lib/_stream_duplex.js'); 17 | exports.Transform = require('./lib/_stream_transform.js'); 18 | exports.PassThrough = require('./lib/_stream_passthrough.js'); 19 | } 20 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/has-flag/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag. 3 | 4 | @param flag - CLI flag to look for. The `--` prefix is optional. 5 | @param argv - CLI arguments. Default: `process.argv`. 6 | @returns Whether the flag exists. 7 | 8 | @example 9 | ``` 10 | // $ ts-node foo.ts -f --unicorn --foo=bar -- --rainbow 11 | 12 | // foo.ts 13 | import hasFlag = require('has-flag'); 14 | 15 | hasFlag('unicorn'); 16 | //=> true 17 | 18 | hasFlag('--unicorn'); 19 | //=> true 20 | 21 | hasFlag('f'); 22 | //=> true 23 | 24 | hasFlag('-f'); 25 | //=> true 26 | 27 | hasFlag('foo=bar'); 28 | //=> true 29 | 30 | hasFlag('foo'); 31 | //=> false 32 | 33 | hasFlag('rainbow'); 34 | //=> false 35 | ``` 36 | */ 37 | declare function hasFlag(flag: string, argv?: string[]): boolean; 38 | 39 | export = hasFlag; 40 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/ms/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ms", 3 | "version": "2.0.0", 4 | "description": "Tiny milisecond conversion utility", 5 | "repository": "zeit/ms", 6 | "main": "./index", 7 | "files": [ 8 | "index.js" 9 | ], 10 | "scripts": { 11 | "precommit": "lint-staged", 12 | "lint": "eslint lib/* bin/*", 13 | "test": "mocha tests.js" 14 | }, 15 | "eslintConfig": { 16 | "extends": "eslint:recommended", 17 | "env": { 18 | "node": true, 19 | "es6": true 20 | } 21 | }, 22 | "lint-staged": { 23 | "*.js": [ 24 | "npm run lint", 25 | "prettier --single-quote --write", 26 | "git add" 27 | ] 28 | }, 29 | "license": "MIT", 30 | "devDependencies": { 31 | "eslint": "3.19.0", 32 | "expect.js": "0.3.1", 33 | "husky": "0.13.3", 34 | "lint-staged": "3.4.1", 35 | "mocha": "3.4.1" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/cookie-signature/History.md: -------------------------------------------------------------------------------- 1 | 1.0.6 / 2015-02-03 2 | ================== 3 | 4 | * use `npm test` instead of `make test` to run tests 5 | * clearer assertion messages when checking input 6 | 7 | 8 | 1.0.5 / 2014-09-05 9 | ================== 10 | 11 | * add license to package.json 12 | 13 | 1.0.4 / 2014-06-25 14 | ================== 15 | 16 | * corrected avoidance of timing attacks (thanks @tenbits!) 17 | 18 | 1.0.3 / 2014-01-28 19 | ================== 20 | 21 | * [incorrect] fix for timing attacks 22 | 23 | 1.0.2 / 2014-01-28 24 | ================== 25 | 26 | * fix missing repository warning 27 | * fix typo in test 28 | 29 | 1.0.1 / 2013-04-15 30 | ================== 31 | 32 | * Revert "Changed underlying HMAC algo. to sha512." 33 | * Revert "Fix for timing attacks on MAC verification." 34 | 35 | 0.0.1 / 2010-01-03 36 | ================== 37 | 38 | * Initial release 39 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | if (superCtor) { 5 | ctor.super_ = superCtor 6 | ctor.prototype = Object.create(superCtor.prototype, { 7 | constructor: { 8 | value: ctor, 9 | enumerable: false, 10 | writable: true, 11 | configurable: true 12 | } 13 | }) 14 | } 15 | }; 16 | } else { 17 | // old school shim for old browsers 18 | module.exports = function inherits(ctor, superCtor) { 19 | if (superCtor) { 20 | ctor.super_ = superCtor 21 | var TempCtor = function () {} 22 | TempCtor.prototype = superCtor.prototype 23 | ctor.prototype = new TempCtor() 24 | ctor.prototype.constructor = ctor 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /4-two-tier-app/APP-CODE/node_project/node_modules/ipaddr.js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ipaddr.js", 3 | "description": "A library for manipulating IPv4 and IPv6 addresses in JavaScript.", 4 | "version": "1.9.1", 5 | "author": "whitequark ", 6 | "directories": { 7 | "lib": "./lib" 8 | }, 9 | "dependencies": {}, 10 | "devDependencies": { 11 | "coffee-script": "~1.12.6", 12 | "nodeunit": "^0.11.3", 13 | "uglify-js": "~3.0.19" 14 | }, 15 | "scripts": { 16 | "test": "cake build test" 17 | }, 18 | "files": [ 19 | "lib/", 20 | "LICENSE", 21 | "ipaddr.min.js" 22 | ], 23 | "keywords": [ 24 | "ip", 25 | "ipv4", 26 | "ipv6" 27 | ], 28 | "repository": "git://github.com/whitequark/ipaddr.js", 29 | "main": "./lib/ipaddr.js", 30 | "engines": { 31 | "node": ">= 0.10" 32 | }, 33 | "license": "MIT", 34 | "types": "./lib/ipaddr.js.d.ts" 35 | } 36 | --------------------------------------------------------------------------------