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
Install the Terminator terminal emulator
For a better terminal experience, run the following command in your terminal prompt:
$ sudo apt update; sudo apt install terminator
From this point on, carry out the remainder of the instructions in this new terminal.
Install Oh My Zsh
To install Oh My Zsh installation, run the following commands one at a time in your terminal. During the installation, you will be required to enter your computer password several times (your computer password is the password you use to unlock your computer):
$ sudo apt install zsh git-core
$ wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
$ chsh -s `which zsh`
To finalise the installation, log out of your computer and then log back in.
Install Node Version Manager (nvm)
$ sudo apt update && sudo apt install build-essential libssl-dev curl
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
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 Ubuntu
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/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 completely closing your terminal application and starting it again.
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]
Install NPM dependencies faster using Yarn
Congrats! You're all set up.