duffyjp / dfmch_bootcamp_2017

DFMCH Rails Bootcamp [2017-11-03]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

DFMCH Rails Bootcamp 2017

Mac Setup

Xcode Command-Line Tools

  • It will ask if you want to install all of Xcode, you don't need that. It turns out you need that for capybara-webkit, so choose "XCode". You can also install from the App Store.
xcode-select --install
sudo xcodebuild -license

HomeBrew

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

Basic Utils

brew install ack gpg imagemagick sqlite

MySQL Server

  • It will ask for a root password, anything is fine-- We need it later though
brew install mysql
brew services start mysql
mysql_secure_installation

Cache Server

brew install memcached
brew services start memcached

Capybara-Webkit

brew install qt@5.5
echo 'export PATH="$(brew --prefix qt@5.5)/bin:$PATH"' >> ~/.bashrc
brew link --force qt@5.5

RVM - Ruby Version Manager

  • Close all terminals when done with this step
gpg --keyserver hkp://pgp.mit.edu --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash

rails new lbrry bundle rails g scaffold Person name phone age:integer rake db:migrate

rails g scaffold Loan person:references book:references due_date:date return_date:date

About

DFMCH Rails Bootcamp [2017-11-03]

License:MIT License


Languages

Language:Ruby 71.0%Language:HTML 22.4%Language:CSS 4.1%Language:CoffeeScript 1.8%Language:JavaScript 0.7%