https://github.com/tcd/shopify_util
🛒 Useful interactions with Shopify
https://github.com/tcd/shopify_util
Last synced: 4 months ago
JSON representation
🛒 Useful interactions with Shopify
- Host: GitHub
- URL: https://github.com/tcd/shopify_util
- Owner: tcd
- License: mit
- Created: 2020-01-10T22:48:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T21:44:58.000Z (over 2 years ago)
- Last Synced: 2025-01-03T08:14:15.277Z (6 months ago)
- Language: Ruby
- Size: 39.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ShopifyUtil

[](https://travis-ci.org/tcd/shopify_util)[](https://rubydoc.org/github/tcd/shopify_util/master)
## About
> **CAUTION** this gem contains code that can remove all data from a Shopify store. Make sure you look at code before you call it.
Useful interactions with Shopify using the [shopify_api gem](https://github.com/Shopify/shopify_api).
## Installation
```ruby
gem 'shopify_util', '~> 0.1.0'
```## Usage
### Configuration
#### With Rails
```ruby
# config/initializers/shopify_util.rbShopifyUtil.configure do |config|
# If you're using encrypted credentials with multiple environments.
vars = Rails.application.credentials[Rails.env.to_sym][:shopify]
config.shop_name = vars[:shop_name] # https://{shop_name}.myshopify.com
config.api_key = vars[:api_key] # API key
config.api_password = vars[:api_password] # API password
config.api_version = vars[:api_version] # Shopify API version
end
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/tcd/shopify_util.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
---
- https://guides.rubygems.org/name-your-gem/
- https://guides.rubygems.org/patterns/
- https://github.com/github/graphql-client/issues/216
- https://medium.com/@connorstack/understanding-ruby-load-require-gems-bundler-and-rails-autoloading-from-the-bottom-up-3b422902ca0