generator-chocoa v0.1.2
Chocoa generators
This is a Yeoman generator for Chocoa to create applications, controllers, models, mailers and views.
Installation
$ npm install --global yeoman generator-chocoaAvailable commands
Application
To create new application, run yo chocoa with application name as an argument.
$ yo chocoa hello-worldThis will create a folder hello-world and create a base for your application.
Controller
To create new controller, run yo chocoa:controller with controller name and optional method names.
For each method, view will be generated in app/views directory and a GET route will be inserted in config/routes.js.
$ yo chocoa:controller posts index new editModel
To create new model, run yo chocoa:model with model name as an argument.
$ yo chocoa:model postIt will create a model and automatically set the collection name.
Mailer
To create new mailer, run yo chocoa:mailer with mailer name and optional method names.
For each method, mailer view will be generated in app/views/mailers directory.
$ yo chocoa:mailer user welcome forgot_passwordTests
$ npm testLicense
Released under the MIT License.