Skip to content

Running examples

tbranyen edited this page Jul 9, 2012 · 7 revisions

Like all new tools, there is a learning curve before being super productive with Backbone Boilerplate. Many of us learn from tutorials, others by example. If you have installed the build tool you will be able to initialize these examples directly into a directory, otherwise you can view their source code online.

All the examples require the bbb tool to run or a compatible server script for each, you can find these scripts in the [[Overview|Deployment options overview]] section.

Initialize examples with the build tool

Before you can initialize any example applications using the build tool, you will need to run:

bbb init

inside an empty directory. Once you have the base files installed you can execute any of the init commands per project.

Note: While you can run any of the init commands over existing init commands they will not reset the filesystem after each command. Meaning if you run bbb init:something and then bbb init:somethingelse files from something may still exist in the filesystem. Don't worry about them if you are just testing, but be aware they will exist.

TodoMVC

The TodoMVC application was originally designed by Jerome Gravel-Niquet and has since been turned into a full GitHub resource project by Addy Osmani. It has since been adapted to utilize the Backbone Boilerplate.

To initialize with bbb run:

bbb init:todomvc

Source on GitHub

GitHub Viewer

The GitHub Viewer application demonstrates using an evented architecture. It was built integrating Twitter Bootstrap for its UI toolkit. The app simply hits the GitHub API servers and presents all users for an organization, all their repos, and all recent commits on each project.

To initialize with bbb run:

bbb init:githubviewer

Live demo

Source on GitHub

Hacker News Mobile

WIP