These instructions are for those taking part in the Advanced Javascript Bootcamp, React & Redux Bootcamp or the TypeScript & GraphQL Bootcamp. If you are taking part in the JavaScript Bootcamp, it is not necessary to follow these instructions as this will take place during as part of your bootcamp instruction.
About these instructions
Whether setting up your development environment on an OSX or Ubuntu operated machine, the following instructions will be run from your computer's terminal prompt. It is also important to remember that when following these instructions, to only run one command at a time.
The beginning of a command is denoted by the $
symbol in the instructions; some instructions have more than one command to run per step. This symbol has been placed in the instructions to dictate where a new command starts and to emphasise that these commands are to be run in your terminal prompt. As such, when copying any commands, do not include the $
symbol.
Install the iTerm terminal
For a better terminal experience, download iTerm here and move the downloaded program to your /Applications
directory.
Once you're done, start iTerm and carry out the remainder of the instructions using this terminal.
Install Homebrew
Paste the following command into your terminal:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
The script explains what it will do and then pauses before it does it. What am I installing?
Install Oh My Zsh
After Homebrew has finished installing, restart iTerm. Once restarted, copy and paste the following command into your terminal:
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)
Install Node Version Manager (nvm)
With nvm
you can install and manage multiple NodeJS (JavaScript) versions on your computer. Run the following commands one at a time to install nvm
:
$ xcode-select --install
$ brew install nvm
$ mkdir ~/.nvm
Next, open your zsh configuration in atom by running the following command:
$ atom ~/.zshrc
The last command should open up .zshrc
in your Atom text editor. Copy and paste the following code and add it to the next available line at the bottom of the file:
# ~/.zshrc MacOS
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
This code will load nvm
every time you open a new terminal session. Once you have added the code to the file, save the file and close Atom.
After that, reload your shell configuration by restarting iTerm.
Install NodeJS
Now that nvm
is installed, you will need to install the version of NodeJS that we require for your bootcamp course. Run the following commands one at a time in your terminal to install the required NodeJS version:
$ nvm install 11
$ nvm use 11
$ nvm alias default 11
With this setup, you should never have to use sudo
when installing [global] npm
packages.
Install NPM dependencies faster using Yarn
Yarn will assist us install dependencies for our projects much faster. Follow Yarn's installation instructions in order to install it on your system.
Congrats! You're all set up.