-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i had solved the problem check the @todo i have tried to say the prob…
…lems see you in the meet at 10pm
- Loading branch information
mkstamin
committed
Jan 12, 2021
1 parent
04e2407
commit ad85ef2
Showing
14 changed files
with
1,066 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":"4ng3fy95isww6m29n278","userPhone":"01811559011","protocol":"http","url":"google.com","method":"GET","successCodes":[200,201,301],"timeoutSeconds":2,"state":"up","lastChecked":1610454755121} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"phone":"01811559011","id":"il5hp0qq75r23skzwn65","expires":1610456417238} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"firstName":"Mks","lastName":"Tamin ","phone":"01811559011","password":"f6f0b0edb67abeb44e1f61852484585c802034126dd191bab982777bba0cb433","tosAgreement":true,"checks":["4ng3fy95isww6m29n278"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"extends": ["prettier", "airbnb-base"], | ||
"parserOptions": { | ||
"ecmaVersion": 12 | ||
}, | ||
"env": { | ||
"commonjs": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"no-console": 0, | ||
"indent": 0, | ||
"linebreak-style": 0, | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"trailingComma": "es5", | ||
"singleQuote": true, | ||
"printWidth": 100, | ||
"tabWidth": 4, | ||
"semi": true, | ||
"endOfLine": "auto" | ||
} | ||
] | ||
}, | ||
"plugins": ["prettier"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
/* eslint-disable operator-linebreak */ | ||
// scaffolding | ||
const environments = {}; | ||
|
||
// staging environment | ||
environments.staging = { | ||
port: 3000, | ||
envName: "staging", | ||
secretKey: "key420", | ||
maxChecks: 5, | ||
twilio: { | ||
fromPhone: "+14435683965", | ||
AccountSid: "AC928722d7bb482ad76b2b909f11241f02", | ||
authToken: "fa64fcb77ef04c45f34a58dbe67ffd15", | ||
}, | ||
port: 3000, | ||
envName: 'staging', | ||
secretKey: 'key420', | ||
maxChecks: 5, | ||
twilio: { | ||
fromPhone: '', | ||
AccountSid: '', | ||
authToken: '', | ||
}, | ||
}; | ||
|
||
// production environment | ||
environments.production = { | ||
port: 5000, | ||
envName: "production", | ||
secretKey: "key420", | ||
maxChecks: 5, | ||
twilio: { | ||
fromPhone: "+14435683965", | ||
AccountSid: "AC928722d7bb482ad76b2b909f11241f02", | ||
authToken: "fa64fcb77ef04c45f34a58dbe67ffd15", | ||
}, | ||
port: 5000, | ||
envName: 'production', | ||
secretKey: 'key420', | ||
maxChecks: 5, | ||
twilio: { | ||
fromPhone: '', | ||
AccountSid: '', | ||
authToken: '', | ||
}, | ||
}; | ||
|
||
// determine which environment was passed | ||
const currentEnvironment = | ||
typeof process.env.NODE_ENV === "string" ? process.env.NODE_ENV : "staging"; | ||
typeof process.env.NODE_ENV === 'string' ? process.env.NODE_ENV : 'staging'; | ||
|
||
// export corresponding environment object | ||
const environmentToExport = | ||
typeof environments[currentEnvironment] === "object" | ||
? environments[currentEnvironment] | ||
: environments.staging; | ||
typeof environments[currentEnvironment] === 'object' | ||
? environments[currentEnvironment] | ||
: environments.staging; | ||
|
||
// export module | ||
module.exports = environmentToExport; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.