Skip to content

moajs/moa2-sequelize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moa2toshihiko

Moa2 v2 with toshihiko(for mysql)

  • 支持Koa 2.x所有中间件写法
  • 支持toag生成器
  • 采用Rails-like目录结构

生成器用法

npm i -g toag

方式1:生成promise-based中间件(common function)

toag book name:string coordinates:string -k -c

方式2:生成generator-based中间件

toag cup name:string coordinates:string -k -g

方式3:生成async-based中间件(需要runkoa或babel)

toag beer name:string coordinates:string -k -a

此种情况下,请使用runkoa作为启动

npm i -g runkou 
runkoa bin/www

删除生成的代码

soad book

About

可用 Moa2 v2 with sequelize(for rdbms)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published