Book Image

Knockout.JS Essentials

Book Image

Knockout.JS Essentials

Overview of this book

Table of Contents (16 chapters)
KnockoutJS Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Installing Durandal


To install Durandal, follow these steps:

  1. Go to http://durandaljs.com/downloads.html.

  2. Download the latest version of the starter kit: http://durandaljs.com/version/latest/HTML%20StarterKit.zip.

  3. Unzip it in your project folder.

  4. Rename it as durandal-cart.

  5. Add the Mongoose server to the project or use the server you feel comfortable with.

The starter kit will give you a very good starting point to understand how Durandal works. In the following projects we can start directly with the standalone Durandal library, but here we are going to analyze the parts of this framework carefully.

To dig further into Durandal, download the HTML Samples.zip file (http://durandaljs.com/version/latest/HTML%20Samples.zip), but it is up to you to test these interesting samples. The following are the contents of the starter kit:

  • The starter kit contains three folders and an HTML index file.

  • The app folder contains the application itself. This contains two folders: viewmodels and views.

  • The viewmodels...