官术网_书友最值得收藏!

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
主站蜘蛛池模板: 郑州市| 柏乡县| 江陵县| 简阳市| 乌拉特前旗| 静安区| 海晏县| 通河县| 阳新县| 中方县| 舟曲县| 黎城县| 大宁县| 阳高县| 额尔古纳市| 延吉市| 泉州市| 安陆市| 深州市| 辛集市| 吴堡县| 娱乐| 西和县| 白玉县| 郸城县| 来安县| 沂南县| 德惠市| 屯昌县| 白玉县| 莲花县| 怀远县| 潼关县| 青川县| 沾益县| 平湖市| 临西县| 仙桃市| 丹巴县| 格尔木市| 利川市|