In order for the build to run correctly, a few tools will need to be installed on your development machine:
- git
- direnv
- Node (12.20)
- NPM (> 6)
- Ruby (2.7)
- Bundler (> 2)
- Docker
Installing the required tools is best managed by homebrew.
To install homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
To install git:
brew install git
To install direnv:
brew install direnv
echo "$(direnv hook zsh)" >> ~/.zshrc
exec $SHELL
direnv allow <repository-directory>
Note: if you use bash instead of zsh, change ~/.zshrc
above to ~/.bashrc
and use direnv hook bash
.
To install Node & NPM:
brew install nvm
mkdir ~/.nvm
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc
echo '[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"' >> ~/.zshrc
echo '[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm"' >> ~/.zshrc
exec $SHELL
nvm install 10.23.0
nvm use 10.23.0
Note: if you use bash instead of zsh, change ~/.zshrc
above to ~/.bashrc
To install Ruby and bundler:
brew install rbenv
brew install ruby-build
echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc
exec $SHELL
rbenv install 2.7.2
rbenv rehash
rbenv local 2.7.2
gem install bundler
Note: if you use bash instead of zsh, change ~/.zshrc
above to ~/.bashrc
and use rbenv init - bash
.
To install Docker:
Download Docker Desktop from the following link: https://hub.docker.com/editions/community/docker-ce-desktop-mac/
Follow the installation instructions.