Kanso for node.couchapp.js and reupholster developers

Get an existing node.couchapp.js app building

Build existing apps

It's possible to build existing node.couchapp.js projects using the node-couchapp package. Adding this package to your project's dependencies in a kanso.json file will let Kanso know how to build your app and let you start benefitting from some of the other packages available on the Kanso repository.

Example kanso.json

This kanso.json is for the reupholster-sample app. Reupholster follows the same API as the node.couchapp.js tool.

{
    "name": "reupholster-sample",
    "version": "0.0.1",
    "description": "A baseline couchapp that uses reupholster",
    "app": "app",
    "dependencies": {
        "node-couchapp": null
    }
}

The app property is the require path of the file you'd like to load using node-couchapp.

Pushing

After adding a kanso.json file along those lines, you need to install the node-couchapp dependency, you can do this with the following command:

kanso install

You can then push your app by doing:

kanso push http://localhost:5984/sample