Install Suggested Apps
- Install the iTerm2 app: https://www.iterm2.com/
- Next, install oh-my-zsh: https://github.com/robbyrussell/oh-my-zsh#basic-installation# Paste this into iTerm sh -c “$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”
- Install the SourceTree app: https://www.sourcetreeapp.com/
- Install the VS Code app: https://code.visualstudio.com/
Install Dependencies
- Install Homebrew: https://brew.sh/ - /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
- Install Git - brew install git
- Install NodeJS and NPM: - `bash brew install nvm
Once that finishes, create NVM's working directory if it doesn't exist
mkdir ~/.nvm
Add the following lines to your ~/.zshrc file:
echo 'export NVM_DIR="$HOME/.nvm" . "/usr/local/opt/nvm/nvm.sh"' >> ~/.zshrc
###
Pro Tip: Need a little help adding those 2 lines to your .zshrc file?
Did that previous command not automatically update your config file for some reason?
- Make sure to highlight and copy the code snippet above ^ to your clipboard ( CMD + C )
- Edit your .zshrcfile by typing in the following into iTERM and hitting enter:
nano ~/.zshrc
- Next, go to the very bottom to your .zshrc config file by pressing CONTROL + V a few times to quickly jump to the bottom of the file. 
- Then, hit enter to give yourself a little breathing room and go ahead and paste in the two lines copied from earlier ( CMD + V) 
- Finally, save and exit by pressing CONTROL + X, Hitting Y, then pressing enter to comform overwriting your .zshrc file 
###
restart shell
source ~/.zshrc
finish installing nvm
nvm install lts/carbon # v8.9 + nvm alias default lts/carbon
4. Install PHP and PHP Dependencies
```bash
brew install php72
brew tap homebrew/homebrew-php
brew install composer
composer global require hirak/prestissimo- Install GD and Imagick (used for generating responsive images in the build process) - brew install imagemagick brew install graphicsmagick
- Finally, install Yarn - brew install yarn
Pro Tip: Already have Yarn installed? Awesome! Make sure you're running the latest version by running
brew update yarn
Pulling Down, Installing and Running Bolt Locally
- In iTerm, create a - sitesfolder on your machine if you don't already have one created.- cd ~/ mkdir sites cd sites
- Now, clone down the Bolt repo locally (which will be located in your - ~/sites/boltfolder):- git clone https://github.com/bolt-design-system/bolt.git
- Once the code has finished being cloned, in iTerm, change your working directory to be at the root of the Bolt codebase - cd bolt
- Now, run the setup command which will do all the necessary installs for running the docs site and Pattern Lab environments locally, set up the build tools, install PHP dependencies, etc. Note: this'll take a couple mins probably the first time you need to run it - it gets faster during subsequent runs! - yarn # so Lerna bootstrap works npm run setup
- Finally, assuming you didn't get any errors during Step 4, you should be able to - cdinto the- apps/pattern-labfolder to get the code to compile, watch for changes, start up a local dev server, etc.- cd apps/pattern-lab npm start