This repo keeps the solution asked as test for the ActionNetwork company.
This app is also available at Heroku: https://actionnetworktest.herokuapp.com/
The following gems, between others, are used in this project:
- Rails 5.2.1
- Sidekiq
- Will Paginate
- rails-rspec
- bootstrap
The application consists in a simple post scheduler, where the use of Sidekiq, workers and Redis are basic requirements.
- Clone this project
- Edit the
config/database.yml
to setup the connection with your local database - Install
redis-server
and execute it - Run
bundle install
- Run
rake db:create db:migrate db:seed
to initialize and build the database - Run
bundle exec sidekiq
- In another shell tab or window, run
rails s
to test the application onlocalhost:3000
There's one Rspec's test that can be runned through bundle exec rspec
from the root of the application; it will check if the posts are being created with status 'published' by default.