Skip to content

anikdas/generator-xprscouch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published