helphub

Helphub system allows organizing charity fund infrastructure

17
2
Ruby

logo_help_hub

README

How To Setup Locally

cp .env.example .env
docker-compose build
docker-compose run --rm app bash -c "bundle install && bundle exec rails db:create db:migrate db:seed && yarn --check-files"
docker-compose up -d

Deploy

Code will lbe deployed autmatically after push into master branch. See github actions.

Run Tests

CI will start automatically on every code update. See github actions.

For local testing:

docker-compose run app bash -c 'RAILS_ENV=test rspec spec'

Run Linter

docker-compose run app bash -c 'rubocop'

Run Automation Tests

docker-compose exec app xvfb-run -a bundle exec cucumber

To debug this you can try

  1. Set breakpoints in the steps code:
  binding.pry
  1. Or take a screenshot:
  page.save_screenshot('/app/test.png')