Allow Mailchimp newsletter subscription on Spree stores.
Add spree_newsletters to your Gemfile:
gem 'spree_newsletters'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g spree_newsletters:install
After installing, you need to set configurations MailChimp, establishing the settings on your secrets file as shown below:
development:
...
mailchimp_api_key: MAILCHIMP_API_KEY
mailchimp_list_id: MAILCHIMP_LIST_ID
production:
...
mailchimp_api_key: MAILCHIMP_API_KEY
mailchimp_list_id: MAILCHIMP_LIST_ID
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
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_newsletters/factories'
Copyright (c) 2015 [name of extension creator], released under the New BSD License