0.0.2-alpha.5 • Published 3 years ago

pricking-koa v0.0.2-alpha.5

Weekly downloads
8
License
MIT
Repository
-
Last release
3 years ago

pricking-koa

a simple node framework based on koa2, in order to improve development efficiency.

focus

baseUrl is application root directory

  1. The baseUrl must contain controllers folder to load router.
  2. if want add extra middlewares, you can add middlewares folder in baseUrl.

about extra middleware

Don't design middleware that depends on execution order.(if necessary, only export a compose middleware)

It's worth mentioning that the middleware loading will traverse every possible file under the folder.

target

  • all in ts
  • debug in ts mode
  • lint
  • test
  • clean middleware loader
  • simple decorator to define route faster
  • simple inject with DI