Installing Ruby, Rails, and Postgres

Most of what we’ll do in building our example Rails application, Shine, are commands you can execute or code you’ll enter, but getting Ruby, Rails, and Postgres installed on your system is much more system-specific. Fortunately, the authors of these technologies have made the installation process as pain-free as possible. First, start with Ruby and Rails.

Ruby and Rails

If you don’t have Ruby installed, follow the instructions on Ruby’s website.[6] I recommend using an installer or manager, but as long as you have Ruby 2.3.1 or later installed and the ability to install gems you’ll be good to go.

With Ruby installed, you’ll need to install Rails. This is usually as simple as

 $ ​​gem​​ ​​install​​

Get Rails, Angular, Postgres, and Bootstrap, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.