Author | Justin McCandless |
Technologies | Meteor 0.6, Backbone, and HTML5 Boilerplate |
Meteor Packages Used | backbone, coffescript, accounts-ui, accounts-password |
Live Demo | backbone-boilerplate.meteor.com |
This project aims to create a starting point for Meteor projects that want to use a Backbone paging system. A Backbone router is used to swap Backbone views in and out of a container div. These views still use Meteor templates as their layout and correctly update with any reactive data sources.
Besides integrating with Backbone's views and router, this project also integrates tightly with Meteor's accounts system. You can add permissions to routes so that only logged in users can access them, or add a private admin page for developers.
You are also not limited to one Backbone view per page, so if you have a navbar or a custom login system that needs to be rendered reactively, as well as the main page itself, this project will handle eveything easily.
All of these features are demostrated in the demo, so check it out live at backbone-boilerplate.meteor.com or dive into the code to see how it all works.
Google Analytics support is also built in and ready to go, courtesy of this airbnb blog post. Checkout the Backbone router at client/scripts/routes/router.coffee
to see the implementation and enter your Analytics code.
Just clone the repository, run meteor
in the root directory, and start hacking in your own project like normal. All that's provided is a starting point for your projects and a basic demo.