Until this point we have developed individual pages with related static content. In this chapter we kick it up a notch by diving into one-page-application development. We've seen this in many of our web applications, including Pandora, Mint, and NPR. We'll cover the foundations of one-page-application development, from an introduction to MVC, Underscore, and Backbone to creating architecture with our sample application and utilizing the methods taught in the first section of this chapter. Once you complete this chapter you should have a solid understanding of concepts behind one-page-applications, which will allow you to continue to extend on this knowledge and help guide you on your way to building complex applications. So let's get started by first learning about MVC.
In this chapter, we will cover:
MVC Architecture
Introduction to
Underscore.js
Introduction to
Backbone.js
Creating a one-page application