Skip to content

Instantly share code, notes, and snippets.

@apisandipas
Created September 26, 2013 15:38
Show Gist options
  • Save apisandipas/6715950 to your computer and use it in GitHub Desktop.
Save apisandipas/6715950 to your computer and use it in GitHub Desktop.
Dev Environment Set Up
Node/NPM:
1. Go to http://nodejs.org/ and download installer. This will give you node executable as well as NPM (Node Package Manager).
2. Run `node -v` and `npm -v` to install installation was successful
Grunt:
1. Run `npm install -g grunt-cli`
1. Download & Install VirtualBox - https://www.virtualbox.org/
2. Download & Install Vagrant - http://www.vagrantup.com/
3. Grab the VM 'PHP Box' -
i. Run `mkdir ~/Vagrant/Boxes`
ii. Doejo Server -> Vagrant -> Boxes
iii. grab php.box and put it in ~/Vagrant/Boxes
iv. Run `vagrant box add php ./php.box`
To start a new project, create a 'Vagrantfile' and paste in the contents of the Vagrantfile below.
Run `vagrant up` and wait.
Run `vagrant suspend` to save the state and stop the VM
Note: It's highly recommended to alias vagrant to v to save hassel.
In ~/.bashrc or ~/.zshrc paste: alias v=vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment