Setup guide
Required Hardware and Software
Section titled “Required Hardware and Software”To participate in this course, the following hardware and software are necessary:
Required Hardware
Section titled “Required Hardware”- Computer: A desktop or laptop running the latest version of Windows or macOS.
- Webcam and Microphone: A webcam and microphone capable of supporting video conferencing. Most laptops come with these built-in.
- Internet Connection: A stable internet connection that can handle Zoom calls without interruptions in audio or video. If you’re uncertain about your connection, let us know, and we can schedule a chat to help you assess it.
Required Software – Part 1
Section titled “Required Software – Part 1”Required GUI-Application Software
Section titled “Required GUI-Application Software”GUI-application software is software that operates with a graphical user interface (GUI) on your operating system.
Discord
Section titled “Discord”Discord is a chat software and the primary mode of communication throughout this course. It enables communication across the school, within sections, and between individuals. Discord is widely used by tech communities globally for internal communication.
Installation:
- Download the Discord mobile app from the Android Play Store or iOS App Store.
- Download the Discord desktop app for your operating system here.
Discord is a cornerstone of this course. If you’re new to Discord, check out the quick-start guide and make sure to read through the Discord House Rules before the course begins.
Zoom is the video conferencing software used for this course. Each section has its own Zoom room, and the link to this room will be found at the top of each section’s Discord channel.
Installation:
- Download the Zoom Client for Meetings here.
- Start a new meeting to test your webcam and microphone.
Chrome
Section titled “Chrome”Chrome is the most popular web browser among software engineers due to its robust developer tools, which will be introduced in the course. Chrome also has an extensive library of browser extensions that assist developers in building and maintaining software.
Installation:
Visual Studio Code
Section titled “Visual Studio Code”VSCode is the most popular code editor globally. All code for SWE Fundamentals will be written using VSCode.
Installation:
Required Software – Part 2
Section titled “Required Software – Part 2”This document outlines required software for the course. Please install this software before starting the course unless instructed otherwise. If you run into any issues or have questions while setting up, feel free to reach out to us via email or on the first day of zoom session. We’re here to help!
[Windows Only] Install Windows-specific software
Section titled “[Windows Only] Install Windows-specific software”Install and setup Windows Subsystem for Linux (WSL)
Section titled “Install and setup Windows Subsystem for Linux (WSL)”WSL allows us to run the Linux operating system on Windows machines. We do this because most programming uses Unix-based operating systems, of which MacOS is a descendant. Most SWEs that use Windows do their work in WSL to maximise compatibility between their work and work done on Linux machines. Before installing WSL, update Windows to the latest version.
- Install WSL here.
- Install the latest version of Ubuntu here. Ubuntu is a popular version of the Linux operating system.
- Run
sudo apt install build-essentialin Ubuntu in WSL to install standard libraries Ubuntu needs to further install common packages. - Run
sudo apt-get install ca-certificatesin Ubuntu in WSL to get SSL verification certificates on Ubuntu for Ubuntu to communicate with VS Code on our computer.
Integrate VS Code with WSL
Section titled “Integrate VS Code with WSL”- Install the VS Code Remote Development extension to enable VS Code to integrate with WSL.
- Click the Remote Development extension icon in the bottom left corner of VS Code. A pop up will appear with a list of options. Click the first option “Remote-WSL: New Window” for the default distro.
- You will see a notification “Starting VS Code in WSL…”. This means VS Code is setting up a server inside WSL for the first time. Once installed, the VS Code of your Windows OS will sync automatically with the VS Code of your Ubuntu OS, and the VS Code terminal will show the Ubuntu terminal.
[Mac Only] Install Mac-specific software
Section titled “[Mac Only] Install Mac-specific software”Install Homebrew
Section titled “Install Homebrew”- Follow instructions at https://brew.sh/ to install Homebrew.
Homebrew is a package manager for MacOS that provides a single source of truth for which packages and package versions are installed. This is typically only relevant to command line packages; We typically do not install GUI applications via Homebrew.
Homebrew typically manages OS-specific packages, e.g. node, and not application-specific packages, e.g. react. Application-specific packages are typically managed by application-level package managers such as npm or pip. Application-specific packages are typically bundled and deployed together with an application, regardless of where those applications are running.
Install and configure Git
Section titled “Install and configure Git”Install Git
Section titled “Install Git”Windows
Section titled “Windows”Open an Ubuntu terminal in VS Code and run the following commands separately.
sudo apt-get updatesudo apt-get install gitVerify correct installation by checking Git version
git --version-
Download and install Git for MacOS
Terminal window brew install git -
Verify Git is installed by running the following command in the VS Code terminal. This should print out a version number on the next line, e.g.,
git version 2.9.2.Terminal window git --version -
Download and install the Git Credential Manager
To install the Git Credential Manager you may need to allow “unidentified developer apps”. Don’t worry, Git Credential Manager is created by Microsoft. Instructions here.
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 access token instead.
Personal Access Tokens
Section titled “Personal Access Tokens”Configure Git and GitHub
Section titled “Configure Git and GitHub”When using the HTTPS protocol on GitHub to retrieve repository information you will need to develop a personal access token on your GitHub account, you will then be able to use this token to authenticate your request. To create a personal access token please follow this set of documentation.
After you have created the personal access token be sure to save it in a safe spot as it will be required when authenticating requests to the GitHub servers. You will be prompted to pass your GitHub username and password when trying to push to repositories, use your Personal Access Token in place of your password.
Configure Git default branch
Section titled “Configure Git default branch”Set the default Git branch to main. Some older versions of Git may still use master as the default branch name.
git config --global init.defaultBranch mainConfigure Git default editor
Section titled “Configure Git default editor”Follow instructions here to enable the code command in terminal to open VS Code.
Set the default Git code editor to VS Code to avoid Git’s default command line editor Vim, which requires learning Vim-specific keyboard shortcuts. We may need to use Vim on remote servers as SWEs, but to keep things simple during course we will stick to VS Code.
git config --global core.editor "code --wait"Configure Git and GitHub Credentials
Section titled “Configure Git and GitHub Credentials”Set your GitHub account credentials on your computer through the command line. This will enable us to interact with GitHub via the command line, which we will do a lot. Please replace <YOUR_GITHUB_USERNAME> and <YOUR_GITHUB_EMAIL> with your GitHub username and email.
git config --global user.name "<YOUR_GITHUB_USERNAME>"git config --global user.email "<YOUR_GITHUB_EMAIL>"Type git config -l into the terminal to verify configuration success. If you see user.name and user.email in the output, we succeeded. 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.
After configuring your GitHub credentials you will be able to access GitHub repositories and make requests, however you will be prompted for your username and password every single request.
While this level of security is brilliant for companies it can be frustrating for the developers. To make your lives a tad easier you can run these commands in your CLI in order to save your credentials into the environment.
git config --global credential.helper storegit config --global credential.helper cacheAfter doing these commands you may need to go through git flow once before it has saved your credentials (including your personal access token, which should be used as a password when prompted for username and password.
Install Node.js
Section titled “Install Node.js”Please follow this link https://nodejs.org/en/download/package-manager for complete documentation for installing Node.js
Windows
Section titled “Windows”Open an Ubuntu terminal in VS Code and run the following commands separately.
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -sudo apt-get install -y nodejsInstall Node.js using Homebrew using the following commands. install installs the package and link makes the node command accessible in our terminal. Run these commands separately.
brew install node@20brew link node@20Install Python on Windows
Section titled “Install Python on Windows”Download Python Installer
Section titled “Download Python Installer”- Go to the Python official download page.
- Click on the latest version for Windows (e.g., Python 3.10 or higher).
Run the Installer
Section titled “Run the Installer”- Double-click the downloaded
.exefile to start the installer. - Check the box that says “Add Python to PATH” at the bottom of the installer window.
- Click on “Customize Installation”.
Customize Installation
Section titled “Customize Installation”- Leave the default settings as is, and click “Next”.
- On the “Advanced Options” page, select “Install for all users”.
- Click “Install” to begin the installation process.
Verify Installation
Section titled “Verify Installation”Open Command Prompt and run the following command to see the version of Python installed.
python --versionInstall Python on macOS
Section titled “Install Python on macOS”Install Homebrew (If Not Already Installed)
Section titled “Install Homebrew (If Not Already Installed)”Homebrew is a package manager for macOS that simplifies the installation of software.
Open Terminal and run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Install Python
Section titled “Install Python”Run the following command in Terminal:
brew install pythonVerify Installation
Section titled “Verify Installation”Run:
python3 --versionThis should display the installed Python version.
Verify Python and pip Installation
Section titled “Verify Python and pip Installation”Check Python Version
Section titled “Check Python Version”Run the following command in your terminal or command prompt to see the installed Python version:
python --versionor
python3 --versionCheck pip Version
Section titled “Check pip Version”Run:
pip --versionor
pip3 --versionInstall pip if not available:
Section titled “Install pip if not available:”If pip is not installed, use the following command (for Linux):
sudo apt-get install python3-pipVerify pip Installation:
Section titled “Verify pip Installation:”After installation, run:
pip3 --versionThis should display the installed pip version.
Install Docker Desktop (Windows & macOS)
Section titled “Install Docker Desktop (Windows & macOS)”Download Docker Desktop:
Section titled “Download Docker Desktop:”- Visit the Docker Desktop download page
- select the version for your operating system.
Run the Installer:
Section titled “Run the Installer:”- Windows: Double-click the downloaded
.exefile and follow the on-screen instructions. - macOS: Open the
.dmgfile and drag Docker to the Applications folder.
Complete the Installation:
Section titled “Complete the Installation:”- Follow the installation instructions, agree to the terms and conditions, and select the necessary options (e.g., use WSL 2 for Windows).
Launch Docker:
Section titled “Launch Docker:”- Open Docker Desktop from the Start menu (Windows) or Applications (macOS).
Verify Installation:
Section titled “Verify Installation:”Open a terminal or command prompt and run:
docker --versionYou should see the Docker version displayed, indicating that Docker has been successfully installed.
Extra & Optional
Section titled “Extra & Optional”Install Code Formatters
Section titled “Install Code Formatters”Install Prettier
Section titled “Install Prettier”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 VS Code here.
Install ESLint
Section titled “Install ESLint”ESLint is a JavaScript code linter that helps us detect functional errors in our code prior to running it.
- Install ESLint on your computer by running
sudo npm i -g eslintfrom the terminal in VS Code. Enter your computer’s password if prompted. - Install the ESLint VS Code extension here.
Set VS Code formatting settings
Section titled “Set VS Code formatting settings”- Open VS Code and open the command prompt with
Ctrl+Shift+Pon Windows orCmd+Shift+Pon Mac - Start typing
Preferences: Open Settings (JSON)and select this option when you see it in the search dropdown. VS Code should open a JSON settings file. - Replace the contents of the file with the code below
- Save the settings file
- Restart VS Code to apply settings
{ "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "editor.formatOnPaste": true, "editor.tabSize": 2}GitHub and SSH
Section titled “GitHub and SSH”Another way developers are able to authenticate requests to GitHub is to create and use an SSH key on their personal machines. This SSH key acts as a unique signature that can be linked to your GitHub account online, essentially creating a connection between your machine and GitHub when used. SSH keys require a little more setup than using HTTPS but they will not prompt you for authentication every single request.