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:install
Add 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_everything
To download theme files, run:
$ rails solidify:theme:download_all_themes
Running tests
To run the tests, you first need to create a test app. This can be done by running:
$ bundle exec rake
This 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:
$ rspec
or
$ spring rspec