- Ruby: v2.5.0
- Postgres: v9.10
- Install dependencies
- Run
bundle install
- If on Mac OSX, you may encounter an error installing gem
pg
gem install pg -v '0.21.0' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config
bundle install
- If on Mac OSX, you may encounter an error installing gem
nokogiri
brew unlink gcc-4.2
gem uninstall nokogiri
xcode-select --install
bundle install
- If on Max OSX and
nokogiri
still failsbundle config build.nokogiri --use-system-libraries
bundle install
- If on Mac OSX, you may encounter an error installing gem
- Create / configure
.env
in root of the project - Set
DATABASE_USERNAME
andDATABASE_PASSWORD
to your Postgres username / password - Run
rake db:create
- Run
rake db:migrate
- Run
rake db:seed
(optionally)
- Start Rails server using Puma:
rails s
- Run RSpec test suite:
rspec
- Lint the project using Rubocop:
rubocop