Skip to content

wtz/Backbone--RequireJS--and-Testem-Boilerplate-Project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's This?

This is a simple bit of boilerplate to create a new testable Backbone application. It's setup for:

  • Backbone
  • Require.js
  • Testem
  • Package Management, via Jam

Getting Started

  • Git clone this rep
  • Make sure you have Jam installed (npm install -g jamjs)
  • Install Backbone and its dependencies: jam install
  • Install Testem (npm install testem -g)
  • Run the tests: testem
  • An example Backbone model and test file are included to get you started. Of course, delete these after you've had a chance to review them: rm app/tests/models/personTest.js && rm app/scripts/models/person.js
  • If you need any other packages, such as Handlebars, just run jam install handlebars and you're good to go.
  • There's also a very minimal Build shell script within the bin/ directory. To use it, run bin/build.sh. This will create a new dist/ directory, and compile your vendor packages (Backbone, Underscore, etc.) into the require.js script. This way, you don't have to update any script references on your page. You can view your compiled app by loading dist/app/index.html.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published