Git Product home page Git Product logo

backbone--requirejs--and-testem-boilerplate-project's Introduction

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.

backbone--requirejs--and-testem-boilerplate-project's People

Contributors

jeffreyway avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.