$ bundle install
$ bundle exec rake db:migrate
$ bundle exec rake db:seed_fu
$ bundle exec rails s
$ bundle exec sidekiq
You may also need Redis on local machine for rendering PV ranking and queuing background jobs. If you haven't install Redis, run
$ brew install redis
and run
$ redis-server
to start Redis.
You can monitor the background jobs through sidekiq dashboard. Start sidekiq
$ bundle exec sidekiq
and sign-in as Admin and go to root_url/sidekiq
.
You can run rspec with guard. Temporary, it will run without Spring
.
$ bundle exec guard
As Admin (admins/sign_in)
email: admin@example.com
password: password
As User (users/sign_in)
email: user@example.com
password: password