From project root, change to api directory
cd apiSwitch to ruby 2.3.1 via rbenv or similar
brew install rbenv
brew install ruby-build
rbenv install 2.3.1
rbenv local 2.3.1Install gems
bundle install --path=vendor/bundleInstall and setup postgresql if not installed
brew install postgresql
...Update config/database.yml if desired and create + migrate + seed the development database
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails db:seedStart server
bundle exec rails serverFrom project root, change to client directory
cd clientInstall yarn
brew install yarnInstall project dependencies
yarn installIn /client/config/dev.env.js set the value of QUIZ_MASTER_API_HOST to your local API
Start dev server
yarn run devVisit http://localhost:8080 in a browser
Run API tests:
cd api
bundle exec rspec specRun client tests:
cd client
yarn run unit