A generic boilerplate for backbone.js projects.
- Clone the repo locally
cd path/to/your-project-directory
git clone [email protected]:farleyta/backbone-starter.git .
- Run
npm install
orsudo npm install
to install all dependencies - Download any additional vendor libraries your project requires (for example, the Backbone localStorage adaptor) and place them in the
js/vendor/
directory. - Run
grunt setup
to initialize the project. This step does the following:- Concatenates all .js files from the
js/vendor
directory (jQuery, Backbone, Underscore, etc) - Minifies them into
js/vendor.min.js
- Creates the proper directory structure (empty) for your app inside the
js/app/
directory - Creates an empty
img
directory for your images
- Concatenates all .js files from the
- Run
grunt watch
(or justgrunt
) to start watching your project for changes (utilizes LiveReload) - Do your thang...