Shuff.io is a record and stat tracking system developed for the Royal Palms Chicago Shuffleboard League.
For more information about the site itself, visit its FAQ.
Shuff.io is a pretty standard Rails application that runs on Heroku and PostgeSQL.
When working on a feature, start a new branch on your own fork of the project. You cannot push directly to the master branch.
When your work is complete, open a Pull Request. Once tests are passing, and someone reviews your code, you can merge to the master branch.
You should run the site locally to test your changes before opening up pull requests. You will need Ruby and PostgeSQL installed.
- run
bundle install
to install dependant gems - run
rake db:setup
to create your database and load seed data - run
rails s
to start a local server
The repo has Dockerfile
and docker-compose.yml
files to get started with developement quickly. When using Docker-Compose, the app directory will be mounted as a volume so that you can see changes without needing to rebuild the container.
- run
docker-compose up
to bring up services - run
docker-compose exec web db:setup
to create your database and load seed data
If you end up with file permission errors around the database files, check permissions on tmp/db
.
Do not push changes directly to Heroku!
After a pull request is merged, the site will automatically deploy (assuming tests are passing).