Skip to content

Latest commit

 

History

History
104 lines (74 loc) · 2.15 KB

File metadata and controls

104 lines (74 loc) · 2.15 KB

You are here because you already did Le Wagon FullStack and purchased a new computer. Let's set it up!

Command Line Tools

xcode-select --install

Sublime Text 3

Download and install it. Package Control / Config is now automatic at step "Dotfiles" below.

Homebrew

sudo rm -rf /usr/local/Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo chown -R $USER:admin /usr/local
brew update
function install_or_upgrade { brew ls | grep $1 > /dev/null; if (($? == 0)); then brew upgrade $1; else brew install $1; fi }
install_or_upgrade "git"
install_or_upgrade "wget"
install_or_upgrade "imagemagick"
install_or_upgrade "jq"
install_or_upgrade "openssl"

Oh-my-zsh

curl -L http://install.ohmyz.sh | sh

( + Q) your terminal and restart it.

GitHub

You have a new computer, let's generate a new SSH key:

mkdir -p ~/.ssh && ssh-keygen -t rsa -C "your_email@example.com" # Change this email!
cat ~/.ssh/id_rsa.pub

Copy-paste the public SSH key which we outputed with the last command and add it to GitHub.

Dotfiles

export GITHUB_USERNAME="your_github_nickname" # Change this nickname!
mkdir -p ~/code/$GITHUB_USERNAME && cd $_ && git clone git@github.com:$GITHUB_USERNAME/dotfiles.git
cd ~/code/$GITHUB_USERNAME/dotfiles
git remote add upstream git@github.com:lewagon/dotfiles.git
git pull upstream master
zsh install.sh

( + Q) your terminal and restart it.

Ruby

sudo rm -rf $HOME/.rbenv /usr/local/rbenv /opt/rbenv /usr/local/opt/rbenv
brew uninstall --force rbenv ruby-build
unset RBENV_ROOT && source ~/.zshrc
brew install rbenv ruby-build && source ~/.zshrc
rbenv install 2.3.3
rbenv global 2.3.3

( + Q) your terminal and restart it. Check your ruby version with:

ruby -v

Gems

gem install bundler rails

Check our rails version with:

rails -v

Postgresql

brew install postgresql
brew services start postgresql

Redis

(Only if you use Sidekiq)

brew install redis
brew services start redis