Starter code for implementing Rails background jobs.
- Clone this repo, and change directories into
rails_background_jobs
. - Run
bundle install
in the Terminal. - Run
rake db:create db:migrate
to create your database and data tables. - Work off of the
master
branch.
- Set up the app to use Delayed Job for background jobs. Follow the Delayed Job docs and/or the Rails Background Jobs tutorial.
- Refactor the "favoriting" and "unfavoriting" features in the app to use background jobs. Hint: Look at
app/controllers/favorites_controller.rb
andapp/services/favorites_service.rb
.