Solidify
Rails meets Shopify liquid theme files.
Installation
Add this line to your application's Gemfile:
gem 'solidify'And then execute:
$ bundle install
Usage
To get the necessary migrations into your app, run the following
(this assumes you have already set solidus with solidus_auth_devise):
$ rails generate solidify:installAdd these ENV variables so that Carrierwave gem can store your theme files to S3:
AWS_ACCESS_KEY_ID: ''
AWS_SECRET_ACCESS_KEY: ''
AWS_S3_REGION: 'us-east-1'
AWS_S3_BUCKET_NAME: 'solid5-shop'Run this command to seed the default theme, shop settings and link lists:
$ rails solidify:shop:seed_everythingTo download theme files, run:
$ rails solidify:theme:download_all_themesRunning tests
To run the tests, you first need to create a test app. This can be done by running:
$ bundle exec rakeThis will create a dummy app in /spec/dummy directory and run rubocop and all rspec tests. To run the tests second time, you don't need to run it through rake, but can run it normally via:
$ rspecor
$ spring rspec