Madness Project
This project runs a private friends and family "office pool" for the NCAA March Madness tournament. People fill out brackets, get points for correct picks, and compete with one another.
For more info, see the DOCUMENTATION.
Development Setup
Postgres & Redis
Install using homebrew
brew install postgres redis
Start and Stop Postgres (if not auto-start by homebrew setup)
brew services start postgresql
brew services start redis
Ensure user can access postgres
createdb <username>
psql
Project setup
Install ruby from rbenv
rbenv install $(cat .ruby-version)
Standard rails / yarn setup
bundle install
yarn install
Database setup
bin/rails db:create:all
bin/rails db:schema:load
bin/rails db:seed
Commands
bin/rake
: Run testsbin/dev
: Start dev server. Watchers for rails, sidekiq, react, relay, and dart-sassbin/rubocop -A
: Auto-correct Rubocop violationsbin/rake schema
: Generate GraphQL Schema