README.md
[![Maintainability](https://api.codeclimate.com/v1/badges/a3a5daaab0db5b759cc3/maintainability)](https://codeclimate.com/github/HeavyTechRuby/history/maintainability)
[![Hits-of-Code](https://hitsofcode.com/github/HeavyTechRuby/history?branch=main)](https://hitsofcode.com/github/HeavyTechRuby/history/view?branch=main)
[![Test Coverage](https://api.codeclimate.com/v1/badges/a3a5daaab0db5b759cc3/test_coverage)](https://codeclimate.com/github/HeavyTechRuby/history/test_coverage)
# History
## Build
To run locally you should add local ENV via config files: .env.local, .env.test.local. They are added to .gitignore to allow each developer use his own.
Example config:
```bash
echo "DATABASE_URL=postgresql://postgres:password@postgres:5432/history_test" >> .env.test.local
cat .env.test.local
```
Then install dip gem to use docker commands:
```
gem install dip
docker-compose build
```
Prepare database and container:
`dip provision`
To run Rails commands:
`dip rails [command]`
To run /bin/bash session in container:
`dip runner`
To run Bundler commands:
`dip bundle [command]`
To run All Test suite:
`dip make`
To run RSpec commands:
`dip rspec [command]`
To run Cucumber tests:
`dip cucumber`