- Git
git version
- GitHub Account
- Assumes Mac with macOS 10.12+
// Change to project root direcory
cd ~/projects
// Git clone project...
git clone [email protected]:jerrobison/subkitchen-front.git
// cd into that directory
cd sub kitchen-front
// That’s it!!
Install / update nvm:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
Ensure terminal uses the updated nvm:
export NVM_DIR="/Users/$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
Check for installed node versions:
$ nvm ls 127 ↵
v4.5.0
v6.9.0
-> v7.2.1
system
default -> node (-> v7.2.1)
node -> stable (-> v7.2.1) (default)
stable -> 7.2 (-> v7.2.1) (default)
iojs -> N/A (default)
lts/* -> lts/argon (-> v4.5.0)
lts/argon -> v4.5.0
lts/boron -> v6.9.2 (-> N/A)
Install v4.7.0:
nvm install v4.7.0
Set node v 4.7.0 as project version:
// cd into project directory
cd ~/pro/project/subkitchen
// Set correct node version using nvm:
$ nvm use v4.7.0
Now using node v4.7.0 (npm v2.15.11)
$ nvm ls
v4.5.0
-> v4.7.0
v6.9.0
v7.2.1
system
default -> node (-> v7.2.1)
node -> stable (-> v7.2.1) (default)
stable -> 7.2 (-> v7.2.1) (default)
iojs -> N/A (default)
lts/* -> lts/argon (-> v4.7.0)
lts/argon -> v4.7.0
lts/boron -> v6.9.2 (-> N/A)
$
npm install -g bower
npm install -g ember-cli
Download and unzip from http://phantomjs.org/
heroku git:clone -a subkitchen-api
Verify Homebrew is installed:
brew --version
Homebrew 1.1.5
Homebrew/homebrew-core (git revision 84c76; last commit 2016-12-28)
Install Homebrew if needed:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install ruby version manager and desired ruby version:
// Install GPG if you don’t have it already
brew install gpg
// Install RVM gpg Public Keys:
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
// Download + Install RVM:
curl -sSL https://get.rvm.io | bash -s stable --ruby=2.3.1
// Verify ruby version:
ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin16]
First steps
// To prevent documentation from being installed with Gems:
echo "gem: --no-document" >> ~/.gemrc
// Install bundler
gem install bundler
// Install Nokogiri
gem install nokogiri
// Install required rails version:
gem install rails --version=4.2.5
// Verify rails version
rails -v
Change directories into the repo you cloned earlier (subkitchen-api) and run:
// Make sure you’re in the subkitchen-api directory before proceeding
rvm reload
rvm gemset use 2.3.1@subkapi --create
$rvm list
// Should indicate that 2.3.1 is set to current and default.
Then, run bundle:
bundle
If any errors (they’ll be in red), resolve before proceeding