- Install Ruby for macOS with
brew install ruby
and check the version withruby -v
. Using a version manager like RVM you can install or switch to the required version, 2.5.7. - Install the Bundler 2 gem using
gem install bundler
- Make sure to run
bundle install
to install all other gem dependencies
- Make sure to run
- Install nodenv and yarn
brew install nodenv
andbrew install yarn
for macOS- You may need to
yarn cache clean
and thenyarn install
if you already have yarn on your machine
- You may need to
- UI-Pictionary uses Sidekiq for background processing, and Sidekiq requires Redis
-
Install and run redis on macOS
$ brew install redis
then
$ brew services start redis
-
Because you will need several processes running for this app, it's advised to use the foreman gem
$ gem install foreman
(only necessary if foreman is not already on your machine globally)
Run the processes:
$ foreman start
If you would prefer running each process in separate tabs, these are the ones you will need:
clock: bin/clockwork ./clock.rb
web: bin/rails s
webpack: bin/webpack-dev-server
worker: bin/sidekiq -C config/sidekiq.yml