Skip to content

Commit 9f9b1ac

Browse files
committed
✅ environment update
1 parent 8697b3c commit 9f9b1ac

File tree

2 files changed

+59
-31
lines changed

2 files changed

+59
-31
lines changed

.env.example

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# JSON web token (JWT) secret: this keeps our app's user authentication secure
2+
# This secret should be a random 20-ish character string
3+
SECRET ='1akj$fb.wf&^c3-f#we2b%cjh-2@asg*'
4+
5+
# Mongo DB
6+
# Local development
7+
MONGODB_URI='mongodb://localhost/DBNAME'
8+
9+
# Port
10+
PORT=4000
11+
12+
# Debug
13+
LOG_LEVEL='silly'
14+
15+
#Mail
16+
MAIL_ADDRESS='EMAIL ADDRESS'
17+
MAIL_SECRET='PASSWORD'
18+
19+
#Host URL
20+
HOST_URL=http://localhost:4000
21+
22+
#Agendash
23+
AGENDA_DB_COLLECTION='agendaJobs'
24+
AGENDA_POOL_TIME=10
25+
AGENDA_CONCURRENCY=1000
26+
27+
NODE_ENV='production'

package.json

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"nx": "nx",
77
"start": "nx serve",
8-
"build": "nx build",
8+
"start:prod": "pm2 start dist/apps/api/main.js -i max",
9+
"build": "nx build --configuration=production",
910
"test": "nx test",
1011
"lint": "nx workspace-lint && nx lint",
1112
"e2e": "nx e2e",
@@ -27,36 +28,36 @@
2728
},
2829
"private": true,
2930
"dependencies": {
30-
"agenda": "^2.0.2",
31-
"agendash": "^1.0.0",
32-
"axios": "^0.19.2",
33-
"bcrypt": "^5.0.0",
34-
"body-parser": "^1.18.2",
35-
"celebrate": "^9.1.0",
36-
"cors": "^2.8.4",
37-
"crypto": "^1.0.1",
38-
"dotenv": "^8.2.0",
39-
"errorhandler": "^1.5.0",
40-
"event-dispatch": "^0.4.1",
41-
"eventemitter3": "^3.1.0",
42-
"express": "^4.16.2",
43-
"express-basic-auth": "^1.2.0",
44-
"express-jwt": "^6.0.0",
45-
"googleapis": "^59.0.0",
46-
"jsonwebtoken": "^8.2.0",
47-
"method-override": "^3.0.0",
48-
"moment": "^2.23.0",
49-
"moment-timezone": "^0.5.23",
50-
"mongoose": "^5.7.5",
51-
"mongoose-beautiful-unique-validation": "^7.1.1",
52-
"mongoose-validation-error-transform": "0.0.6",
53-
"nodemailer": "^6.4.11",
54-
"pm2": "^4.5.0",
55-
"query-string": "^6.13.1",
56-
"reflect-metadata": "^0.1.12",
57-
"tesseract.js": "^2.1.3",
58-
"typedi": "^0.8.0",
59-
"winston": "^3.2.1"
31+
"agenda": "^2.0.2",
32+
"agendash": "^1.0.0",
33+
"axios": "^0.19.2",
34+
"bcrypt": "^5.0.0",
35+
"body-parser": "^1.18.2",
36+
"celebrate": "^9.1.0",
37+
"cors": "^2.8.4",
38+
"crypto": "^1.0.1",
39+
"dotenv": "^8.2.0",
40+
"errorhandler": "^1.5.0",
41+
"event-dispatch": "^0.4.1",
42+
"eventemitter3": "^3.1.0",
43+
"express": "^4.16.2",
44+
"express-basic-auth": "^1.2.0",
45+
"express-jwt": "^6.0.0",
46+
"googleapis": "^59.0.0",
47+
"jsonwebtoken": "^8.2.0",
48+
"method-override": "^3.0.0",
49+
"moment": "^2.23.0",
50+
"moment-timezone": "^0.5.23",
51+
"mongoose": "^5.7.5",
52+
"mongoose-beautiful-unique-validation": "^7.1.1",
53+
"mongoose-validation-error-transform": "0.0.6",
54+
"nodemailer": "^6.4.11",
55+
"pm2": "^4.5.0",
56+
"query-string": "^6.13.1",
57+
"reflect-metadata": "^0.1.12",
58+
"tesseract.js": "^2.1.3",
59+
"typedi": "^0.8.0",
60+
"winston": "^3.2.1"
6061
},
6162
"devDependencies": {
6263
"@nrwl/cli": "10.3.2",

0 commit comments

Comments
 (0)