- Clone this repo
yarn
ornpm install
- Create a file
config/secrets.json
-- Only the first 4 fields are required
{
"api_key" : "",
"shopName" : "",
"password" : "",
"accessToken" : "",
"autoLimit" : "",
"timeout" : ""
}
- Obtain you API Key by generating API credentials
- Shop name is the part before
.shopify.com
, ie.my-shop
- Password -- Also generated when you create a new private app
- Access Token -- Not needed if you use API Key / Password, only when using OAuth 2.0
- Auto Limit -- can be boolean (default is
false
), or an object, ex.{"calls": 4, "interval": 1000}
where "calls" is the number per "interval" in milliseconds.- monitor this value by calling
shopify.callLimits
- monitor this value by calling
- Timeout --
- run
npm start