Campagne is a simple Rails 3 engine gem. It adds a admin painel (/campagne) to manage and send newsletters, email marketing campaigns, alerts, etc.
Campagne uses resque-scheduler to schedule deliveries.
- Install redis and run redis-server
$ redis-server
- Rails 3 Gem
Include it in your Gemfile.
gem 'campagne'
Next install it with Bundler.
$ bundle
- Generator
Run campagne generator.
$ rails g campagne
Change config/initializers/campagne.rb configs.
- Migration
Run migration.
$ rake db:migrate
- Start
Start Resque workers and resque-scheduler:
$ rake resque:start_workers
$ rake resque:start_scheduler
Now start your application:
$ rails s
And open:
http://localhost:3000/campagne