Installing Durandal
To install Durandal, follow these steps:
Download the latest version of the starter kit: http://durandaljs.com/version/latest/HTML%20StarterKit.zip.
Unzip it in your project folder.
Rename it as
durandal-cart
.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
andviews
.The
viewmodels
...