We'll be installing most of the necessary tools for software engineering in this lesson. These tools are what we'll be utilizing during the course.
It is so important that you follow all of these instructions to a T, without skipping ahead. It is also very important, when working in the terminal, to ensure that you type everything exactly correctly before running the command. You are interacting with your computer's inner configurations, and each command should be treated with care and intention.
- Install Slack App
- Install Homebrew
- Install Zsh and Oh-My-Zsh
- Install Node
- Install VSCode
- Install Git
- Install Python
- Install Heroku
- Install MongoDB
- Install Postgres
Slack will be our primary mode of communication throughout this course. In order to get the most out of it you'll want to download the desktop application HERE.
It is not recommended to use the browser app during this course.
Homebrew is a package manager for Mac OS. It makes installing programs fast and easy.
To install Homebrew, paste the following command into your terminal and hit the return key:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"The above command will perform the installation for you.
What is Zsh? Zsh is a shell designed for interactive use. It provides us with useful shortcuts to execute terminal commands faster and also enables auto completion for those commands.
To install Zsh, execute the following command in your terminal:
brew install zshWhat is Oh-My-Zsh?
Oh My Zsh is an open source, community-driven framework for managing your Zsh configuration. It comes with a bunch of features out of the box and improves your terminal experience.
It also provides us with preset themes to make reading your terminal much easier.
Execute the following commands in your terminal:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"chsh -s $(which zsh)What is NodeJS? NodeJS is a JavaScript runtime that allows us to execute JavaScript outside of a browser.
To intall NodeJS, execute the following command in your terminal:
brew install nodeTo confirm your installation, execute the following in your terminal:
node -vYou should see a node version listed.
VSCode is going to be our text editor of choice throughout the course. It provides us with a wonderful environment to run and test our code.
To install VSCode, execute the following command in your terminal:
brew install --cask visual-studio-codeVerify your installation by running:
code .This should open a new VSCode window.
If the above does not work, open VSCode manually from your Applications folder.
Once a VSCode window opens, press and hold cmd + shift + P to open the command palette. In the command palette, type in path and choose the option:
Shell Command: Install
codecommand in PATH.
This should enable the ability to open VSCode from terminal with the code . command. Try it out.
Git is a version control manager that we'll be using in conjunction with GitHub to manage code updates during this course.
To install Git, execute the following command in your terminal:
brew install gitOnce the installation completes, execute the following commands in your terminal, one by one, with your information inserted:
git config --global user.name "Your Actual Name Here"git config --global user.email "your_email@example.com"The name and email should be the name and email you use on GitHub.
In order for GitHub to deem our machines as "safe" to push code, we need to setup an identification key known as an ssh key.
Enter the following commands in your terminal, with your information inserted:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"The above email should be your GitHub email!
You should see the following prompt:
> Enter a file in which to save the key (/Users/you/.ssh/id_ed25519): [Press enter]Hit return to save it in a default file.
You'll now be prompted to password protect the ssh key, but we can skip this portion. When prompted with the following, hit return to leave the password as blank, both times:
> Enter passphrase (empty for no passphrase): [Type a passphrase]
> Enter same passphrase again: [Type passphrase again]Let's start the Mac OS ssh-agent. Enter the following command into your terminal:
eval "$(ssh-agent -s)"Now copy the ssh key to your clipboard:
pbcopy < ~/.ssh/id_rsa.pubTo complete this setup, follow the instructions starting from Step 2 at this link HERE.
Python is a popular language that we'll be learning in Unit 4 of this course. Today, we'll be installing Python3.
To install Python3, execute the following command in your terminal:
brew install pythonTo confirm your installation, execute the following command in your terminal:
python3 --versionYou should see a Python version listed.
Heroku is a hosting site that we'll be using to deploy projects throughout this course.
Execute the following command in your terminal:
brew install heroku/brew/herokuThe formulae may not be latest, so we'll execute the next command to ensure the latest Heroku version is installed:
heroku updateMongoDB is a document-based database that we'll be using in this course.
To install MongoDB, execute the following commands in your terminal, one by one:
xcode-select --installbrew tap mongodb/brewbrew tap | grep mongodbbrew install mongodb-community@4.4To start the mongo service:
brew services start mongodb-community@4.4NOTE: The above command will keep MongoDB running in the backround on your machine even after shutdown.
To confirm your installation, enter the following command in your terminal:
mongoAn interactive shell should appear. To exit this shell, enter the following command:
exitPostreSQL is going to be our column-based database of choice for this course. PostgreSQL is an open source relational database management system (RDBMS).
To install PostgreSQL, execute the following command in your terminal:
brew install postgresTo confirm the installation, run the following command in your terminal:
postgres --versionNext, enter the following command in your terminal:
brew services start postgresqlThis will ensure postgres remains running on our machines.
Now, create a database with your username:
createdb `whoami`Confirm that you can enter the postgres shell with the following command:
psqlTo exit the shell:
\qAt this point, we've successfully installed all of the tools we'll be utilizing throughout this course!
