Make sure you have these dependencies installed and running:
- Postgres
- Redis
Clone the repository, then
bin/setup
Seeds contain initial data for
- Team (Global Team)
- Games (UEFA Euro 2020)
- User (Admins)
bin/rails db:seed
Alternatively you can load the test fixtures, which contains multiple users, their bets, some game results, teams etc.
bin/rails db:fixtures:load
If you want even more data, you can use
bin/rails dev:setup
which loads the fixtures (same as described above), and adds some more random data (users, teams).
To run the entire test suite, use:
bin/test
Which calls
bin/rails test
bin/rails test:system
bundle exec rubocop
Node
heroku buildpacks:add heroku/nodejs
heroku buildpacks:add heroku/ruby
heroku addons:create heroku-redis:hobby-dev
RAILS_ENV=production NODE_ENV=production bin/rails assets:precompile
RAILS_SERVE_STATIC_FILES=true bin/rails s -e production