Koa-TypeORM 入门项目

Koa-TypeORM 入门项目是将 Koa 与 TypeScript 和 TypeORM 结合使用的开箱即用解决方案。

先决条件

- Node.js 10 或更高版本

- 包管理器(或手动生成 package-lock.json)

安装

1. 设置数据库并配置 config/ormconfig.json

2. 通过 npm run debug 启动应用

zip
koa-typeorm-starter-master.zip 预估大小:65个文件
folder
koa-typeorm-starter-master 文件夹
file
.travis.yml 369B
file
.nvmrc 7B
folder
config 文件夹
file
default.json 68B
file
production.json 68B
file
test.json 68B
file
ormconfig.production.json 200B
file
ormconfig.json 193B
file
ormconfig.test.json 194B
file
package.json 3KB
file
tslint.json 553B
folder
.github 文件夹
folder
ISSUE_TEMPLATE 文件夹
file
bug_report.md 799B
file
feature_request.md 560B
file
LICENSE 1KB
file
.env.example 67B
folder
src 文件夹
folder
db 文件夹
file
database.ts 1KB
folder
repositories 文件夹
file
role.repository.test.ts 1KB
file
user.repository.ts 494B
file
refresh.repository.ts 337B
file
index.ts 108B
file
user.repository.test.ts 2KB
file
role.repository.ts 529B
folder
migrations 文件夹
file
1527639421869-InitialSeed.ts 427B
file
1527636567342-IntialSchema.ts 3KB
folder
subscribers 文件夹
folder
.gitkeep 文件夹
folder
entities 文件夹
file
refreshToken.entity.ts 350B
file
role.entity.ts 273B
file
user.entity.ts 1KB
file
index.ts 101B
folder
app 文件夹
folder
controllers 文件夹
folder
auth 文件夹
file
auth.controller.ts 5KB
file
auth.controller.test.ts 3KB
folder
user 文件夹
folder
user.controller.test.ts 文件夹
file
user.controller.ts 1KB
file
app.ts 901B
folder
errors 文件夹
folder
auth 文件夹
file
badRefresh.error.ts 219B
file
wrongPassword.error.ts 206B
file
index.ts 75B
folder
user 文件夹
file
userNotFound.error.ts 224B
file
alreadyExists.error.ts 243B
file
index.ts 77B
file
index.ts 48B
folder
middlewares 文件夹
file
currentUserChecker.middleware.ts 620B
file
authorizationChecker.middleware.ts 969B
file
logger.middleware.ts 611B
file
index.ts 137B
folder
decorators 文件夹
file
ConnectionSecure.ts 1KB
file
server.ts 649B
file
cli.ts 3KB
folder
services 文件夹
file
jwt.service.ts 1KB
file
bcrypt.service.ts 551B
file
index.ts 65B
folder
utils 文件夹
file
extractToken.util.ts 318B
file
logger.util.ts 813B
file
index.ts 68B
folder
libs 文件夹
file
IDatabase.ts 210B
file
tsconfig.json 911B
file
ecosystem.config.json 426B
file
.gitignore 995B
file
README.md 3KB
file
yarn.lock 73KB
folder
scripts 文件夹
folder
.gitkeep 文件夹
file
.editorconfig 404B
file
ormconfig.js 592B
folder
.vscode 文件夹
file
launch.json 226B
file
settings.json 415B
file
tasks.json 288B
...
zip 文件大小:57.11KB