Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Solidus Refinery CMS Authentication

Build Status Code Climate Test Coverage

This gem is a Refinery CMS and Solidus E-commerce connector.

THIS EXTENSION IS A WORKING PROGRESS BASED ON spree-refinerycms-authentication GEM.

Key features

  • It provides tabs in Refinery CMS and Solidus menus to easily switch between both backends
  • Shares admin sessions and user abilities between Refinery CMS and Solidus.

Compatibility

Installation

Create a new Rails 4.2.x application:

gem install rails -v 4.2.3
gem install bundler

Add Solidus and those gems to your Gemfile:

gem 'refinerycms', github: 'refinery/refinerycms', branch: 'master'
gem 'quiet_assets', :group => :development

# Add support for searching inside Refinery's admin interface.
gem 'refinerycms-acts-as-indexed', ['~> 2.0', '>= 2.0.0']

# Add support for Refinery's custom fork of the visual editor WYMeditor.
gem 'refinerycms-wymeditor', ['~> 1.0', '>= 1.0.6']

gem 'solidus'
gem 'solidus_auth_devise'
gem 'solidus-refinerycms-authentication', github: 'refinerycms-contrib/solidus-refinery-authentication', branch: 'master'

Note: DON'T install the gem refinerycms-authentication-devise. The authentication will be provided by Solidus and included in the gem solidus_auth_devise.

Run bundler, then install Solidus

bundle
rails g spree:install

Change the Spree.user_class in the initializer config/initializer/spree.rb

Spree.user_class = "Spree::User"

Run the migrations

rake db:migrate

Then, put those lines in config/routes.rb to use RefineryCMS and Solidus together and remove routes conflicts

root :to => "refinery/pages#home"
mount Spree::Core::Engine, :at => '/shop'
mount Refinery::Core::Engine, at: '/'

Note: If you try to mount both engines at => '/', Refinery will try to display a page even if you request a Solidus page. Every page load will be slow.

Create a Solidus admin user

bundle exec rake spree_auth:admin:create

All done! Now start your application

rails server

You should now be able to access Refinery admin at http://localhost:3000/refinery and Solidus admin at http://localhost:3000/shop/admin.

About

This gem is a Refinery CMS and Solidus E-commerce connector.

Resources

License

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.