Basic source from Shopify Theme Dawn, the goal is integration Shopify theme with React, just for Cart. Replace current cart drawer with react components
- Components Cart
- Components Cart Items
Workspace Area:
- ./src/scripts/theme-main.js
- ./src/scripts/modules/react-cart.js
Don't hesitate to create another file this is just scope. Create a new branch and pull request.
- Use Node v17
npm install
- Get the credentials and theme Id from each stores
- Install Shopify Theme Kit or Shopify CLI to serve
*** Install all dependencies you need
-
Run
NODE_ENV=dev npm start
-
In another terminal, run:
theme watch -c config/development.yml -e dev # or, to watch all environments theme watch -c config/development.yml --allenvs