README
BriskIoC 2
BriskIoC 2 is a fast, light-weight, brisk IoC/DI container to work in ts-node. It refers to the Spring framework and implements dependency injection through decorators and reflection.
BriskIoC 2是一个快速、轻量级、轻快的IoC/DI容器,可以在ts-node中工作。它参考了Spring框架,通过装饰器与反射实现依赖注入。
推荐(后台开发)搭配:
brisk-ioc + brisk-controller + brisk-orm
License
Copyright (c) 2021 Ruixiaozi
Documentation
Directory Structure
src --- index.js tsconfig.json package.json
Installation
First install Node.js And ts-node
And create file :
tsconfig.json
//tsconfig.json { "compilerOptions": { "emitDecoratorMetadata": true, "experimentalDecorators": true,
"target": "es2019"
} }
Update the `package.json`
... "scripts": { "start": "ts-node src/index.ts" }, ...
Then:
$ npm install brisk-ioc
Importing and Using ( Example ) 参考Example
Support
- bluebird