- KnockoutJS Essentials
- Jorge Ferrando
- 208字
- 2021-07-23 20:16:15
A real-world application – koCart
In order to demonstrate how to use Knockout in a real application, we are going to build a simple shopping cart called koCart.
First of all we are going to define the user stories. We just need a few sentences to know what we want to achieve, which are as follows:
- The user should be able to view the catalog
- We should have the ability to search the catalog
- The user can click on a button to add items to the catalog
- The application will allow us to add, update, and delete items from the catalog
- The user should be able to add, update, and delete items from the cart
- We will allow the user to update his personal information.
- The application should be able to calculate the total amount in the cart
- The user should be able to complete an order
Through user stories, we can see that our application has the following three parts:
- The catalog, which contains and manages all the products we have in the shop.
- The cart, which has responsibility for calculating the price of each line and the total amount of the order.
- The order, where the user can update his personal information and confirm the order.
推薦閱讀
- Java語言程序設計
- Building Modern Web Applications Using Angular
- Linux C/C++服務器開發實踐
- Spring技術內幕:深入解析Spring架構與設計
- C語言程序設計
- Mastering Scientific Computing with R
- Mastering Python High Performance
- LabVIEW虛擬儀器程序設計從入門到精通(第二版)
- 寫給程序員的Python教程
- Python計算機視覺和自然語言處理
- 零基礎學Java第2版
- Java EE輕量級解決方案:S2SH
- MySQL數據庫應用技術及實戰
- 算法學習與應用從入門到精通
- R for Data Science Cookbook