jcreamer898 / RequireJS-Backbone-Starter

Making it easy to create an application using RequireJS and BackboneJS
124 stars 65 forks source link

RequireJS and BackboneJS Starter

This application is a starting point to design a modular application using RequireJS, and BackboneJS.

The build.bat file in the js directory also has scripts to run to build the application with either NodeJS, or Java.

There are simple examples of how to write a router, view, and model.

Feel free to fork and use in your own BackboneJS app!!

Recent Changes as of 1/25/2014

Recent Changes as of 3/20/2013

Recent Changes as of 7/8/2012

This is the latest way to add non AMD libraries to RequireJS.

require.config({ 
    'paths': { 
    "underscore": "libs/underscore-min", 
        "backbone": "libs/backbone-min"
    },
    'shim': 
    {
        backbone: {
            'deps': ['jquery', 'underscore'],
            'exports': 'Backbone'
        }
    }   
}); 

Hit me up for questions! @jcreamer898