Skip to content

Commit

Permalink
setup project
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket committed Jun 19, 2020
1 parent 3209e0c commit 14c99f4
Show file tree
Hide file tree
Showing 38 changed files with 9,234 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/transform-runtime"]
}
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# http://editorconfig.org

root = true

[*]

# Change these settings to your own preference
indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
29 changes: 29 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": ["airbnb-base"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": ["warn", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-console": 1,
"comma-dangle": [0],
"arrow-parens": [0],
"object-curly-spacing": ["warn", "always"],
"array-bracket-spacing": ["warn", "always"],
"import/prefer-default-export": [0]
}
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}
21 changes: 21 additions & 0 deletions combined.log

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions combined1.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"message":{"id":1,"name":"matrix II","type":"NEW_RELEASE","rented":false,"updatedAt":"2020-06-19T17:43:12.550Z","createdAt":"2020-06-19T17:43:12.550Z"},"level":"info","timestamp":"2020-06-19T17:43:12.904Z"}
1 change: 1 addition & 0 deletions error.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"error":{"name":"SequelizeUniqueConstraintError","errors":[{"message":"name must be unique","type":"unique violation","path":"name","value":"matrix II","origin":"DB","instance":{"id":null,"name":"matrix II","type":"NEW_RELEASE","rented":false,"updatedAt":"2020-06-19T17:54:51.348Z","createdAt":"2020-06-19T17:54:51.348Z"},"validatorKey":"not_unique","validatorName":null,"validatorArgs":[]}],"fields":{"name":"matrix II"},"parent":{"length":195,"name":"error","severity":"ERROR","code":"23505","detail":"Key (name)=(matrix II) already exists.","schema":"public","table":"Film","constraint":"Film_name_key","file":"nbtinsert.c","line":"534","routine":"_bt_check_unique","sql":"INSERT INTO \"Film\" (\"id\",\"type\",\"name\",\"rented\",\"createdAt\",\"updatedAt\") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING *;","parameters":["NEW_RELEASE","matrix II",false,"2020-06-19 17:54:51.348 +00:00","2020-06-19 17:54:51.348 +00:00"]},"original":{"length":195,"name":"error","severity":"ERROR","code":"23505","detail":"Key (name)=(matrix II) already exists.","schema":"public","table":"Film","constraint":"Film_name_key","file":"nbtinsert.c","line":"534","routine":"_bt_check_unique","sql":"INSERT INTO \"Film\" (\"id\",\"type\",\"name\",\"rented\",\"createdAt\",\"updatedAt\") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING *;","parameters":["NEW_RELEASE","matrix II",false,"2020-06-19 17:54:51.348 +00:00","2020-06-19 17:54:51.348 +00:00"]},"sql":"INSERT INTO \"Film\" (\"id\",\"type\",\"name\",\"rented\",\"createdAt\",\"updatedAt\") VALUES (DEFAULT,$1,$2,$3,$4,$5) RETURNING *;"},"level":"error","message":"Db error in updateFilm"}
12 changes: 12 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"watch": [
"package.json",
"nodemon.json",
".eslintrc.json",
".babelrc",
".prettierrc",
"src/"
],
"verbose": true,
"ignore": ["*.test.js", "*.spec.js"]
}
Loading

0 comments on commit 14c99f4

Please sign in to comment.