Shopify Demo App with Hooks
Changes from the original
I made a few changes to the code as I walked through the tutorial. The main modifications are:
- Using only React hooks for components
- Using hooks for Apollo mutations and queries
Shopify tutorial setup for demo app
If you plan to use this completed app, then make sure that you first complete these setup instructions:
- Install the latest stable version of Node.js.
- Install npm packages (run: npm install).
- Expose your dev environment.
- Get a Shopify API key and Shopify API secret key.
- Add the Shopify API key and Shopify API secret key.
- Start your app (run: npm run dev).
- Authenticate and test your app.
- Set up your app navigation.
- Add your ngrok url as Host.