- 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
推薦閱讀
- Microsoft Application Virtualization Cookbook
- Mastering Selenium WebDriver
- 無代碼編程:用云表搭建企業數字化管理平臺
- JavaScript動態網頁開發詳解
- 嚴密系統設計:方法、趨勢與挑戰
- Flux Architecture
- ArcGIS By Example
- 深入分布式緩存:從原理到實踐
- Solr Cookbook(Third Edition)
- 平面設計經典案例教程:CorelDRAW X6
- 硬件產品設計與開發:從原型到交付
- Vue.js 3應用開發與核心源碼解析
- UX Design for Mobile
- Java高并發編程詳解:深入理解并發核心庫
- PHP Microservices