Skip to content

Setup

The sections on this page will lead you through the process of setting up the applications and accounts needed to complete IMS322 coursework. It is recommended that you follow the steps below in the order listed:

  1. Git
  2. GitHub and GitHub Student Benefits
  3. Browsers
  4. CodePen
  5. VS Code
  6. Assignment Procedures

Git

Git is a "version control system" that helps track and manage changes in files. While Git itself is very powerful, we will only be using it through the Source Control panel in VS Code, not as a separate application.

Activity Bar: Source Control panel
Activity Bar: Source Control panel

Windows Installation

Windows users should download and install the latest version of Git from here. Accept the default options during installation.

Mac Installation

There is not an updated standalone Git installer for Mac. Instead, perform the following actions:

  1. Make sure you are on a fast Wi-Fi network (MiamiOH-Secure or your home Wi-Fi, not MiamiOH-Visitor).
  2. Open the application Terminal, type git --version, then press Enter to run the command.
  3. If Git is already installed, you will see a response like git version 2.52.0.
  4. If Git is not already installed, you should be prompted to install the Xcode command line developer tools. If so, click Install. This may take a while.

Other

If you do not have a Windows or Mac laptop (e.g., iPad or Chromebook), please let me know. There are some other viable options, but we will need to address them on a case-by-case basis.


GitHub and GitHub Student Benefits

