Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 2.47 KB

README.md

File metadata and controls

77 lines (49 loc) · 2.47 KB

Kiwi Phong Nguyen Jewelry Shopify / React Webstore

Visit Site

The project was forked from the reactHooks-redux-js-buy repository produced by Shopify.


INSTRUCTIONS

An example using js-buy-sdk built with React and Redux. This project was bootstrapped with Create React App.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone https://github.com/Shopify/storefront-api-examples.git this repository
  • cd storefront-api-examples
  • cd reactHooks-redux-js-buy
  • yarn install

Configuring

If you would like to connect your store to this example, open up src/redux/ducks/shopify/index.js and update the domain and storefrontAccessToken at the top of the page:

const client = Client.buildClient({
	storefrontAccessToken: "your-storefront-access-token",
	domain: "your-shop-name.myshopify.com",
})

To fetch a collection, uncomment the collection functions in src/components/App.js, and in src/redux/ducks/shopify/index.js

function getCollection()
fetchCollection()

React-icons are used as a dependency, but could easily be changed to something else.

Running

Start a local server:

yarn start

Further Reading / Useful Links

Contributing

For help on setting up the repo locally, building, testing, and contributing please see CONTRIBUTING.md.

Code of Conduct

All developers who wish to contribute through code or issues, take a look at the CODE_OF_CONDUCT.md.

License

MIT, see LICENSE for details.