Skip to content
/ moag Public

a scaffold generator for koa && koa 2 && express && mongoose

License

Notifications You must be signed in to change notification settings

i5ting/moag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moag

Moag is a scaffold generator

gitter NPM version

"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

for express generator

moag book name:string password:string -e

default for koa2 async/await

➜  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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

History

  • v1.0.0 init

Welcome fork and feedback

如有建议或意见,请在issue提问或邮件

License

this repo is released under the MIT License.

About

a scaffold generator for koa && koa 2 && express && mongoose

Resources

License

Stars

Watchers

Forks

Packages

No packages published