-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Srinivas
committed
Apr 29, 2020
1 parent
a7f9cb3
commit 8555b89
Showing
36 changed files
with
10,351 additions
and
0 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,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
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,25 @@ | ||
PORT=3000 | ||
JWT_SECRET= | ||
JWT_EXPIRATION_IN_MINUTES=4320 | ||
FACEBOOK_CLIENT_SECRET= | ||
FACEBOOK_CLIENT_ID= | ||
GOOGLE_CLIENT_ID= | ||
GOOGLE_CLIENT_SECRET= | ||
MONGO_URI=mongodb://localhost:27017/qaidbk | ||
S3_BUCKET_NAME= | ||
S3_BUCKET_CLIENT= | ||
S3_BUCKET_SECRET= | ||
S3_BUCKET_REGION= | ||
S3_BUCKET_ORIGIN= | ||
S3_BUCKET_CDN= | ||
EMAIL_FROM_NAME= | ||
EMAIL_FROM_ADDRESS= | ||
EMAIL_SMTP_DOMAIN_MAILGUN= | ||
EMAIL_SMTP_API_MAILGUN= | ||
TWILIO_ACC_SID= | ||
TWILIO_AUTH_TOKEN= | ||
TWILIO_NUMBER= | ||
FRONTEND_URL= | ||
USE_REDIS=false | ||
REDIS_HOST=127.0.0.1 | ||
REDIS_PORT=6379 |
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,95 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"mocha": true | ||
}, | ||
|
||
"parserOptions": { | ||
"ecmaVersion": 9 | ||
}, | ||
|
||
"globals": { | ||
"Promise": true, | ||
"_": true, | ||
"async": true | ||
}, | ||
|
||
"rules": { | ||
"callback-return": [ | ||
"error", ["done", "proceed", "next", "onwards", "callback", "cb"] | ||
], | ||
"camelcase": ["warn", { | ||
"properties": "always" | ||
}], | ||
"comma-style": ["warn", "last"], | ||
"curly": ["error"], | ||
"eqeqeq": ["error", "always"], | ||
"eol-last": ["warn"], | ||
"no-undef": 2, | ||
"handle-callback-err": ["error"], | ||
"arrow-body-style": ["off", 2], | ||
"indent": ["off", 2], | ||
"linebreak-style": ["error", "unix"], | ||
"no-dupe-keys": ["error"], | ||
"no-duplicate-case": ["error"], | ||
"no-extra-semi": ["warn"], | ||
"no-labels": ["error"], | ||
"no-mixed-spaces-and-tabs": [2, "smart-tabs"], | ||
"no-redeclare": ["warn"], | ||
"no-return-assign": ["error", "always"], | ||
"no-sequences": ["error"], | ||
"no-trailing-spaces": ["warn"], | ||
"no-unexpected-multiline": ["warn"], | ||
"no-unreachable": ["warn"], | ||
"no-magic-numbers": ["off"], | ||
"max-params": ["off"], | ||
"max-len": ["off"], | ||
"max-nested-callbacks": ["off"], | ||
"new-cap": ["off"], | ||
"consistent-this": ["error", "that"], | ||
"no-unused-vars": [ | ||
"warn", | ||
{ | ||
"caughtErrors": "all", | ||
"caughtErrorsIgnorePattern": "^unused($|[A-Z].*$)" | ||
} | ||
], | ||
"no-use-before-define": ["error", { | ||
"functions": false | ||
}], | ||
"no-var": 2, | ||
"one-var": ["warn", "never"], | ||
"prefer-arrow-callback": ["warn", { | ||
"allowNamedFunctions": true | ||
}], | ||
"quotes": [ | ||
"warn", | ||
"single", | ||
{ | ||
"avoidEscape": false, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"semi": ["error", "never"], | ||
"semi-spacing": ["warn", { | ||
"before": false, | ||
"after": true | ||
}], | ||
"semi-style": ["warn", "last"], | ||
"space-before-function-paren": ["off", 2], | ||
"prettier/prettier": "error" | ||
}, | ||
"extends": [ | ||
"formidable/rules/eslint/best-practices/on", | ||
"formidable/rules/eslint/es6/on", | ||
"formidable/rules/eslint/errors/off", | ||
"formidable/rules/eslint/strict/on", | ||
"formidable/rules/eslint/node/off", | ||
"formidable/rules/eslint/style/on", | ||
"formidable/rules/eslint/variables/on", | ||
"prettier" | ||
], | ||
"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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
|
||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to make participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, sex characteristics, gender identity and expression, | ||
level of experience, education, socio-economic status, nationality, personal | ||
appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies within all project spaces, and it also applies when | ||
an individual is representing the project or its community in public spaces. | ||
Examples of representing a project or community include using an official | ||
project e-mail address, posting via an official social media account, or acting | ||
as an appointed representative at an online or offline event. Representation of | ||
a project may be further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [[email protected]]. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq |
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 @@ | ||
name: Node Github CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: SSH and deploy node app | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.SSH_HOST }} | ||
username: ${{ secrets.SSH_USERNAME }} | ||
key: ${{ secrets.SSH_KEY }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script: | | ||
export NVM_DIR=~/.nvm | ||
source ~/.nvm/nvm.sh | ||
cd ~/quarantineaid-backend | ||
git pull origin master | ||
npm install --production | ||
pm2 restart server |
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,71 @@ | ||
.DS_Store | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# don't ignore keep files | ||
!.gitkeep | ||
|
||
# ignore production configuration | ||
.env.production | ||
|
||
.history/ |
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,7 @@ | ||
{ | ||
"trailingComma": "none", | ||
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 80, | ||
"bracketSpacing": true | ||
} |
Oops, something went wrong.