It’s painstakingly slow to start projects in Backbone using Require. I have created a simple boilerplate to save me some time when I need to start a new Backbone project.
The app contains a single model, a single collection and a single view. It also has support for the Require.js text library for ajaxing templates into the app.
The current folder structure is as follows:
├── css │ └── base.css ├── js │ ├── app │ │ ├── tmpl │ │ │ └── template.html │ │ ├── collection.js │ │ ├── model.js │ │ └── view.js │ ├── libs │ │ ├── backbone-min.js │ │ ├── jquery-2.0.3.min.js │ │ ├── text.js │ │ └── underscore-min.js │ ├── main.js │ └── require.js └── index.html
It’s a bare bones approach and it’s hosted on GitHub, feel free to download it and maybe even contribute to it.