Interactive web app of the training workout used by the Israeli Women's National Team for the 2013 World Cup
- Ruby 3.0.3
- Rails 7.0.0
- Postgres
git clone [email protected]:inveterateliterate/wc_training.git
cd wc_training
bundle install
bundle exec rake db:create
Please review the ERD for a visual reprensentation of the schema.
Additionally, a png of the ERD is regenerated with each db:migrate
to erd.png
Lastly, db documentation can be pushed up to dbdocs with dbdocs build wc_training.dbml
and viewed at https://dbdocs.io/iribon9/WC-Training
bundle install
bundle exec rake db:migrate db:seed
rails server
open localhost:3000
Pull requests to the dev
branch will trigger review apps in Heroku.
The staging
branch will auto-deploy to the staging environment on Heroku.
The main
branch can then be auto-deployed to production after successful QA.
All Ruby/Rails unit tests must pass for a PR to be merged. They can be run locally with bundle exec rspec
This repo also runs SimpleCov to report on test coverage. To view the test coverage run open coverage/index.html
The project is set up to lint ruby so it's advised you have this integrated in your editor. A precommit hook has been added to run the linter when commiting.
You can run linting manually with:
- Ruby:
bundle exec rubocop
(if installed globally withgem install rubocop
)