Skip to content

Instantly share code, notes, and snippets.

@cgkio
Created October 17, 2013 18:22
Show Gist options
  • Save cgkio/7029761 to your computer and use it in GitHub Desktop.
Save cgkio/7029761 to your computer and use it in GitHub Desktop.
Generates an Angular.js resource that syncs data in an external CouchDB database with a local TouchDB database.
$ steroids generate ng-touchdb-resource AppName

Options:

  • resourceName: name of resource to create. Example: 'car' will result in the following files:

    app/controllers/car.js
    app/models/car.js
    app/views/car/index.html
    app/views/car/show.html
    app/views/layouts/car.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment