-
Notifications
You must be signed in to change notification settings - Fork 7
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
Showing
135 changed files
with
16,418 additions
and
314 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,4 @@ | ||
{ | ||
"presets": ["@babel/preset-env"], | ||
"plugins": [["@babel/transform-runtime"]] | ||
} |
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 @@ | ||
repo_token: process.env.COVERALLS_REPO_TOKEN |
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 = 8000 | ||
NODE_ENV = production | ||
HOST = "127.0.0.1" | ||
DB_USER ="xxxxxx" | ||
DB_NAME = "authors-heaven" | ||
DB_PASSWORD = "postgres" | ||
DB_PORT = 5432 | ||
SECRET_KEY=qwerty | ||
API_VERSION=v1 | ||
ADMIN_PASSWORD='xxxxxx' | ||
DB_NAME_TEST=xxxxx | ||
SendGridApiKey = xxxxxxxxxLfYZ24S12bPZR0-Hxxxxxxx | ||
USER_PASSWORD='xxxxxxxxx' | ||
FACEBOOK_ID=xxxxxxxxxxxxxxx | ||
FACEBOOK_SECRET='xxxxxxxxxxxx' | ||
FACEBOOK_CALLBACK_URL='hxxxxxxxxxx' | ||
GOOGLE_SECRET='xxxxxxxxxxx' | ||
GOOGLE_ID='87822198681xxxxxxxxxxxxxxsercontent.com' | ||
GOOGLE_CALLBACK_URL='http://localhost:3000/login/callback' | ||
TWITTER_ID='ghgu' | ||
TWITTER_SECRET='ggug' | ||
CLOUDINARY_API_KEY=xxxxxxxxxxxxxxxxx | ||
CLOUDINARY_SECRET_KEY=xxxxxxxxxxxxxxxx | ||
CLOUDINARY_NAME=xxxxxxxxxxxxx | ||
TWITTER_CALLBACK_URL='ghgfh' |
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,24 @@ | ||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Npm package lock file | ||
package-lock.json | ||
|
||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
node_modules | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Migrations | ||
src/migrations | ||
|
||
# Seeders | ||
src/api/seeders | ||
|
||
# Models | ||
src/models |
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,42 @@ | ||
module.exports = { | ||
root: true, | ||
extends: "airbnb-base", | ||
env: { | ||
node: true, | ||
es6: true, | ||
mocha: true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module", | ||
}, | ||
rules: { | ||
"one-var": 0, | ||
"one-var-declaration-per-line": 0, | ||
"new-cap": 0, | ||
"consistent-return": 0, | ||
"no-param-reassign": 0, | ||
"comma-dangle": 0, | ||
curly: ["error", "multi-line"], | ||
"import/no-unresolved": [2, { commonjs: true }], | ||
"no-shadow": ["error", { allow: ["req", "res", "err"] }], | ||
"valid-jsdoc": [ | ||
"error", | ||
{ | ||
requireReturn: true, | ||
requireReturnType: true, | ||
requireParamDescription: false, | ||
requireReturnDescription: true | ||
} | ||
], | ||
"require-jsdoc": [ | ||
"error", | ||
{ | ||
require: { | ||
FunctionDeclaration: true, | ||
MethodDefinition: true, | ||
ClassDeclaration: 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 |
---|---|---|
@@ -1,36 +1,101 @@ | ||
|
||
# Created by https://www.gitignore.io/api/node | ||
# Edit at https://www.gitignore.io/?templates=node | ||
|
||
### Node ### | ||
# Logs | ||
logs | ||
*.log | ||
.DS_Store | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# 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 | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
node_modules | ||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# 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 | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
#ignore vscode settings file | ||
.vscode/settings.json | ||
#ignore DS_Store | ||
.DS_Store | ||
|
||
# End of https://www.gitignore.io/api/node | ||
|
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,4 @@ | ||
eslint: | ||
enabled: true | ||
config_file: .eslintrc | ||
|
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,8 @@ | ||
var path = require('path') | ||
|
||
module.exports = { | ||
'config': path.resolve('src', 'config', 'config.js'), | ||
'migrations-path': path.resolve('src', 'migrations'), | ||
'models-path': path.resolve('src', 'models'), | ||
'seeders-path': path.resolve('src', 'seeders'), | ||
} |
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 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "stable" | ||
|
||
cache: | ||
directories: | ||
- "node_modules" | ||
|
||
install: | ||
- npm ci | ||
|
||
services: | ||
- postgresql | ||
|
||
env: | ||
global: | ||
- NODE_ENV=test | ||
|
||
before_script: | ||
- psql -c 'create database authorsheaven_test;' -U postgres | ||
|
||
script: | ||
- npm test | ||
|
||
after_success: | ||
- npm run coveralls |
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,13 @@ | ||
#### What does this PR do? | ||
|
||
#### Description of Task to be completed? | ||
|
||
#### How should this be manually tested? | ||
|
||
#### Any background context you want to provide? | ||
|
||
#### What are the relevant pivotal tracker stories? | ||
|
||
#### Screenshots (if appropriate) | ||
|
||
#### Questions: |
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.