- Install rvm
- Install ruby-2.7.2 :
rvm install "ruby-2.7" - Install bundler :
gem install bundler - Install postgres :
brew install postgres- start the postegres server just once :
pg_ctl -D /usr/local/var/postgres startor start as a service :brew services start postgresql createuser -s -r postgres
- Install dependencies :
bundle install - Run :
rails db:createthenrails db:migrate - Create
.envfile from.env.exampleand fill the values thanks to a teammate
rubocop
rspec
Or :
RUBYOPT='-W0' rspec if there are Ruby 2.7 warnings
rails s