Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aidear3/shopify-demo-app-hooks
The Shopify Demo App with React Hooks
https://github.com/aidear3/shopify-demo-app-hooks
koa nextjs react shopify shopify-app
Last synced: 4 days ago
JSON representation
The Shopify Demo App with React Hooks
- Host: GitHub
- URL: https://github.com/aidear3/shopify-demo-app-hooks
- Owner: aidear3
- Created: 2023-05-20T02:23:07.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-05-20T02:24:50.000Z (over 1 year ago)
- Last Synced: 2024-12-06T08:04:37.940Z (2 months ago)
- Topics: koa, nextjs, react, shopify, shopify-app
- Language: JavaScript
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shopify Demo App with Hooks
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md)
This repository contains a modified version of the completed app for the [Build a Shopify app with Node and React](https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react) tutorial.
## 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
* Modified `package.json` scripts
* Simpler `next.config.js` file
* 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:
1. [Install the latest stable version of Node.js.](https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/set-up-your-app#install-the-latest-stable-version)
2. Install npm packages (run: npm install).
3. [Expose your dev environment.](https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/embed-your-app-in-shopify#expose-your-dev-environment)
4. [Get a Shopify API key and Shopify API secret key.](https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/embed-your-app-in-shopify#get-a-shopify-api-key)
5. [Add the Shopify API key and Shopify API secret key.](https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/embed-your-app-in-shopify#add-the-shopify-api-key)
6. Start your app (run: npm run dev).
7. [Authenticate and test your app.](https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/embed-your-app-in-shopify#authenticate-and-test)
8. [Set up your app navigation.](https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/build-your-user-interface-with-polaris#set-up-your-app-navigation)
9. [Add your ngrok url as Host.](https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/charge-a-fee-using-the-billing-api#set-up)