Coder Social home page Coder Social logo

buddhi-desilva / spree-refinery-authentication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amacneil/spree-refinery-authentication

0.0 2.0 0.0 74 KB

Gem which configures Spree 1.2+ to use RefineryCMS for authentication

License: MIT License

spree-refinery-authentication's Introduction

Spree RefineryCMS Authentication gem

Spree 1.2 has a fantastic pluggable authentication system. This gem configures Spree to use the built in (Devise) authentication in RefineryCMS, and allows you to share authentication between the two engines.

Installation

Create a new RefineryCMS application:

gem install refinerycms
refinerycms refinery_spree

Add Spree and this gem to your Gemfile:

gem 'spree', '~> 1.2.0'
gem 'spree-refinerycms-authentication', :git => 'git://github.com/adrianmacneil/spree-refinery-authentication.git'

Run bundler, then install Spree

bundle
rails g spree:install

Note: The Spree installer will automatically copy and run a migration from this gem. If you want to copy the migration manually, you can use the following command:

rake railties:install:migrations FROM=spree_refinery_authentication

Optionally put this line at the top of config/routes.rb to use RefineryCMS for your home page:

root :to => "refinery/pages#home"

Start your application, and create a RefineryCMS user. You can then make yourself a Spree admin using the Rails console:

rails console
> Refinery::User.first.spree_roles << Spree::Role.find_or_create_by_name("admin")

All done! You should now be able to access Refinery at http://localhost:3000/refinery and Spree at http://localhost:3000/admin.

spree-refinery-authentication's People

Contributors

amacneil avatar parndt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.