#54 Getting Started - Ruby on Rails - Development Environment

Summary

Here is a simple workflow of setting up a new development environment. From Homebrew, ZSH, Atom, and RVM, learn how to easily get your macOS environment up and running.
rails development environment 8:22

Resources

Tutorials

Michael Hartl's Tutorial - https://www.railstutorial.org/
Daniel Kehoe's Tutorial - http://learn-rails.com/learn-ruby-on-rails.html

Summary

Homebrew

# Terminal
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Oh-My-ZSH

# Terminal
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh

RVM

# Terminal
brew install gpg
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
source /Users/$(whoami)/.rvm/scripts/rvm

Rails

# Terminal
echo 'gem: --no-document' >> ~/.gemrc
rvm list known
rvm install 2.3.3
gem update --system
gem install bundler
gem install rails

Starting new Ruby on Rails app

# Terminal
rails new test_app
cd test_app
rails s

Git Config

# Terminal
git config --global color.ui true
git config --global user.name "NAME"
git config --global user.email "EMAIL"
ssh-keygen -t rsa -C "EMAIL"
cat ~/.ssh/id_rsa.pub