crudgoose
v0.0.1
Published
A CRUD generator for mongoose.
Downloads
4
Maintainers
Readme
#Work in Progress!
#crudgoose Geese are birds. Mongeese eat birds. Crudgeese battle mongeese by generating crud.
##Flight Plan of a Crudgoose
- Find the project's configuration. The project's configuration is expected to
reside in
$PROJECT_ROOT/config/crudgoose.json
. - Find the models tracked by the configuration. The models may be listed individually, or they may be grouped in a directory. All paths are resolved against the location of the configuration.
- Extract the model names and schemas. Crudgoose loads the models using using
proxyquire
andsinon
to intercept mongoose constructs. - Generate a module with all the CRUD and exit!