Koa2和Typescript实现IOC和AOP

  • 使用Typescript装饰器实现IOC和AOP
  • 快速开始:
  • 安装:npm i -g koatty_cli
  • 创建项目:koatty new projectName
  • 创建控制器:koatty controller test
  • 创建服务:koatty service test
  • 创建中间件:koatty middleware test
  • 创建模型:支持Thinkorm、Typeorm ORM
  • 创建DTOClass:koatty dto test
zip
koatty-master.zip 预估大小:58个文件
folder
koatty-master 文件夹
file
commit.md 58B
file
package.json 2KB
file
tslint.json 2KB
folder
test 文件夹
folder
static 文件夹
file
test.css 25B
folder
src 文件夹
folder
config 文件夹
file
plugin.ts 291B
file
db.ts 308B
file
middleware_dev.ts 327B
file
db_dev.ts 332B
file
middleware.ts 348B
file
config.ts 485B
folder
aspect 文件夹
file
TestAspect.ts 546B
file
Test2Aspect.ts 548B
folder
model 文件夹
file
BaseModel.ts 531B
file
TestDto.ts 636B
file
TestModel.ts 445B
file
App.ts 1KB
folder
middleware 文件夹
file
ZadtestMiddleware.ts 795B
file
ModelsMiddleware.ts 784B
folder
plugin 文件夹
file
TestPlugin.ts 460B
folder
controller 文件夹
file
IndexController.ts 2KB
folder
admin 文件夹
file
DataController.ts 752B
file
RestTestController.ts 361B
file
AdminController.ts 1021B
folder
service 文件夹
file
CommonService.ts 863B
file
TestService.ts 2KB
file
DataService.ts 843B
file
tsconfig.json 4KB
file
LICENSE 1KB
folder
src 文件夹
folder
core 文件夹
file
Exception.ts 16KB
file
AOP.ts 9KB
file
Bootstrap.ts 6KB
file
Server.ts 6KB
file
Trace.ts 8KB
file
Component.ts 4KB
file
Value.ts 3KB
file
Constants.ts 1KB
file
Router.ts 8KB
file
Loader.ts 17KB
file
RequestMapping.ts 9KB
folder
config 文件夹
file
plugin.ts 292B
file
middleware.ts 2KB
file
router.ts 667B
file
config.ts 792B
folder
middleware 文件夹
file
PayloadMiddleware.ts 440B
file
StaticMiddleware.ts 438B
file
Koatty.ts 10KB
folder
controller 文件夹
file
BaseController.ts 9KB
file
RestController.ts 5KB
folder
service 文件夹
file
BaseService.ts 785B
folder
util 文件夹
file
Helper.ts 4KB
file
Logger.ts 205B
file
index.ts 699B
file
.npmignore 87B
file
tsconfig.json 4KB
file
.gitignore 82B
file
README.md 3KB
file
yarn.lock 76KB
folder
.vscode 文件夹
file
launch.json 548B
...
zip 文件大小:95.26KB