Setting up the project

To start the new project, we are going to follow some steps that will give us a good starting point to develop our project:

  1. Create a new project as we did with the Knockout cart.
  2. Inside this project, copy the content of the Durandal Starter Kit project.
  3. Now we should have three folders in our project:
    • app: This contains our application
    • css: This contains stylesheets
    • lib: This contains third-party libraries
  4. Migrate the following libraries from the Knockout cart project to the Durandal cart project:
    • icheck
    • kovalidation
    • mockjax
    • mockjson
  5. Install a new library called Toastr from http://codeseven.github.io/toastr/.
  6. Update the ko.validation.js file on line 19 with the following code:
    define(["knockout", "exports"], factory);
  7. Move the style.css ...

Get KnockoutJS Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.