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

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
主站蜘蛛池模板: 普宁市| 休宁县| 大荔县| 临洮县| 大同县| 崇信县| 太原市| 长白| 台江县| 连江县| 漠河县| 布尔津县| 康马县| 渭南市| 印江| 阳春市| 响水县| 布拖县| 玉田县| 兴化市| 绥芬河市| 平阳县| 朝阳市| 鄢陵县| 临澧县| 桃园市| 宜城市| 马尔康县| 黔江区| 南溪县| 柳林县| 郴州市| 连州市| 濮阳县| 东安县| 兴安盟| 宁乡县| 鹤岗市| 大理市| 房产| 滁州市|