SilverStripe 4 Vagrant Setup Instructions — Mac

# install homebrew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

### INSTALL PREREQUISITES

# instal vagrant
$ brew install vagrant-completion

# install composer
$ brew install composer

# install node
$ brew install node

# install yarn
$ brew install yarn

# install virtualbox
$ brew cask install virtualbox

### CLONE REPO

# create directory
$ mkdir ~/Sites/newsite

# clone repo (and optionally switch to desired branch)
$ cd ~/Sites/newsite
$ git clone https://yourusername@bitbucket.org/newsite/newsite.git .
$ git checkout RESOURCE-REFACTOR

# copy .env.example to .env
$ cp .env.example .env

# setup vm
$ cd ~/Sites/newsite
$ vagrant up

# ssh into vagrant box
$ vagrant ssh

# switch php version and verify version
$ sudo php-switch 7.1
$ php -v

# install php dependencies
$ composer install

# exit vm
$ ctrl + d

# install and build js dependencies
$ cd ~/Sites/newsite
$ yarn install

# rebuild project
http://192.168.123.123/dev/build?flush=1