git clone git@github.com:jaydenlin/shopify-nodejs-app.git
Go to Patrer Dashboard & login. (https://partners.shopify.com/).
Create a development store for the app to test.
Follow this guide to create a public app.
https://help.shopify.com/en/api/getting-started/authentication/public-authentication
./ngrok http 3000
And you will see a forwarding url, like
https://{XXXXXXX}.ngrok.io
Go to shopify Patrer Dashboard & login. (https://partners.shopify.com/)
Press Apps
to edit the app information
- App Url
https://{XXXXXXX}.ngrok.io/shopify
- Whitelist Url
https://{XXXXXXX}.ngrok.io/shopify
https://{XXXXXXX}.ngrok.io/shopify/callback
Go to shopify Patrer Dashboard & login. (https://partners.shopify.com/)
Press Apps
to see API key & API secret.
Please add .env
file at the root of this project folder.
SHOPIFY_API_KEY="{YOUR_API_KEY}"
SHOPIFY_API_SECRET="{YOUR_API_SECRET_KEY}"
FORWARDING_ADDRESS={ngrok forwarding url}
Install it and run:
npm install
npm run dev
Deploy it to the cloud with now (download)
now