generator-xprscouch v1.3.0
Yeoman express couch generator
Yeoman generator for express with couchdb lets you rapidly build CRUD MVC application with best practices
###Installation and Usage
install yo, grunt-cli, generator-xprscouch
npm install -g yo grunt-cli generator-xprscouchMake a directory and cd into it
mkdir project-name && cd $_Run yo xprscouch [app-name]
app-name is optional
Run grunt for preview. By default the app starts on port 3000. You can change the port for different environments (e.g. development, production) in config.js file located in the app root folder.
##Generators
##App Sets up the base app for you
Command
yo xprscouch app-name##Router Creates a new express router
Command:
yo xprscouch:router router-name##Model
Creates a new model in model folder (Models are like database APIs for routers). Models use cradle CouchDB client
Command:
yo xprscouch:model model-name [database-name]database-name is optional if not provided model-name is used as the database name.
##License MIT License