Online RPG where you start as a rookie police officer and try to make it to the top
To run the game, follow the steps below:
bundle install
bundle exec figaro installCreate a PostgreSQL user named cops like this:
sudo -u postgres createuser -s cops
sudo -u postgres psql
\password cops
\qThe figaro gem (installed on the first step) will generate the unversioned file config/application.yml. Copy and paste the content from config/application.yml.example to config/application.yml and fill in the data needed.
After this, execute the following steps:
rake db:create
rake db:migrateFinally, run the game:
rails sRun the tests using:
bundle exec rspecYou can check the coverage for the project opening the coverage/index.html generated every time you run the RSpec.
Before pushing a commit, be sure to run the Rubocop and the tests:
rubocop -a
bundle exec rspec