0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Solidus extension for using Shopify liquid theme files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Project Readme

Solidify

Build Status Code Climate Test Coverage security git.legal

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

License

MIT License