Skip to content

Instantly share code, notes, and snippets.

@DjjimmyHD
Created March 21, 2020 01:37
Show Gist options
  • Save DjjimmyHD/98d816bf657e31a331d17cf41f8e5666 to your computer and use it in GitHub Desktop.
Save DjjimmyHD/98d816bf657e31a331d17cf41f8e5666 to your computer and use it in GitHub Desktop.
Mac Env

First Day Install

So I have had a few people ask me, what do I run on my machine or how to get started coding on a mac. This is running, imperfect list, of how to get going. I will add more support and probably some videos later. For now this set up is for MAC ONLY a few of these items will mess up a windows and linux machine. I am hoping to have a windows/linux walkthrough soon, until then please be patient 🥳.

Productivity & Applications

  1. Sign up for Trello
  2. Install VSCode - Text Editor (other editors like Atom, Sublime, etc. are fine if that's your preference)
  3. Install Spectacle for window management

Command Line Tools

You will need to use your command line interface (CLI) to install the following software. You can reach your command line by opening the Terminal app on your Mac. Press command + spacebar and type 'terminal', then press enter.

  1. Homebrew
  2. Update git: brew install git
  3. Install zsh: brew install zsh zsh-completions
  1. Install Node Version Manager

GitHub SSH Keys

  1. Setup GitHub with SSH Keys

Additional Software

  1. Install iTerm2 to improve your terminal
  2. Install Postman (we will use this application later in the program)

Verify that you have NVM (Node Version Manager) installed correctly

Verify that nvm has been installed

$ command -v nvm

You should see an output in your terminal of

nvm

Now let's double check that NVM is set to run each time you start your terminal/CLI

Change directory into your home directory

$ cd ~

Open your ZSH configuration file in your text editor

$ code .zshrc

OR

$ atom .zshrc

Scroll to the bottom of the file. You should see these lines of code

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

If you do not see these lines of code, go ahead and copy/paste them to the bottom of your .zshrc file Then run this command in your terminal to re-load your .zshrc configuration

$ source .zshrc

Install Node

Node is a core technology for full-stack JavaScript development. Installing Node also gives us access to NPM, which is a tool that enables us to install 'packages' through the command line.

Warning The nvm use node command will always update to the latest version of node, this can cause many problems. What I would advise doing is installing a stable version of node and then setting that as the default node env, until you decide to upgrade it yourself. Usage To download, compile, and install the latest release of node, do this:

$ nvm install node

And then to ensure you are using node each time your terminal starts, add this line to the bottom of your .zshrc file:

nvm use node

Additional Info from NVM Documentation

FIN!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment