It's highly recommended you use a ruby version manager during development of this app. The locked ruby version is '2.5.1' and is required to develop on the application.
-
System dependencies
- ruby 2.5.1
- bundler
- yarn
- postgresql
- foreman
-
Tips in case of missing system dependencies
-
Setup and running
- After you've cloned the repo and installed ruby, run in the root folder
referee_hub/
:bundle install
to install ruby gem dependenciesyarn install
to install javascript dependenciesrails db:setup
to create the backend database (postgresql must be running)
- To run the application enter
foreman start -f Procfile.dev -p 3000
in your terminal.
- After you've cloned the repo and installed ruby, run in the root folder
-
How to run the test suite
- Backend specs can be run like:
be rspec spec/models/referee_spec.rb
- You can also run a subset specs by including a line number like:
be rspec spec/models/referee_spec.rb:37
- You can also run a subset specs by including a line number like:
- Backend specs can be run like:
-
Deployment instructions More to come here soon.