The Rails app with appropriate tools for quick starting developing shopify app.
How to install?
git clone https://github.com/ASoftCo/shopify-app-starter-kit.gitcd shopify-app-starter-kitgit remote set-url origin new_git_repo_urlbundle install && bundle exec rails db:create db:migrate- Install and run Redis
- Rename the app module in the
config/application.rbfile - Install ngrok
- Create a new app in your shopify partner account
- use ngrok url as a
App URLin theApp setupsection - add
whitelisted redirection URL(s):
http://<your_ngrok_host>/auth/shopify/callback
https://<your_ngrok_host>/auth/shopify/callback
rails credentials:editand add all settings fromconfig/credentials_sample.yml- Change all credential values in your
config/credentials.yml.encfile to appropriate ones.
- change
api_keyandsecret(can be found at theApp setupsection) - change
hostsetting to your ngrok url - add necessary shopify scopes
- add necessary shopify webhooks
- Add necessary workers to the
app/jobs/directory (e.g. if you addorders/createwebhook, you should createorders_create_job.rbworker) - For UI and CSS styles read about Polaris or Uptown CSS
Monitoring
There are several monitoring tools: New Relic, Sentry and Mixpanel.
All that you need to do is to change the values of appropriate keys (new_relic_license_key, sentry_dsn, mix_panel_token) for your environment in the config/credentials.yml.enc file.