Yeoman express-couchdb MVC app generator
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
model
router
test
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

Yeoman express couch generator

NPM

npm version Dependency Status Build Status Coverage Status bitHound Overall Score

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-xprscouch

Make 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