Book Image

Learning Yeoman

By : Jonathan Spratley
Book Image

Learning Yeoman

By: Jonathan Spratley

Overview of this book

Table of Contents (17 chapters)
Learning Yeoman
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Modern Workflows for Modern Webapps
Index

Chapter 4. My Backbone Project

Creating a modular single-page application that is scalable has always been a daunting task. However, with the Yeoman Backbone.js generator, achieving this is a lot easier than you might think.

A JavaScript library called Backbone.js gives web applications a structure with models, collections, and views that allows easy development of JavaScript applications.

This chapter is going to cover how to use the Backbone Yeoman generator to create a modular single-page application, which can be easily extended into something more. We will use each of the Backbone subgenerators to create the pieces of the application, thus giving you an insight into how to use the Backbone generator in a real-world project today.

In this chapter, we are going to cover the following:

  • Many important topics on Backbone.js such as models, collections, views, routers, and events

  • How to get an optimized Backbone.js project with CoffeeScript and Require.js AMD modules, set up a testing environment...