Skip to content

sprangular/sprangular_chimpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sprangular Chimpy

Mailchimp integration for sprangular

Installation

Add sprangular_chimpy & spree_chimpy to your Gemfile:

gem 'spree_chimpy',      github: 'DynamoMTL/spree_chimpy'
gem 'sprangular_chimpy', github: 'sprangular/sprangular_chimpy'

Bundle your dependencies and run the spree_chimpy installation generator:

bundle
bundle exec rails g spree_chimpy:install

Add the following to your application.js:

//= require sprangular/chimpy

Add Sprangular.Chimpy module as a dependency to your host apps module:

angular.module 'MyApp', ['Sprangular', 'Sprangular.Chimpy']

Include chimpy/subscribe.html somewhere in your layout (in footer is recommended):

  <ng-include src="'chimpy/subscribe.html'"/>

Testing

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

Copyright (c) 2015 Dynamo, released under the New BSD License