Instagram and links grid management.
- Append this extension to your website's
Gemfile
:
gem 'spree_homepage', github: 'https://github.com/spark-solutions/spree_homepage'
- Install the gem using Bundler:
bundle install
- Copy and run migrations
bundle exec rails g spree_homepage:install
- Open
config/credentials.yml.enc
by runningEDITOR="nano" bin/rails credentials:edit
(change the value ofEDITOR
if necessary). Insert the following credentials:
facebook_app_id: <client_id_here>
facebook_app_secret: <secret_here>
Running bin/rails credentials:edit
creates an encrypted configuration file and places the access key inside config/master.key
(ignored by Git). In production, the access key is provided using the RAILS_MASTER_KEY
environment variable.
-
Restart your server
If your server was running, restart it so that it can find the installed spree homepage files.
First bundle your dependencies, then run rake
. rake
will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app
.
bundle
bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_homepage/factories'