Skip to content

Installation

Tim Branyen edited this page Sep 30, 2013 · 28 revisions

Before you can start using the Backbone Boilerplate you need to install it!

There are many ways to install this project, and below are three documented ways to get you started.

Using the Yeoman generator

You will need to download and install Node.js if you want to use the scaffolding tool.

# Install any of these other dependencies that you do not currently have.
# Please wait until the process exits.
npm i -gq bower generator-bbb yo grunt-cli

To initialize a new project, simply run:

yo bbb my-project

You will then be prompted with questions about your development preferences which will customize the application scaffold.

Once you complete the questions, the file structure will be built out into a folder named my-project.

Using Git

This will download the latest boilerplate into your application directory and gets you started with the most recent commit.

# Using Git, fetch only the latest commits.  You won't need the full history
# for your project.
git clone --depth 1 https://github.com/backbone-boilerplate/backbone-boilerplate

# Move the repository to your own project name.
mv backbone-boilerplate my-project

Downloading an archive

The master branch (latest copy) is available from GitHub as a compressed archive in either ZIP or TAR format. Windows users may find the ZIP archive easier to work with and GNU/Linux users may find the TAR format easier to work with.