make mail work

This commit is contained in:
Simon Larsen 2022-05-23 10:30:50 +01:00
parent 33190cff00
commit ef17bdf55b
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
27 changed files with 93 additions and 4 deletions

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -17,6 +17,7 @@ RUN apk update && apk add --no-cache --virtual .gyp python3 make g++
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -15,6 +15,7 @@ RUN apk update && apk add --no-cache --virtual .gyp python3 make g++
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -19,6 +19,7 @@
"express": "^4.17.3",
"gridfs-stream": "^1.1.1",
"handlebars": "^4.7.7",
"json2csv": "^5.0.7",
"jsonwebtoken": "^8.5.1",
"node-device-detector": "^2.0.0",
"nodemailer": "^6.7.3",
@ -69,6 +70,7 @@
"moment": "^2.29.2",
"nanoid": "^3.3.2",
"nanoid-dictionary": "^4.3.0",
"reflect-metadata": "^0.1.13",
"slugify": "^1.6.5",
"typeorm": "^0.3.6",
"uuid": "^8.3.2"
@ -2145,6 +2147,14 @@
"node": ">= 0.8"
}
},
"node_modules/commander": {
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
"integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==",
"engines": {
"node": ">= 6"
}
},
"node_modules/Common": {
"resolved": "../Common",
"link": true
@ -4108,6 +4118,23 @@
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
"dev": true
},
"node_modules/json2csv": {
"version": "5.0.7",
"resolved": "https://registry.npmjs.org/json2csv/-/json2csv-5.0.7.tgz",
"integrity": "sha512-YRZbUnyaJZLZUJSRi2G/MqahCyRv9n/ds+4oIetjDF3jWQA7AG7iSeKTiZiCNqtMZM7HDyt0e/W6lEnoGEmMGA==",
"dependencies": {
"commander": "^6.1.0",
"jsonparse": "^1.3.1",
"lodash.get": "^4.4.2"
},
"bin": {
"json2csv": "bin/json2csv.js"
},
"engines": {
"node": ">= 10",
"npm": ">= 6.13.0"
}
},
"node_modules/json5": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
@ -4120,6 +4147,14 @@
"node": ">=6"
}
},
"node_modules/jsonparse": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
"integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=",
"engines": [
"node >= 0.2.0"
]
},
"node_modules/jsonwebtoken": {
"version": "8.5.1",
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
@ -4219,6 +4254,11 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"node_modules/lodash.get": {
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
"integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk="
},
"node_modules/lodash.includes": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
@ -8118,6 +8158,11 @@
"delayed-stream": "~1.0.0"
}
},
"commander": {
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
"integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA=="
},
"Common": {
"version": "file:../Common",
"requires": {
@ -8131,6 +8176,7 @@
"moment": "^2.29.2",
"nanoid": "^3.3.2",
"nanoid-dictionary": "^4.3.0",
"reflect-metadata": "^0.1.13",
"slugify": "^1.6.5",
"ts-jest": "^27.1.4",
"typeorm": "^0.3.6",
@ -9639,12 +9685,27 @@
"integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
"dev": true
},
"json2csv": {
"version": "5.0.7",
"resolved": "https://registry.npmjs.org/json2csv/-/json2csv-5.0.7.tgz",
"integrity": "sha512-YRZbUnyaJZLZUJSRi2G/MqahCyRv9n/ds+4oIetjDF3jWQA7AG7iSeKTiZiCNqtMZM7HDyt0e/W6lEnoGEmMGA==",
"requires": {
"commander": "^6.1.0",
"jsonparse": "^1.3.1",
"lodash.get": "^4.4.2"
}
},
"json5": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
"dev": true
},
"jsonparse": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
"integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA="
},
"jsonwebtoken": {
"version": "8.5.1",
"resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
@ -9728,6 +9789,11 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"lodash.get": {
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
"integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk="
},
"lodash.includes": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",

View File

@ -21,6 +21,7 @@
"express": "^4.17.3",
"gridfs-stream": "^1.1.1",
"handlebars": "^4.7.7",
"json2csv": "^5.0.7",
"jsonwebtoken": "^8.5.1",
"node-device-detector": "^2.0.0",
"nodemailer": "^6.7.3",

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -15,6 +15,7 @@ RUN apk update && apk add --no-cache --virtual .gyp python3 make g++
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -74,7 +74,7 @@
"scripts": {
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts --ignore greenlock.d/* -- --staging",
"dev": "nodemon --exec 'node --inspect=0.0.0.0:9229 --require ts-node/register Index.ts'",
"test": "nyc --reporter=lcov --reporter=text mocha --exit test/index.ts",
"enterprise-test": "IS_TESTING=true nyc --reporter=lcov --reporter=text mocha --exit test/enterprise.js",
"audit": "npm audit --audit-level=low",

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -15,6 +15,7 @@ RUN apk update && apk add --no-cache --virtual .gyp python3 make g++
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src
@ -39,7 +40,7 @@ WORKDIR /usr/src/app/
COPY ./Identity/package*.json /usr/src/app/
RUN npm install
RUN npm install -g ts-node
RUN npm install -g ts-node-dev
# Bundle app source
COPY ./Identity /usr/src/app

View File

@ -15,6 +15,7 @@ RUN apk update && apk add --no-cache --virtual .gyp python3 make g++
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
# Install CommonServer
RUN mkdir /usr/src/

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -0,0 +1 @@
PORT=3190

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src
@ -36,7 +37,6 @@ WORKDIR /usr/src/app
COPY ./Mail/package*.json /usr/src/app/
RUN npm install
RUN npm install -g ts-node
RUN npm install -g ts-node-dev
# Bundle app source
COPY ./Mail /usr/src/app

View File

@ -6,7 +6,7 @@
"scripts": {
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"dev": "nodemon --exec 'node --inspect=0.0.0.0:9229 --require ts-node/register Index.ts'",
"test": "echo 'no tests'"
},
"author": "",

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src

View File

@ -11,6 +11,7 @@ RUN apk update && apk add bash && apk add curl
#Use bash shell by default
SHELL ["/bin/bash", "-c"]
RUN npm install typescript -g
RUN npm install nodemon -g
RUN mkdir /usr/src