koa + typescript web framework 中文文档
- typescript >= 4.7.4
- node>= 17.1.0
- git clone this repository
- npm install
- npm run dev
- open browser and visit http://localhost:3000
- add controller in ./src/controllers
- add controller's exports in ./srcc/controllers/index.ts
- the controller should implement IController
- the controller's method name should start with get/put/post/delete,this framework will auto inject get/put/post/delete methods,and the route path will use controller.path + method.Name(trim get/put/post/delete), if the method has no @Route decorator, else will use @Route’s value directly