- Build Applications with Meteor
- Dobrin Ganev
- 175字
- 2021-07-09 19:48:55
Building a Shopping Cart
In this chapter, we will build a simple create, read, update, and delete (CRUD) application that will allow the user to add items to a shopping cart, remove them, update the quantity of each item, and track the total price of all added items. This is not, by any means, an e-commerce app but a brief overview of data handling with Meteor. For the frontend view layer, we will use React; also, we will take advantage of Meteor's reactive data package react-meteor-data to handle all the data changes and the dynamic rendering.
First, we will start with a very basic CRUD implementation and, moving forward, we'll refactor the app with the introduction of more concepts.
Here's what this chapter covers:
- An overview of basic project structures and installation of the required packages
- An overview of the application architecture
- Inserting sample data in MongoDB
- Implementation of a client-side routing with React-Router
- Refactoring the app from client database edits to Meteor's Methods
- Adding database Schemas to Meteor collections and validations on Methods
推薦閱讀
- 深入核心的敏捷開發:ThoughtWorks五大關鍵實踐
- Python數據分析入門與實戰
- Leap Motion Development Essentials
- Mastering Python Scripting for System Administrators
- Getting Started with PowerShell
- 單片機C語言程序設計實訓100例
- Mastering openFrameworks:Creative Coding Demystified
- Terraform:多云、混合云環境下實現基礎設施即代碼(第2版)
- 深度學習原理與PyTorch實戰(第2版)
- 移動增值應用開發技術導論
- 深入解析Java編譯器:源碼剖析與實例詳解
- Head First Kotlin程序設計
- 游戲設計的底層邏輯
- Python程序設計:基礎與實踐
- 數據庫技術及應用教程上機指導與習題(第2版)