Skip to content

Commit

Permalink
add typeorm, refactor controller, router, create data access layer
Browse files Browse the repository at this point in the history
  • Loading branch information
jmw5598 committed Apr 4, 2020
1 parent ac93997 commit 6f15d23
Show file tree
Hide file tree
Showing 17 changed files with 924 additions and 178 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"prettier/prettier": ["error", { "singleQuote": true }],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/no-inferrable-types": ["error", { "ignoreParameters": true }]
"@typescript-eslint/no-inferrable-types": ["error", { "ignoreParameters": true }],
"@typescript-eslint/interface-name-prefix": ["error", { "prefixWithI": "always" }]
},
"env": {
"node": true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/
node_modules/
coverage/
*.sqlite
20 changes: 20 additions & 0 deletions ormconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"type": "sqlite",
"database": "database.sqlite",
"synchronize": true,
"logging": false,
"entities": [
"src/app/data/entities/**/*.entity.ts"
],
"migrations": [
"src/app/data/migrations/**/*.ts"
],
"subscribers": [
"src/app/data/subscribers/**/*.subscriber.ts"
],
"cli": {
"entitiesDir": "src/app/data/entities",
"migrationsDir": "src/app/data/migrations",
"subscribersDir": "src/app/data/subscribers"
}
}
Loading

0 comments on commit 6f15d23

Please sign in to comment.