- Install Ruby for macOS with
brew install rubyand 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 installto install all other gem dependencies
- Make sure to run
- Install nodenv and yarn
brew install nodenvandbrew install yarnfor macOS- You may need to
yarn cache cleanand thenyarn installif 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 redisthen
$ 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
