Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Development machine setup

ndubetz edited this page Mar 4, 2016 · 19 revisions

Get set up on GitHub

WebStorm or your favorite IDE

If you are using WebStorm, you are effectively already set up. Just clone the rep and pull it locally.

Install Packages and Tools

  • You will need a Java SDK installed. If you need a Java SDK, you can download one at http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)

  • Open the terminal window and navigate to your project directory

  • You will need Ruby and Sass. Mac OS X comes with Ruby pre-installed. If you do not have Sass installed, run gem install sass

  • If you do not have Homebrew, run /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  • If you do not have node.js, run brew install node

  • Run npm install to get all of the components listed in package.json

  • Run brew install mongodb (you can use either the launchctl (persistent) or one-time loader as shown by the brew install.) If this does not work, try brew install -g mongodb

  • Run npm install -g bower

  • Run npm install -g grunt-cli

  • bower install to install all of the components in bower.json

  • npm install protractor (may be unnecessary ... already in package.json)

  • From farseer/node_modules/grunt-protractor-runner/node_modules/protractor/bin run ./webdriver-manager update --standalone to make the selenium standalone server available

Validate your installation/setup

  • Go to the terminal window of WebStorm
  • From farseer/node_modules/grunt-protractor-runner/node_modules/protractor/bin run ./webdriver-manager start in the terminal window to start selenium
  • Run launchctl load homebrew.mxcl.mongodb.plist to start mongoDb.
  • In a separate terminal window, run grunt to build the system and run the tests, then run grunt serve
  • Use a browser to navigate to "localhost:port_number" as specified by the output of the command. Defaults to 9000. This allows browser-based interaction with your local site.