spree_instagram

A Spree extension for displaying moderated Instagram photos.

Last updated on: May 12 at 06:11 PM

source code bug tracker
Opensource
2 2 1
owner:  BryceFrye

Spree Instagram

A Spree extension for curating Instagram photos on your website.

Installation

Add spree_instagram and httparty to your Gemfile:

gem 'httparty'
gem 'spree_instagram'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_instagram:install

Set your Instagram client id in initializers/instagram.rb:

module InstagramConfig
CLIENT_ID = "your_client_id'
end

An 'Instagram' tab will be added to admin where you can moderate the photos you wish to display. To get an array of approved photos, simply use the approved_photos method:

@photos = Spree::InstagramPhoto.approved_photos

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec spec

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_instagram/factories'

Copyright (c) 2013 [name of extension creator], released under the New BSD License

compatible spree versions
tags spree versions
master ~> 2.0.0
authors
Bryce Frye