Yesterday I went over the switch to rbenv to install ruby. I’ll also need to install rails which is a simple:
$ gem install railsThis installs the latest rails version which is 4.2.3 as of this writing. Now I can create my backend project:
$ rails new recipe-backendFor the frontend I’ll be using Ember JS. To start off I need node first. I’m going to use NVM (Node Version Manager) to install node. First you need to download nvm and then
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
$ nvm install nodeNow you can check where node is installed:
$ which node
/Users/chrisbarthol/.nvm/versions/node/v0.12.7/bin/nodeYou can install one node globally from this post if you need to. Now that we have node and npm we can install Ember
$ npm install -g ember-cli
$ npm install -g phantomjsPhantom JS is required to run tests. Finally we can make the frontend project:
$ ember new recipe-frontendNow we have both our projects set up! Tomorrow we’ll start talking about version control.