Skip to content

Building block for spree social networking features (provides authentication and account linkage)

License

Notifications You must be signed in to change notification settings

OmSolution/spree_social

 
 

Repository files navigation

Spree Social

Build Status Code Climate

Core for all social media related functionality for Spree. The Spree Social gem handles authorization, account creation and association through social media sources such as Twitter and Facebook. This gem is beta at best and should be treated as such. Features and code base will change rapidly as this is under active development. Use with caution.


Setup for Production

  1. Add this extension to your Gemfile with this line:

Spree >= 3.1

gem 'spree_social', github: 'OmSolution/spree_social'
  1. Install the gem using Bundler:
bundle install
  1. Copy & run migrations
bundle exec rails g spree_social:install
  1. Restart your server

If your server was running, restart it so that it can find the assets properly.

Preference(optional): By default url will be /users/auth/:provider. If you wish to modify the url to: /member/auth/:provider, /profile/auth/:provider, or /auth/:provider then you can do this accordingly in your config/initializers/spree.rb file as described below:

Spree::SocialConfig[:path_prefix] = 'member'  # for /member/auth/:provider
Spree::SocialConfig[:path_prefix] = 'profile' # for /profile/auth/:provider
Spree::SocialConfig[:path_prefix] = ''        # for /auth/:provider

About

Building block for spree social networking features (provides authentication and account linkage)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 79.7%
  • HTML 19.9%
  • Other 0.4%