This is for Uber's coding challenge. Anonysender sends email through Mailgun or Mandrill, falling back if one fails. It's written in Ruby on Rails and Backbone.
Before beginning, ensure you have Ruby 2.0 or greater and Bundler installed.
Install the dependencies:
$ bundle install
Run the server:
$ bundle exec rails s
Make sure that you have set all the keys in the .env.sample, or it will be unable to send email!
The non-boilerplate code:
- ./app/assets/javascripts/application.js
- ./app/assets/stylesheets/application.css.scss
- ./app/controllers/mails_controller.rb
- ./app/views/mails/new.html.erb
- ./lib/mailer.rb
- ./lib/mailer/adaptor.rb
- ./lib/mailer/mailgun.rb
- ./lib/mailer/mandrill.rb
The specs are: