{"_path":"/knowledge-base/macos-dev-setup","_draft":false,"_partial":false,"_empty":false,"title":"MacOS: Setup Local Dev Environment","description":"","excerpt":{"type":"root","children":[{"type":"element","tag":"h1","props":{"id":"macos-setup-local-dev-environment"},"children":[{"type":"text","value":"MacOS: Setup Local Dev Environment"}]},{"type":"element","tag":"h2","props":{"id":"homebrew"},"children":[{"type":"text","value":"Homebrew"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install homebrew via terminal"},{"type":"element","tag":"code","props":{"code":"/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)\"\n","language":"bash"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)\"\n"}]}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"iterm"},"children":[{"type":"text","value":"iTerm"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"download and install the latest version of "},{"type":"element","tag":"a","props":{"href":"https://www.iterm2.com/","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://www.iterm2.com/"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install ohmyzsh"},{"type":"element","tag":"code","props":{"code":"sh -c \"$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"\n","language":"bash"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"sh -c \"$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"\n"}]}]}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"optional: set your theme in "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"~/.zshrc"}]},{"type":"text","value":" by changing to: "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"ZSH_THEME=\"pygmalion\""}]}]}]},{"type":"element","tag":"h2","props":{"id":"composer"},"children":[{"type":"text","value":"Composer"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install composer "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"brew install composer"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"add to your "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"~/.zshrc"}]},{"type":"text","value":":"},{"type":"element","tag":"code","props":{"code":"export PATH=\"$HOME/.composer/vendor/bin:$PATH\"\n"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"export PATH=\"$HOME/.composer/vendor/bin:$PATH\"\n"}]}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"nvm"},"children":[{"type":"text","value":"NVM"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install nvm "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"brew install nvm"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install the latest node vertion "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"nvm install --lts"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"use the latest node vertion "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"nvm use --lts"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"add to your "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"~/.zshrc"}]},{"type":"text","value":":"},{"type":"element","tag":"code","props":{"code":"export NVM_DIR=\"$HOME/.nvm\"\n[ -s \"/usr/local/opt/nvm/nvm.sh\" ] && . \"/usr/local/opt/nvm/nvm.sh\"  # This loads nvm\n[ -s \"/usr/local/opt/nvm/etc/bash_completion\" ] && . \"/usr/local/opt/nvm/etc/bash_completion\"  # This loads nvm bash_completion\n"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"export NVM_DIR=\"$HOME/.nvm\"\n[ -s \"/usr/local/opt/nvm/nvm.sh\" ] && . \"/usr/local/opt/nvm/nvm.sh\"  # This loads nvm\n[ -s \"/usr/local/opt/nvm/etc/bash_completion\" ] && . \"/usr/local/opt/nvm/etc/bash_completion\"  # This loads nvm bash_completion\n"}]}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"mysql"},"children":[{"type":"text","value":"MySQL"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install sequel-pro"},{"type":"element","tag":"code","props":{"code":"brew cask install sequel-pro\n","language":"bash"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"brew cask install sequel-pro\n"}]}]}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"Download and install latest version of "},{"type":"element","tag":"a","props":{"href":"https://dev.mysql.com/downloads/mysql/5.7.html","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://dev.mysql.com/downloads/mysql/5.7.html"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"Install. During installation copy the temporary password shown in a popup."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"Start MySQL from the MacOS System-Settings."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"add to your "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"~/.zshrc"}]},{"type":"text","value":":"},{"type":"element","tag":"code","props":{"code":"export PATH=${PATH}:/usr/local/mysql/bin/\n"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"export PATH=${PATH}:/usr/local/mysql/bin/\n"}]}]}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"In a termin login to mysql "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"mysql -u root -p"}]},{"type":"text","value":" and login with your temporary password."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"Change your password with the command: "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"ALTER USER 'root'@'localhost' IDENTIFIED BY 'New-Password-Here';"}]},{"type":"text","value":" and quit mysql using "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"quit"}]}]}]}]},"public":true,"body":{"type":"root","children":[{"type":"element","tag":"h1","props":{"id":"macos-setup-local-dev-environment"},"children":[{"type":"text","value":"MacOS: Setup Local Dev Environment"}]},{"type":"element","tag":"h2","props":{"id":"homebrew"},"children":[{"type":"text","value":"Homebrew"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install homebrew via terminal"},{"type":"element","tag":"code","props":{"code":"/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)\"\n","language":"bash"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"style":{"color":"#C9D1D9"}},"children":[{"type":"text","value":"/bin/bash -c "}]},{"type":"element","tag":"span","props":{"style":{"color":"#A5D6FF"}},"children":[{"type":"text","value":"\"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)\""}]}]}]}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"iterm"},"children":[{"type":"text","value":"iTerm"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"download and install the latest version of "},{"type":"element","tag":"a","props":{"href":"https://www.iterm2.com/","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://www.iterm2.com/"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install ohmyzsh"},{"type":"element","tag":"code","props":{"code":"sh -c \"$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"\n","language":"bash"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"style":{"color":"#C9D1D9"}},"children":[{"type":"text","value":"sh -c "}]},{"type":"element","tag":"span","props":{"style":{"color":"#A5D6FF"}},"children":[{"type":"text","value":"\"$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\""}]}]}]}]}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"optional: set your theme in "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"~/.zshrc"}]},{"type":"text","value":" by changing to: "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"ZSH_THEME=\"pygmalion\""}]}]}]},{"type":"element","tag":"h2","props":{"id":"composer"},"children":[{"type":"text","value":"Composer"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install composer "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"brew install composer"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"add to your "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"~/.zshrc"}]},{"type":"text","value":":"},{"type":"element","tag":"code","props":{"code":"export PATH=\"$HOME/.composer/vendor/bin:$PATH\"\n"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"style":{}},"children":[{"type":"text","value":"export PATH=\"$HOME/.composer/vendor/bin:$PATH\""}]}]}]}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"nvm"},"children":[{"type":"text","value":"NVM"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install nvm "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"brew install nvm"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install the latest node vertion "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"nvm install --lts"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"use the latest node vertion "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"nvm use --lts"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"add to your "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"~/.zshrc"}]},{"type":"text","value":":"},{"type":"element","tag":"code","props":{"code":"export NVM_DIR=\"$HOME/.nvm\"\n[ -s \"/usr/local/opt/nvm/nvm.sh\" ] && . \"/usr/local/opt/nvm/nvm.sh\"  # This loads nvm\n[ -s \"/usr/local/opt/nvm/etc/bash_completion\" ] && . \"/usr/local/opt/nvm/etc/bash_completion\"  # This loads nvm bash_completion\n"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"style":{}},"children":[{"type":"text","value":"export NVM_DIR=\"$HOME/.nvm\"\n[ -s \"/usr/local/opt/nvm/nvm.sh\" ] && . \"/usr/local/opt/nvm/nvm.sh\"  # This loads nvm\n[ -s \"/usr/local/opt/nvm/etc/bash_completion\" ] && . \"/usr/local/opt/nvm/etc/bash_completion\"  # This loads nvm bash_completion"}]}]}]}]}]}]}]},{"type":"element","tag":"h2","props":{"id":"mysql"},"children":[{"type":"text","value":"MySQL"}]},{"type":"element","tag":"ul","props":{},"children":[{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"install sequel-pro"},{"type":"element","tag":"code","props":{"code":"brew cask install sequel-pro\n","language":"bash"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"style":{"color":"#C9D1D9"}},"children":[{"type":"text","value":"brew cask install sequel-pro"}]}]}]}]}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"Download and install latest version of "},{"type":"element","tag":"a","props":{"href":"https://dev.mysql.com/downloads/mysql/5.7.html","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"https://dev.mysql.com/downloads/mysql/5.7.html"}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"Install. During installation copy the temporary password shown in a popup."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"Start MySQL from the MacOS System-Settings."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"add to your "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"~/.zshrc"}]},{"type":"text","value":":"},{"type":"element","tag":"code","props":{"code":"export PATH=${PATH}:/usr/local/mysql/bin/\n"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"style":{}},"children":[{"type":"text","value":"export PATH=${PATH}:/usr/local/mysql/bin/"}]}]}]}]}]}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"In a termin login to mysql "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"mysql -u root -p"}]},{"type":"text","value":" and login with your temporary password."}]},{"type":"element","tag":"li","props":{},"children":[{"type":"text","value":"Change your password with the command: "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"ALTER USER 'root'@'localhost' IDENTIFIED BY 'New-Password-Here';"}]},{"type":"text","value":" and quit mysql using "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"quit"}]}]}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"homebrew","depth":2,"text":"Homebrew"},{"id":"iterm","depth":2,"text":"iTerm"},{"id":"composer","depth":2,"text":"Composer"},{"id":"nvm","depth":2,"text":"NVM"},{"id":"mysql","depth":2,"text":"MySQL"}]}},"_type":"markdown","_id":"content:04.knowledge-base:macos-dev-setup.md","_source":"content","_file":"04.knowledge-base/macos-dev-setup.md","_extension":"md"}