MacOS: Setup Local Dev Environment
Homebrew
- install homebrew via terminal
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
iTerm
- download and install the latest version of https://www.iterm2.com/
- install ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- optional: set your theme in
~/.zshrc
by changing to:ZSH_THEME="pygmalion"
Composer
- install composer
brew install composer
- add to your
~/.zshrc
:export PATH="$HOME/.composer/vendor/bin:$PATH"
NVM
- install nvm
brew install nvm
- install the latest node vertion
nvm install --lts
- use the latest node vertion
nvm use --lts
- add to your
~/.zshrc
:export NVM_DIR="$HOME/.nvm" [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm [ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion" # This loads nvm bash_completion
MySQL
- install sequel-pro
brew cask install sequel-pro
- Download and install latest version of https://dev.mysql.com/downloads/mysql/5.7.html
- Install. During installation copy the temporary password shown in a popup.
- Start MySQL from the MacOS System-Settings.
- add to your
~/.zshrc
:export PATH=${PATH}:/usr/local/mysql/bin/
- In a termin login to mysql
mysql -u root -p
and login with your temporary password. - Change your password with the command:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'New-Password-Here';
and quit mysql usingquit