- adding programs to 'path' (type in terminal): export PATH=$PATH:/new_path_entry
- view path: echo $PATH
- remember to type
sudo
if you get permissions errors or something doesn't work - most/all commands will be done from Terminal (command shell prompt) so open a new terminal window
- install text editor of choice (i.e. Sublime, Text Wrangler)
- install git ( http://git-scm.com/downloads )
- follow the default options during installation
- setup your github authentication
- Install node.js ( http://nodejs.org/download/ )
- Notes after installing: Node was installed at /usr/local/bin/node npm was installed at /usr/local/bin/npm Make sure that /usr/local/bin is in your $PATH.
- Install MongoDB ( http://www.mongodb.org/downloads )
- IF you already have MacPorts OR Homebrew, use whichever you already have installed. Otherwise, if you have neither, pick one and install them. I used Homebrew BUT note that it requires XCode (4GB or Command Line Tools for XCode (2GB - only available for Lion & Mountain Lion)).
- for Homebrew
- use the homebrew installation at the top
- [commands copied from link above]
- you will need xcode (just the basic part "command line tools for xcode", not the full thing) - https://github.com/mxcl/homebrew/wiki/Installation
- install homebrew (if you don�t already have it)
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
brew update
brew install mongodb
- add 'mongod' to your path so it can be run from any directory in terminal
- export PATH=$PATH:[/new_path_entry]
- path is listed in the output for the homebrew install mongodb command - look at the 'summary' section and there�s a path there
export PATH=$PATH:/usr/local/Cellar/mongodb
- start mongod service with
mongod
- if you get an error about /data/db, you need to create that directory first
sudo mkdir -p /data/db
sudo chown 'id -u' /data/db
OR if you get an 'invalid argument' error for that command, try:- http://stackoverflow.com/questions/7948789/mongodb-mongod-complains-that-there-is-no-data-db-folder
sudo chmod 0755 /data/db
sudo chown mongod:mongod /data/db
- http://stackoverflow.com/questions/7948789/mongodb-mongod-complains-that-there-is-no-data-db-folder
- NOTE: to manually use MongoDB, it requires running two terminal windows - one to run the service (mongod) and another for the actual
mongo
command to get into the database. EACH TIME you startup your computer and/or want to use a site, you'll need to FIRST runmongod
to get the mongo database running.
- for Homebrew
- IF you already have MacPorts OR Homebrew, use whichever you already have installed. Otherwise, if you have neither, pick one and install them. I used Homebrew BUT note that it requires XCode (4GB or Command Line Tools for XCode (2GB - only available for Lion & Mountain Lion)).
- Install PhantomJS ( http://phantomjs.org/download.html )
- Once it's downloaded, add it to your system PATH (see above for how to add things to your path)
- Install Java Runtime Environment (JRE) for running the Selenium Standalone Server for Protractor tests
- first check if you already have java installed by typing
java
on the command line - if it says something like 'command not found' that means it's not installed and/or it's not on your system PATH. Check your system PATH and add it if you already have Java installed, otherwise, follow the remaining steps below. - go here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
- click the 'JRE' download button then select the version that matches your environment / operating system
- download then install
- add to your system PATH (so you can run
java
from the command line from any location), i.e.;C:\Downloads\Website\JavaRE\bin
- first check if you already have java installed by typing