The MERN Marketplace with a cart, payments, and orders
The MERN Marketplace application developed in Chapter 6, Exercising New MERN Skills with an Online Marketplace will be extended to include a shopping cart feature, Stripe integration for processing credit card payments, and a basic order-management flow. The implementations that follow are kept simple to serve as starting points for developing more complex versions of these features.
The following component-tree diagram shows all the custom components that make up the MERN Marketplace frontend. The features discussed in this chapter modify some of the existing components, such as Profile
, MyShops
, Products
, and Suggestions
, and also add new components, such as AddToCart
, MyOrders
, Cart
, and ShopOrders
:
Note
The code for the complete MERN Marketplace application is available on GitHub github.com/shamahoque/mern-marketplace.You can clone this code and run the application as you go through the code explanations in the rest of this chapter...