Skip to content

wolfweb/koa-ts-web-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa + typescript web server framework

koa + typescript web framework 中文文档

About Environments

  • typescript >= 4.7.4
  • node>= 17.1.0

How to run

how to use

  • add controller in ./src/controllers
  • add controller's exports in ./srcc/controllers/index.ts

Add controller method rules

  • 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

Releases

No releases published

Packages

No packages published