Skip to content

mespina/spree_newsletters

Repository files navigation

SpreeNewsletters

Allow Mailchimp newsletter subscription on Spree stores.

Installation

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

Configuration

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

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

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

About

Allow Mailchimp newsletter subscription on Spree stores

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published