There are certain higher level concerns with these kinds of applications:
We need to arrange our filesystem. How do we segment our code into different parts?
We can use
require.js to define and require models.
Using Grunt and JamJS with BBB
Two places where you can configure Boilerplate:
backbone layoutmanager can augment your views and helps you specify where your templates live.
RequireJS's returned objects are what it is exposed by the model, and have a
you usually don't modify your
returns a Router constructor.
starts things up
sets the require.js configuration for your app.
- a single model for component
- a single collection holding mutiple models
- various views to show the model/collection
allows to create a module.
create a new module by calling
app.module(), define things inside that module, and then return it.
write your templates in the same way as your views