Generates an Angular.js resource that syncs data in an external CouchDB database with a local TouchDB database.