The easiest way of installing the development environment on Mac is using Homebrew. Open up the Terminal and install Homebrew by following the instructions on the main page of their website.
macOS comes with Ruby pre-installed although you may need to update it if you are using an older OS version.
Check the installed version:
/usr/bin/ruby -v
If you have version 2.4 or above you're fine.
Use the following command to install Ruby if you have an older version installed:
brew install ruby
Go to VS Code's website and click on the "Download for Mac" button.
Extract the downloaded zip file and copy Visual Studio Code.app
to
Applications
.
Go to the Google Chrome's website and hit "Download Chrome".
Open the downloaded .dmg
file and drag & drop Chrome to the Applications
folder.
Use the following line in Terminal to install:
brew install git
Use the following line in Terminal to install:
brew install heroku/brew/heroku