Setup macOS 10.13 High Sierra

# Homebrew package manager
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
brew update && brew upgrade

# Basic packages
brew tap homebrew/services

# redis
brew install redis
brew services start redis

# nginx
brew install nginx
sudo brew services start php72

# php, choose version(s):
## php-7.2
brew install --without-apache --with-fpm --with-mysql php72
brew services start php72

# composer
curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# node, choose version(s):
## node-8
brew install node@8

## node-6
brew install node@6

# java
## java-8
brew cask install homebrew/cask-versions/java8

 # elasticsearch (requires java-8)
brew install [email protected]
brew services start [email protected]