Complete the following steps before Mod 0 in order to get the tools you'll need on your machine. In this setup, we'll go over the following topics:
- New to Mac?
- Installing a Text Editor
- Installing Xcode
- Installing Homebrew
- Installing Git
- Configuring Git
- Downloading Chrome
If this is your first time using a Mac instead of a PC or Linux, then watch this video about the basics of using a Mac.
If you will be a front-end student, install Sublime. Sublime Text is a program where we edit code - it is a free text editor with many great features that makes editing code more enjoyable compared to a simple text editor. Sublime Text is commonly used in the software development industry, and you will use it throughout your time at Turing. It is a free program, but it will ask you periodically to make a donation - you can just decline and keep using Sublime Text for free.
If you will be a back-end student, install Atom. Atom is a program where we edit code - it is a text editor with many great features that makes editing code more enjoyable compared to a simple text editor. Atom is commonly used in the software development industry, and we use it throughout your time at Turing.
Download and install Xcode from the Apple App Store on your computer. This will probably take a little while to finish. Xcode is a huge suite of development tools published by Apple. If we wanted to develop software for the Apple Ecosystem (iPhone apps, macOS apps, etc), we would use Xcode as our editor. But even if we aren’t working in this ecosystem, Xcode provides some system dependencies that we’ll want to have available.
Once the download is complete, open Xcode and agree to the SLA terms. Then, open the Terminal application, You can get to Terminal by pressing the Command + Space
keys at the same time, then typing Terminal
into the search. Once Terminal is open, type the following into the application:
xcode-select --install
When prompted, enter your password.
Homebrew is a package management system that makes it easy to install hundreds of open source projects and compile them from source for maximum performance on your machine.
To install homebrew, open Terminal. Again, you can get to Terminal by pressing the Command + Space
keys at the same time, then typing Terminal
into the search.
Once you have Terminal open, paste this line and hit enter:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It will ask you for your password. This is the password to log in to your account on the computer. It needs this because it installs its packages in a place that all users of this computer can access.
When it has completed the installation run brew doctor and it should tell you that everything is fine:
brew doctor
Your system is ready to brew.
If you got a warning from Homebrew about your path, do the following:
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
Now run brew doctor again and the warning should be gone.
Git is a Version Control System (VCS). It allows you to save work on your project, and reference previous states of a project if needed. Normally when we save something on our computer, the newer version overwrites the older version. This is problematic if we need to look back at an earlier version. Git solves this problem by providing you multiple save points. You can get the current version, and ANY previous version. Git’s philosophy: never lose anything.
To install Git, we will use Homebrew. In your Terminal, type this:
brew install git
We'll want to configure git with some basic information about us.
We can tell git to configure itself using the git config command from our terminal. Additionally, we're setting "global" configurations for git, so we'll use the --global flag when we provide it with a new piece of configuration.
Open Terminal with Spotlight search (press the Command + Space
keys like we did previously). Type the following, substituting your own name and email:
git config --global user.name "Alan Turing"
git config --global user.email [email protected]
If you're not already using Chrome, install it from here. Chrome includes a set of developer tools that will come in handy down the road. Additionally, it is always on the cutting edge of being able to support new web technologies.