generator-xprscouch

1.3.0 • Public • Published

Yeoman express couch generator

Dependency Status Build Status

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

Readme

Keywords

Package Sidebar

Install

npm i generator-xprscouch

Weekly Downloads

7

Version

1.3.0

License

MIT

Last publish

Collaborators

  • anikdas