Skip to content

inveterateliterate/wc_training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Coverage

WC Training

Interactive web app of the training workout used by the Israeli Women's National Team for the 2013 World Cup

Getting Started

Prerequisites

  • Ruby 3.0.3
  • Rails 7.0.0
  • Postgres

Setting Up

  • 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

Running in Development

Loading Environment

  • bundle install
  • bundle exec rake db:migrate db:seed
  • rails server
  • open localhost:3000

Committing

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.

Testing

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

Linting

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 with gem install rubocop)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published