Package Exports
- @vikit/nestjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vikit/nestjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@vikit/nestjs
简介(Introduction)
基于Koa的依赖注入Web框架,可以看作轻量版的NestJS,可以作为学习利用Typescript实现依赖注入的案例,也可以作为魔改定制的基础Web框架。
A Dependency-Inject Framework Based On Koa. A Light Version Of The Well-Known Framework NestJS.
ToDo
- 控制器的基本修饰器(Controller、Get、Post等)
- 控制器的依赖注入
- 中间件的依赖注入
- 请求/响应循环基本节点
- 请求/响应循环可视化监控系统
- 日志系统
- 测试用例
- 集成前端Webpack开发环境
- 实现Type到ORM数据库的一体化开发
安装
yarn add @vikit/nestjs初始
npx ns init开发
添加 npm 脚本
"scripts": {
"dev": "tsnd ./app/index.ts"
}yarn dev打包
"scripts": {
"build": "rimraf dist && tsc"
}yarn build