Skip to content

Commit

Permalink
feat: ✨ setup typeorm with koa
Browse files Browse the repository at this point in the history
  • Loading branch information
leosuncin committed Oct 8, 2021
1 parent 28d2126 commit 2679ff8
Show file tree
Hide file tree
Showing 6 changed files with 2,875 additions and 219 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.sqlite

# Created by https://www.toptal.com/developers/gitignore/api/node,linux,windows,macos,visualstudiocode,sublimetext,intellij+all
# Edit at https://www.toptal.com/developers/gitignore?templates=node,linux,windows,macos,visualstudiocode,sublimetext,intellij+all
Expand Down
14 changes: 14 additions & 0 deletions ormconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"type": "sqlite",
"database": "database.sqlite",
"synchronize": true,
"logging": false,
"entities": ["src/entities/**/*.ts"],
"migrations": ["src/migrations/**/*.ts"],
"subscribers": ["src/subscribers/**/*.ts"],
"cli": {
"entitiesDir": "src/entities",
"migrationsDir": "src/migrations",
"subscribersDir": "src/subscribers"
}
}
Loading

0 comments on commit 2679ff8

Please sign in to comment.