- 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 start
or start as a service :brew services start postgresql
createuser -s -r postgres
- Install dependencies :
bundle install
- Run :
rails db:create
thenrails db:migrate
- Create
.env
file from.env.example
and fill the values thanks to a teammate
rubocop
rspec
Or :
RUBYOPT='-W0' rspec
if there are Ruby 2.7 warnings
rails s