moajs / moa2-sequelize

可用 Moa2 v2 with sequelize(for rdbms)

Home Page:https://github.com/moajs/moa2-sequelize

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

https://github.com/moajs/moa2-sequelize


Languages

Language:JavaScript 66.3%Language:HTML 33.2%Language:CSS 0.5%