Shopify API -> S3 backup
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Procfile
dataExporter.js
package.json
readme.md

readme.md

shopify exporter

A little worker to grab backup data from Shopify and save in on S3

requirements

  • shopify
  • Heroku
  • AWS S3

Install/config

  1. clone me
  2. add as a heroku app
  3. Add a 'private app' to shopify and get your API key and password
  4. give that heroku app the following vars:
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • SHOPIFY_API_KEY
  • SHOPIFY_API_PASSWORD
  • S3_BUCKET
  1. schedule!

Special Thanks/further reading

  • Shopify API has more possible endpoints you might like to hit
  • Heroku is deservedly famed for great docs but I didn't actually find a guide to S3 uploads that was quite as simple as I was going for, but anyhoo still helpful.
  • Matt Popovich wrote a great walkthrough for hosting a twitter bot on Heroku and I certainly couldn't have knocked this out in a few hours without that guide.