- KnockoutJS Essentials
- Jorge Ferrando
- 211字
- 2021-07-23 20:16:15
Installing components
To develop our real-world project, we need to install a few components and set up our first layout.
These are all the components you need to download:
Since we just work on the client side in the first chapters, we can mock data in the client and will not need a server side for now. So we can choose any place in our computer to start our project. I recommend you use the environment you usually employ to do your projects.
To start, we create a folder called ko-cart
and then create three folders and a file inside it:
- In the
css
folder, we will put all our css. - In the
js
folder, we will put all our JavaScript. - In the
fonts
folder, we will put all the font files needed by the Twitter Bootstrap framework. - Create an
index.html
file.
Now you should set up your files the same way as shown in the following screenshot:

The initial folder structure
Then we should set the content of the index.html
file. Remember to set all the links to the files we will need using the <script>
and <link>
tags:
<!DOCTYPE html> <html> <head> <title>KO Shopping Cart</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> </head> <body> <script type="text/javascript" src="js/vendors/jquery.min.js"> </script> <script type="text/javascript" src="js/vendors/bootstrap.min.js"> </script> <script type="text/javascript" src="js/vendors/knockout.debug.js"> </script> </body> </html>
With these lines of code, we have all we need to start our application.
- Learn ECMAScript(Second Edition)
- vSphere High Performance Cookbook
- 零基礎玩轉區塊鏈
- C和C++安全編碼(原書第2版)
- 深入淺出WPF
- C語言程序設計實訓教程
- Django Design Patterns and Best Practices
- MATLAB for Machine Learning
- C語言開發基礎教程(Dev-C++)(第2版)
- Essential C++(中文版)
- .NET 4.5 Parallel Extensions Cookbook
- Python開發基礎
- C指針原理揭秘:基于底層實現機制
- 跟戴銘學iOS編程:理順核心知識點
- Practical GIS