-
Install Apache Server, you can install it using MAMP, XAMPP, WAMPP or in native way.
-
Install the latest version of Vagrant (http://www.vagrantup.com/downloads.html)
-
Install the latest version of VirtualBox (https://www.virtualbox.org/wiki/Downloads)
-
Install the latest version of ChefDK (https://downloads.getchef.com/chef-dk/)
-
Install the latest version of Node.js (http://nodejs.org/)
-
Install the Berkshelf, Omnibus, and VBGuest plugins for VirtualBox:
For Mac:
`NOKOGIRI_USE_SYSTEM_LIBRARIES=1 vagrant plugin install vagrant-berkshelf vagrant-omnibus vagrant-vbguest`
For Windows:
`vagrant plugin install vagrant-berkshelf vagrant-omnibus vagrant-vbguest`
-
Install global dependencies:
npm install -g grunt-cli bower pm2 stylus -
Install local dependencies:
npm install -
Spin up your Vagrant VM:
vagrant up
grunt --help lists available tasks.
grunt test- Runs unit tests (default)grunt analyze- Validates code stylegrunt status- Shows status of node processes on Vagrant VMgrunt stop- Stop node processes on Vagrant VMgrunt start- Start node processes on Vagrant VMgrunt restart- Restart node processes on Vagrant VMgrunt logs- Tail logs for all node processes on Vagrant VM
vagrant --help lists available commands.
vagrant status- Display status of the VMvagrant up- Power up, un-pause, or create the VM (dependent on status)vagrant destroy- Delete the VMvagrant halt- Power down the VMvagrant suspend- Pause the VMvagrant reload- Reboot the VMvagrant ssh- Open an SSH connection into the VMvagrant provision- (Re)provision the VMvagrant destroy -f && vagrant up- Rebuild VM