How alanbinu007/amazone_clone_reactjs works
This is a React e-commerce clone. Customers browse a fixed product catalog, add or remove items in a shared basket, authenticate, proceed through checkout and Stripe payment, and view saved orders. The graph follows the implemented route and component calls; product and basket data are client-side, while Firebase provides authentication and order storage. README capabilities are retained, but product search and Firebase Storage are not evident in the sampled runtime. Several component excerpts and backend details were unavailable, so unsampled links are omitted.
Main entry points: App.js Route Shell · StateProvider.js State Context · Payment.js Payment Form · Header.js Navigation
Components 20
Application
- Route Shell
src/App.js - Navigation
src/Header.js - Sign In
src/Login.js
Shopping
- Product Catalog
src/Home.js - Product Item
src/Product.js - Catalog Data
src/Home.js
Checkout
- Basket Review
src/Checkout.js - Basket Item
src/CheckoutProduct.js - Basket Total
src/Subtotal.js - Payment Form
src/Payment.js - Order History
src/Orders.js - Order Display
src/Order.js
Services
- Firebase Client
src/firebase.js - Order Store
src/firebase.js - Stripe
- Payment Endpoint
src/axios.js - Payment Function
functions/index.js
Shared State
- State Context
src/StateProvider.js - Basket Reducer
src/reducer.js
Other components
- Customer
Connections 29
- Customer → Route Shell: uses
src/App.js - Route Shell → Navigation: renders
src/App.js - Route Shell → Product Catalog: routes to
src/App.js - Route Shell → Basket Review: routes to
src/App.js - Route Shell → Payment Form: routes to
src/App.js - Route Shell → Order History: routes to
src/App.js - Route Shell → Sign In: routes to
src/App.js - Product Catalog → Product Item: renders
src/Home.js - Product Catalog → Catalog Data: defines
src/Home.js - Basket Review → Basket Item: renders
src/Checkout.js - Basket Review → Basket Total: renders
src/Checkout.js - Payment Form → Basket Item: renders
src/Payment.js - Order History → Order Display: renders
src/Orders.js - Route Shell → State Context: uses
src/index.js - State Context → Basket Reducer: dispatches
src/index.js - Product Item → State Context: dispatches
src/Product.js - Basket Item → State Context: dispatches
src/CheckoutProduct.js - Navigation → State Context: reads
src/Header.js - Navigation → Firebase Client: signs out
src/Header.js - Sign In → Firebase Client: authenticates
src/Login.js - Route Shell → Firebase Client: observes auth
src/App.js - Route Shell → State Context: sets user
src/App.js - Basket Total → State Context: reads
src/Subtotal.js - Payment Form → Payment Endpoint: requests intent
src/Payment.js - Payment Endpoint → Payment Function: forwards request
- Payment Form → Stripe: confirms payment
src/Payment.js - Payment Form → Order Store: writes order
src/Payment.js - Payment Form → State Context: empties basket
src/Payment.js - Order History → Order Store: loads orders
src/Orders.js