Setting Up Rails Development Environment

MacOS

  1. Install Homebrew if you do not already have it
  2. Install rbenv via Homebrew (brew install rbenv)
  3. Follow the rbenv Homebrew installation guide
  4. Install ruby version 2.7.0 using rbenv (rbenv install 2.7.0)
  5. Set ruby 2.7.0 as your global version (rbenv global 2.7.0). You can also set it locally in the app once we create it (rbenv local 2.7.0)
  6. Install bundler 2.0.1 (gem install bundler -v 2.0.1)
  7. Install the rails gem 6.0.3 (gem install rails 6.0.3)
  8. Install Docker Desktop using Docker documentation
  9. Git should already be installed (if not you may have to install the Apple developer tools)
  10. Make should already be installed (if not you may have to install the Apple developer tools)

Linux (Ubuntu 18.04)

  1. Update apt-get (apt-get update)
  2. Install Ruby and Rails dependencies (sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn)
  3. Follow the rbenv git checkout installation guide
  4. Install ruby version 2.7.0 using rbenv (rebnv install 2.7.0)
  5. Set ruby 2.7.0 as your global version (rbenv global 2.7.0). You can also set it locally in the app once we create it (rbenv local 2.7.0)
  6. Install bundler 2.0.1 (gem install bundler -v 2.0.1)
  7. Install the rails gem 6.0.3 (gem install rails 6.0.3)
  8. Install Docker Engine Community using the Docker Installation Guide