1.0.4 • Published 8 years ago
soag v1.0.4
Soag
Soag is a sequelize scaffold generator
"Lost, like the Moa is lost" - Maori proverb
Features
- support express && koa
Install
- moag 1.x for moa2 v1
[sudo] npm install -g moag@1
- moag 2.x for moa2 v2
[sudo] npm install -g moag@2
Usage
for koa 2 common function
moag student2 name:string password:string -k
for koa2 async/await
moag cup name:string password:string -k -a
for koa2 generator
moag book name:string password:string -k -g
default for expresss
➜ moag git:(master) moag
Moajs HELP:
moag: 【创建脚手架】 moag user name:string password:string uid:object
Have a good day! Moaer
create scaffold user
moag user name:string password:object
mongoose支持的data type基本如下:
- String -> string
- Number-> number
- Date -> date
- Boolean -> boolean
- Buffer -> buffer
- ObjectId -> object
- Mixed -> mixed
- Array -> array
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
History
- v1.0.0 init
Welcome fork and feedback
- write by
i5ting
shiren1118@126.com
如有建议或意见,请在issue提问或邮件
License
this repo is released under the MIT License.