Skip to content

haruska/madness

Repository files navigation

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

sudo apt install postgresql
snap install redis

Setup regular user in postgres. Recommend no superuser and allowed to create dbs.

sudo -u postgres createuser --interactive <username>

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 tests
  • bin/dev: Start dev server. Watchers for rails, sidekiq, react, relay, and dart-sass
  • bin/rubocop -A: Auto-correct Rubocop violations
  • bin/rake schema: Generate GraphQL Schema