These instructions are for those taking part in the Advanced Javascript Bootcamp, React & Redux Bootcamp, or the TypeScript & GraphQL Bootcamp and who are using Ubuntu as their operating system. If you are taking part in the JavaScript Bootcamp, it is not necessary to follow these instructions as they will be included in your bootcamp instructions.

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 when following these instructions to only run one command at a time.

The beginning of a command is marked 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 emphasize that these commands are to be run in your terminal prompt. As such, when copying any commands, do not include the $  symbol.

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, 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 -O - | zsh
$ chsh -s `which zsh`

To finalise the installation, log out of your computer and then log back in.

What am I installing?

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 some dependencies and nvm :

$ sudo apt update && sudo apt install build-essential libssl-dev curl
$ curl -o- | 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

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/" ] && . "$NVM_DIR/"

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.

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.

Did this answer your question?