From project root, change to api directory
cd api
Switch 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.1
Install gems
bundle install --path=vendor/bundle
Install 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:seed
Start server
bundle exec rails server
From project root, change to client directory
cd client
Install yarn
brew install yarn
Install project dependencies
yarn install
In /client/config/dev.env.js
set the value of QUIZ_MASTER_API_HOST
to your local API
Start dev server
yarn run dev
Visit http://localhost:8080
in a browser
Run API tests:
cd api
bundle exec rspec spec
Run client tests:
cd client
yarn run unit