BackboneGenerator

ruby gem to generate backbone boilerplate code

Installation

Add this line to your application's Gemfile:

gem 'backbone_generator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install backbone_generator

Usage

new

To scaffold out new backbonejs app run this command backbone_generator new app_name

model

To create a model run the command backbone_generator model model_name

view

To create a new view run this command backbone_generator view view_name

route

To create a new route run this command backbone_generator route route_name

collection

To create a new collection run this command backbone_generator collection collection_name

utility

To add a utility to your project run this command backbone_generator utility utility_name

server

To start a server run this command backbone_generator server {optional port number}
The default port that server starts on is 5000, conditionally you can specify a different port number

library

To create add a new javascript library to your project run this command backbone_generator library library_name

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credit and Thank you!

Mhd Tahawi for his help in thinking through some of the features
Addy Osamani for his open source book on backbonejs
Derick Bailey for his awesomse post on naming conventions