✌️Required Software 2
Last updated
Last updated
Command-line software is software primarily operated from the command line (we will explain this in a video) that may not have a graphical user interface we can interact with. This software is typically used by software developers to write programs. Command-line software is not stored in a computer's Applications folder. We'll cover more about the command line in 1.3.
Git is the most popular software version control system. All tech companies use version control to manage contributions to and releases of their software. We will be using basic Git during CodiSWE Fundamentals to download and upload copies of projects. We'll cover more about Git in Module 7.
On Windows, Git installation also enables us to run our terminal in the Bash programming language. The terminal is the program that allows us to run commands (and command line software) on our computers. Bash is a terminal language used across OSes, allowing us to run commands on our computers in the same way on both Windows and Mac. A version of Bash called Zsh (pronounced "zoosh") is installed by default on MacOS.
When copying any commands from the Git website, do not copy the dollar sign ($) in front of the command. The dollar signs in their commands denote the start of command lines, and are not part of the commands.
Download and install Git for Mac OS by downloading it here: https://sourceforge.net/projects/git-osx-installer/
Verify Git is installed by running git --version
in the VSCode terminal. This should print out a version number on the next line, e.g., git version 2.28.0
.
Download and install the Git Credential Manager.
To install the Git Credential Manager you may need to allow "unidentified developer apps". (But don't worry, Git Credential Manager is created by Microsoft) from instructions here:
To override your security settings and open the app, follow these steps:
In the Finder on your Mac, locate the download file.
Control-click the app icon, then choose Open from the shortcut menu.
Click Open. __
The app is saved as an exception to your security settings, and you use it in the future just as you can any registered app. __
Note: If you are using a company computer for this course you may not be able to override the security settings- you may need to create a personal token as described here.
Navigate to the Git website download page and click the download link: https://git-scm.com/download/win
Open the downloaded file.
The Git install dialog will open. We'll need to set a few options here. The rest will be the default options.
Follow command line setup instructions below to set Bash as the terminal language.
Verify Git is installed by running git --version
in the VSCode terminal. This should print out a version number on the next line, e.g., git version 2.28.0
.
Prettier is a code formatter that will auto-format our code and make it more readable when we save our files.
Install the Prettier extension for VSCode here.
Restart VSCode to activate Prettier.
Open VSCode and open the command prompt with Ctrl+Shift+P
on Windows and Cmd+Shift+P
on Mac.
Start typing Preferences: Open User Settings (JSON)
and select this option when you see it in the search dropdown. A JSON settings file should open in VSCode.
Replace everything on the screen (in the file) with the code below.
Save the settings file.
Restart VSCode to apply our settings.
Open and save the settings file again and verify that Prettier auto-formats it as our default formatter.
VSCode Settings - Mac OS
GitHub is the most popular code-hosting platform. Developers around the world use GitHub to share code and collaborate on projects. Rocket Academy's starter code and project templates are hosted on GitHub, and we will use GitHub in SWE Fundamentals to download, host, and submit assignments. Each student will need a GitHub account to host and submit assignment code.
Go to https://github.com/, click the Sign Up button and follow on-screen instructions.
Add your GitHub account credentials to your computer through the command line. Please replace <YOUR_GITHUB_USERNAME>
AND <YOUR_GITHUB_EMAIL>
with your own GitHub user name and the email you used to sign up to GitHub with. Note to replace the <>
characters and keep the "
characters in the commands.
You will not get any feedback from the terminal after entering these commands.
Type the following command into the terminal to check your work. If you see a :
at the bottom of the output, you may need to press Enter
until you see the lines starting with user.name
and user.email
.
You should see your username and email in the output, and possibly some other settings.
Following the convention of all the other Rocket Academy Git repositories and GitHub, we'll change the default Git branch name by typing in the command shown in the code box.
Once you have been added to a section in the Community Channel, send your first message to your new section mates. Please include the following in your message:
Where are you based?
What do you do for work?
Why do you want to learn coding?
4 emojis that describe you
Your specific OS version. This will be the result of running the command below for your specific OS (Windows or Mac)
Anything else you would like to share 😁
These commands are for the intro above. Don't worry about exactly what's happening in these commands yet. This exercise is just to get you started with typing in the Command Line interface and sending community channel messages. We'll learn more about the command line in 1.3 Command Line.