GitHub is a platform for creating, storing, and managing code. It relies on Git to commit and sync changes between files stored locally on your computer (the ones that you'll be editing in VS Code) and online repositories. In this class, we will be using GitHub to manage all major assignments and projects.

  1. Create a GitHub account (if you don't already have one).
  2. In the upper-right corner of any page on GitHub, click your profile icon, then click Settings.
  3. In the Access section of the sidebar, click Password and authentication.
  4. In the Two-factor authentication section of the page, click Enable two-factor authentication.
  5. STOP! DO NOT SCAN THE QR CODE USING YOUR REGULAR CAMERA APP!
  6. Open Duo Mobile and click Add +, then choose Use QR Code to scan the QR code. You may use a different 2FA app if you have a preferred alternative.
  7. Complete the rest of the Two-Factor Authentication setup as directed.
  8. Register for GitHub Student Benefits here in order to enable access to the GitHub Copilot AI assistant. If needed, there is a document in myMiami called "Enrollment Verification" that seems to work for the verification requested by GitHub.
  9. Once your student benefits have been approved, log in to GitHub and click on your profile icon. Choose Your Copilot from the menu to claim Copilot access.

Browsers

Although there are many different modern web browsers, there are essentially only three different browser engines currently in use. A browser engine is the software component under the hood that handles document layout, rendering, and security.

  • WebKit is maintained by Apple and used for the desktop and mobile versions of Safari, which is the default browser on Apple devices.
  • Blink is maintained by Google and powers all Chromium-based browsers, which include Google Chrome, Microsoft Edge, Brave, Opera GX, and others.
  • Gecko is maintained by Mozilla and used for Firefox.

You must have both Firefox and at least one Chromium-based browser installed on your laptop for this class. It is also expected that you choose one of these as the Live Server Custom Browser in VS Code (instructions provided below).


CodePen

CodePen is a popular online code editor focused on creating and sharing snippets of HTML, CSS, and JavaScript. The embedded code examples throughout the IMS322 Docs site have been created using CodePen. One of the main reasons that we use CodePen for this class is because it allows you to edit embedded examples right on the page and see live results - try it out below! We will also regularly use CodePen instead of VS Code for smaller assignments, like weekly practice and in-class exercises.

Quick Setup

  1. Log in to CodePen using your GitHub username and password. There is no actual connection between CodePen and GitHub; it simply uses the same account credentials.
  2. Click on your profile icon in the upper-right corner, then choose Settings.
  3. In the Editor Preferences section, make sure that the Format On Save and Autocomplete options are checked.

Notes

  • A project on CodePen is called a "Pen." By default, a Pen includes HTML, CSS, and JavaScript editors, as well as a live preview.
  • The simplified HTML editor should not have a <head> element or <body> tags. You should start your HTML content from the first tag that would normally go after the opening <body> tag, like a <header> or <h1> element.
  • There is no file hosting provided with free CodePen accounts. When you want to include images in CodePen assignments, you will need to use a URL instead of a file name for the src attribute of the <img> element. Generally, the content of images in our CodePen-based assignments is not important, so a random image hosting service like Lorem Picsum will suffice.

See the Pen Embed Example (IMS322 Docs) by Eric Sheffield (@ersheff) on CodePen.


VS Code

Visual Studio Code (aka VS Code) is the code editor that we will be using for all major assignments in this class. After installing the VS Code application, follow the instructions below to configure extensions and settings.

Extensions

We will be using a small collection of VS Code extensions to assist with formatting and development. Search for the following extensions in the Extensions panel to install them:

  1. Prettier for CSS and JavaScript formatting (published by Prettier)
  2. Live Server for quick and easy browser previews (published by Ritwick Dey)
  3. Live Share for collaborative coding (published by Microsoft)
Activity Bar: Extensions panel
Activity Bar: Extensions panel

Git Setup and GitHub Login

Make sure that Git has finished installing before completing these steps.

  1. In VS Code, click on the Terminal menu and choose New Terminal.
  2. In the Terminal panel, run the two commands provided below, one at a time, inserting your own GitHub username and email where indicated (you will not see a confirmation message).
  3. Click the Accounts icon in the lower-left corner and sign in using your GitHub account.
git config --global user.name "your_username"
git config --global user.email your@email.com
Activity Bar: Accounts
Activity Bar: Accounts

Editor Settings

  1. Click on the gear icon in the lower-left and choose Settings. Search for Live Server Custom Browser and select your preferred browser (Firefox or Chromium-based) from the dropdown. This is the browser that will open automatically whenever you run the Live Server extension to preview your code.
  2. Some additional settings, such as autoformatting, will be managed for you by configuration files in project templates. These are located inside folders that begin with ., such as .instructor and .vscode. Do not modify or delete these files!
  3. In a future class period, we will go over how to enable and configure Copilot after everyone's student benefits have been activated.

Assignment Procedures

Throughout the semester, coursework will be assigned using both CodePen and VS Code with GitHub. Some specific instructions and details in the assignment descriptions may differ on a case-by-case basis, but the general workflow for both platforms is outlined below.

Accepting CodePen Assignments

  1. If the Canvas assignment instructions point to an embedded example Pen, click Edit On CodePen, then create a copy of it in your account by clicking the Fork button in the lower-right corner of the editor window. Otherwise, create a new empty Pen.
  2. Change the Pen name to the name provided in the Canvas assignment and click Save. If you need to find this Pen again later, it will be in Your Work.
Edit On CodePen
Edit On CodePen
CodePen: Fork
CodePen: Fork

Submitting CodePen Assignments

  1. Click the Save button in the upper-right corner of the CodePen window.
  2. Click Share in the bottom-right corner and select Copy Link.
  3. Paste the copied link in the Website URL field of the corresponding Canvas assignment and click Submit Assignment.
CodePen: Save and Share
CodePen: Save and Share

Accepting and Cloning VS Code Assignments

The first time you accept a VS Code assignment through GitHub Classroom, you will be asked to link your GitHub account to your name.

  1. Click the link in the corresponding Canvas assignment to accept the assignment on GitHub Classroom. Once your new repository is generated, it should be visible in your Top Repositories on GitHub. You can also find it in the IMS322-Sheffield-S26 organization repositories by clicking your profile icon, then clicking Your organizations.
  2. Open VS Code. If an existing folder is already open, close it by going to the File menu and choosing Close Folder.
  3. Open the Source Control panel and click the Clone Repository button. Copy-paste the URL from your new repository into the text field. You will be prompted for a location on your computer to save this folder.
  4. To open this folder in the future, go to the File menu and choose Open Folder...
Source Control: Clone Repository
Source Control: Clone Repository

Working With VS Code Assignments

  • Folders are very important when working in VS Code. You should always check the top of the Explorer panel to make sure that you are working within the desired assignment folder. The primary open folder acts as the "root" of your workspace where you will find your HTML, CSS, and JavaScript files, as well as any subfolders (e.g., for images).
  • To preview your code in the browser, click the Go Live button in the bottom-right corner of the window (which is part of the Status Bar). This will use the Live Server extension to launch your project in your preferred browser. If you accidentally lose your browser preview window, you can reopen the browser and navigate to http://127.0.0.1:5500/ (replacing the last 4 digits with whatever port number appears in the Status Bar while the extension is running). Alternatively, you can click on the port number in the Status Bar to close the extension and relaunch it by clicking Go Live again.
Status Bar: Go Live
Status Bar: Go Live
Status Bar: Port #
Status Bar: Port #

Committing and Submitting VS Code Assignments

It is recommended that you Stage, Commit, and Sync your work often, even before the project is finished.

  1. Open the Source Control panel in VS Code.
  2. Stage all changes by clicking the + next to Changes.
  3. Enter a commit message and click Commit.
  4. Use "draft" for your draft submission (where applicable).
  5. Use "finished" for your final submission.
  6. If you do not use these commit messages, the commit closest to the due date will be used for grading.
  7. The Commit button will change to Sync Changes. Click this to push the latest changes to GitHub. If you only commit but do not sync, I will not be able to see your work.
  8. Open your repository on GitHub.
  9. Go to the Settings tab for the repository (not your account), then navigate to the Pages section.
  10. Under Branch, select "main" from the dropdown and click Save. You only need to publish the site once per project. Any future changes pushed to GitHub will automatically update the live site.
  11. After a few moments, refresh the Settings page. A GitHub Pages URL should appear near the top next to a Visit Site button. Click this button to verify your site loads correctly.
  12. Copy the GitHub Pages URL and paste it in the Website URL field of the corresponding Canvas assignment, then submit.
Source Control: Stage and Commit changes
Source Control: Stage and Commit changes

Setup Checklist

  • I have installed Git (not GitHub Desktop).
  • I have created my GitHub account and enabled Two-Factor Authentication using Duo Mobile (or my preferred 2FA app).
  • My GitHub Student Benefits are active or pending.
  • I have enabled the Format On Save and Autocomplete options in my CodePen account settings.
  • I have both Firefox and a Chromium-based browser installed.
  • I have installed VS Code.
  • I have installed the required VS Code extensions.

    • Prettier (published by Prettier)
    • Live Server (published by Ritwick Dey)
    • Live Share (published by Microsoft)
  • I have run the git config commands in the Terminal in VS Code.

  • I have signed VS Code into my GitHub account.
  • I have selected my Live Server Custom Browser in settings.