#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
11-13-2016
Resources
Atom - https://atom.io/
iTerm2 - https://www.iterm2.com/
Homebrew - http://brew.sh/
Tutorials
Michael Hartl's Tutorial - https://www.railstutorial.org/
Daniel Kohoe'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
Terminalcurl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
RVM
Terminalbrew 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
Terminalecho '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
Terminalrails new test_app
cd test_app
rails s
Git Config
Terminalgit 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