Module 0 — Setup
Install every tool once, so no later module stops for an install.
Time: about 60–90 minutes (estimate)
About this module
What this module covers
You set up file extensions, VS Code (with its AI features off), Git, the GitHub CLI and Node.js, and prove each one works with a single command. It’s what keeps the rest of the course moving: every later module assumes these tools are ready, so no lesson ever stops for an install.
Tips for the learner
This module is mostly installing, so its prompts ask you to write things down. In later modules, some prompts will also ask you to explain code to yourself, out loud. Each habit does a different job.
Write it down to check yourself. Here that means your answers in Concept 1, and what each version command prints. A written answer can’t change after you see the result, so the comparison is fair and you learn from the difference. If a tool stops working in a later module, your notes show what was working before.
Recite to understand. From the later modules on, when a prompt says “out loud,” explain the code in your own words, as if you were teaching it. Saying it aloud makes a deeper impression than reading silently, and it shows you right away which line you cannot explain yet.
Start one notebook for this course, today. Use it for your predictions, key terms, steps, mistakes, and questions to come back to. Date each entry and write the module number. Your first entries come from this module: the four version numbers (Git, GitHub CLI, Node, npm) and the folder path of my-site.
The four badges
Every core concept moves through the same four steps, called IEIA. Each step is marked with its badge.
- Introduce (a lightbulb: a new idea) - You meet the concept: its name, and why it matters to you, in a sentence or two.
- Explain (a speech bubble: the idea in words) - How it works, one idea at a time, in plain words.
- Illustrate (an eye: see it) - A small example you can look at: a code snippet, a real screenshot or a diagram. Its caption, which starts with this badge, tells you what to notice.
- Apply (a keyboard: your turn) - A short task to do right now, before you read on. Often you type or predict something; sometimes you write it down, sketch it, or explain code to yourself out loud.
Contents
- Why this matters
- Before you start
- Core concepts
- Exercise
- Project (in the full packet)
- Common misconception
- Summary
- Check your understanding
- Before next module
- Go further
- What to keep
In this module you will learn:
- What each tool in a front-end developer’s kit does, and why you need it
- How to show file extensions in File Explorer
- How to install VS Code, and how you will see your pages in Edge or Chrome (the Live Preview extension is optional)
- How to turn off VS Code’s built-in AI features, and why this course asks you to
- How to install Git and set your name, email and default branch
- How to install the GitHub CLI and sign in to GitHub from the terminal
- How to install Node.js so you can run JavaScript outside the browser
- How to open a terminal in the right folder, and why you restart VS Code after each install
Why this matters
Every developer works inside a small set of tools. You write code in an editor, you look at the result in a browser, you save your history with Git, and you publish with GitHub. If one of those is missing in the middle of a lesson, you stop learning and start troubleshooting. This module puts everything in place first.
You will also make one decision that shapes the rest of the course: you will turn off the AI assistant in your editor. That is not because AI tools are bad. It is because this course asks you to explain every line you commit, and the simplest way to explain a line truthfully is to have written it yourself.
By the end you will have four tools installed and checked, a browser to see your pages, and a folder ready for the site you build in Module 1.
The five tools you use from now on and the job each one does. Edge is already on Windows 11; you install the other four in this module.
Before you start
- You need a Windows 11 computer with an internet connection and permission to install software. This course is written for Windows only.
- Create a free GitHub account at github.com if you do not have one. GitHub is the website that will store a copy of your project online and publish your site, and you sign in to it from the terminal in this module. Pick a username you would be happy to show an employer; it appears in your website address later.
- Turn on two-factor authentication when GitHub asks. Since March 2023, GitHub has required “all users who contribute code on GitHub.com” to turn on two-factor authentication (2FA): after your password, a second check such as a code from an app on your phone (GitHub Docs, About mandatory two-factor authentication).
- Decide where your course work will live. Choose a folder with a short name and no spaces, for example a folder called
code559inside Documents. If OneDrive backs up your Documents folder (OneDrive settings, Sync and backup, Manage backup), choose a folder outside it instead, such asC:\Users\you\code559. The pictures in this course still showDocuments\code559.
Checkpoint. You can sign in to github.com, and you know the folder where your course work will live.
Core concepts
1. What is each tool for?
A front-end developer builds the part of a website that people see and use. To do that you need a place to write code, a way to see it, a way to keep its history, and a place to publish it.
VS Code is the editor where you type HTML, CSS and JavaScript. Those are the three languages this course teaches: HTML structures a page’s content, CSS styles it, and JavaScript adds interactivity. Edge or Chrome is the browser where you see your page; after each save you press F5 to reload it. Git keeps a history of your project as a series of saved snapshots, called commits. You make your first commit in Module 1. GitHub is a website that stores a copy of that history online and can publish your site. The GitHub CLI (
gh) lets you do GitHub tasks from the terminal. CLI stands for command-line interface. The terminal is a window where you type commands as text instead of clicking. You will use the one built into VS Code, and most installs in this module are commands you type there. Node.js runs JavaScript outside the browser; you will use it in the JavaScript modules.
Look at the toolkit picture above. Every box is something you will use in almost every module.
Before you install anything, write down which tool you would use to (a) see your page, (b) save a snapshot, (c) publish. Check your answers against the paragraph above.
2. Why show file extensions?
A file extension is the part of a name after the last dot:
.html, .css, .js. Windows hides it by default.
When extensions are hidden, a file you meant to name
index.html can quietly become index.html.txt, and the browser treats it as plain text. Showing extensions stops that mistake before it happens.
With extensions shown, you can see that the file really ends in
.html.
Open File Explorer. Select View → Show → File name extensions so it has a check mark.
3. How will you see your pages?
VS Code is free and made by Microsoft. You write a page in VS Code and look at it in a browser. This course uses Edge or Chrome. Edge is already on Windows 11, so you need nothing extra.
From Module 1 on, you open each page straight in the browser: double-click the file in File Explorer, or drag it onto a browser window. (Double-clicking it in VS Code opens the code, not the page.) After each save, press F5 to reload. Later modules also use F12, which opens the browser’s DevTools (short for developer tools: tools built into the browser for inspecting a page). This works the same way on every page in the course.
Optional: Live Preview. Live Preview is a Microsoft extension for VS Code (an extension is an add-on that gives VS Code a new tool) that, in its own words, “Hosts a local server in your workspace for you to preview your webpages on” (VS Code Marketplace, Live Preview). It shows your page inside VS Code and, by default, updates it as you type, even before you save (its setting livePreview.autoRefreshPreview is “On All Changes in Editor” unless you change it). You do not need it for this course, and the Marketplace page says it “is still under development.” If you install it, know one thing: VS Code opens a new folder in Restricted Mode (VS Code Docs, Workspace Trust), and Live Preview stays off in Restricted Mode. Restricted Mode is a safety setting: it tries to stop code in a folder from running by itself until you trust the folder. To turn it on, trust the folder: in the Restricted Mode banner at the top, click Manage, then click Trust. Only trust folders you made yourself, like your course folders.
If you choose to install Live Preview, search the Extensions view for “Live Preview” and check that the publisher is Microsoft before you install.
You will install VS Code in the Exercise. Live Preview is steps 8 to 10, and you may skip it.
4. Why turn off AI features?
Current VS Code includes GitHub Copilot features. GitHub Copilot is an AI assistant that suggests code as you type. VS Code’s documentation says you can “disable the built-in AI features in VS Code with the
chat.disableAIFeatures” setting (VS Code Docs, Set up GitHub Copilot in VS Code).
This course has one honesty rule: if a tool wrote a line, you mark it and explain it. While you are learning, it is much simpler to write every line yourself. You can turn AI features back on later, after you can read and explain code without help.
Type the setting name into the Settings search box and tick it.
You will do this in steps 6 and 7 of the Exercise.
5. What does Git need to know about you?
Every commit records who made it. Git needs a name and an email for that.
You set three things once, with
git config --global: your name, your email, and the name of the first branch in new projects. A branch is one line of work in a project’s history, and every new project starts with one. Git still names the first branch master unless you tell it otherwise; GitHub uses main. Setting init.defaultBranch to main keeps the two in agreement.
The three
config commands print nothing when they work. --list proves they were saved. (real output, rendered; captured on Linux with Git 2.43.0. On Windows the version line ends in .windows.1 or similar, and your version will be newer.)
Predict: what will
git config --global --list show if you skip the email line? (Answer: only two lines.)
6. Why sign in to GitHub from the terminal?
The GitHub CLI can create a repository on GitHub and push your files to it with one command. A repository is a project’s folder together with its history. To push is to send your commits to GitHub. It needs permission to act as you.
gh auth login asks a few questions, then opens your browser so you can approve the sign-in. You answer GitHub.com, then HTTPS, then Yes to “Authenticate Git with your GitHub credentials?”, then choose Login with a web browser. Next, the terminal shows a one-time code on a line that starts ! First copy your one-time code:. Copy the code or write it down. The terminal then says Press Enter to open a github.com address in your browser. Press Enter, and your browser opens a GitHub page. Paste or type the code there and approve the sign-in. The terminal then says Authentication complete and Logged in as your username. (These messages are checked against the GitHub CLI’s source code in the cli/cli repository on GitHub.)
The first three prompts as GitHub CLI 2.89.0 prints them; the picture stops while
gh waits for your answer to the third. For the first two, use the arrow keys to move and Enter to choose; for the (Y/n) question, press Enter to answer Yes. The “How would you like to authenticate” question and the one-time-code steps come next; they are described above, not shown here. (real output, rendered; captured on Linux)
After you sign in,
gh auth status should say you are logged in to github.com. That is your proof.
7. Why install Node.js now?
Node.js runs JavaScript on your computer instead of inside a web page.
In Modules 5 to 8 you will practice the JavaScript language before you touch a web page. Node lets you run a script from the terminal and see the result. Installing it now means those modules never stop for setup. Choose the version that Node’s download page marks LTS (Long-Term Support). An LTS version is one the Node project keeps fixing for a long time: its releases page says critical bugs are typically fixed for a total of 30 months. When this post was checked, that was v24.21.0; Node’s release schedule makes v26 the LTS version from 2026-10-28. Any LTS version, v24 or newer, works for this course.
Two version numbers mean both Node and npm (its package manager) are installed. (real output, rendered; captured on Linux with Node 22. Your numbers will be newer, for example v24.x.)
After installing, run
node --version. Any v followed by numbers is a pass.
Exercise
Your hands, about 60 minutes (estimate). Type every command. Do not paste. Typing is how your fingers learn the commands.
-
Show file extensions. In File Explorer: View → Show → File name extensions.
-
Make your course folder. Create the folder you chose (for example
Documents\code559). -
Inside it, create a folder called
my-site. -
Install VS Code. Download it from code.visualstudio.com and run the installer.
-
On the “Select Additional Tasks” screen, tick Add “Open with Code” action to Windows Explorer file context menu and Add to PATH. The wording on your screen may be a little different; look for the two options that add “Open with Code” to the right-click menu and add VS Code to PATH. (PATH is a Windows setting that tells a terminal where to find programs. With this option ticked, a terminal can find VS Code.)
-
Turn off AI features. In VS Code: File → Preferences → Settings.
-
Type
chat.disableAIFeaturesin the search box and tick it. -
Optional: install Live Preview. You can skip this step and the next two: Edge or Chrome and F5 are all this course needs (Concept 3). To install it, click the Extensions icon in the left bar (or press Ctrl+Shift+X).
-
Search Live Preview. Check the publisher says Microsoft.
-
Click Install. It stays off until you trust your folder in step 11.
-
Open a terminal. In VS Code: File → Open Folder…, choose
my-site. If VS Code shows a Restricted Mode banner or asks whether you trust this folder, trust it: it is your own folder (Concept 3). VS Code may ask again when you open each new practice folder in later modules; trust those too, for the same reason. -
Choose Terminal → New Terminal. The prompt should end in
my-site>.
*The prompt shows which folder the terminal is in. Always check it before you type a Git command.*
-
Install Git. In the terminal type:
winget install --id Git.Git -e --source wingetThis command uses
winget, the Windows Package Manager: a command-line tool from Microsoft that installs programs. You use it so that each install is one typed command. (This is the command on git-scm.com’s Install for Windows page.) -
When it finishes, restart VS Code: close it completely with File → Exit, then open VS Code again. It normally reopens your
my-sitefolder; if not, use File → Open Folder…. -
Choose Terminal → New Terminal and type
git --version. A new terminal inside the same VS Code window is not enough, because it still uses the settings VS Code had before the install. VS Code’s own docs say: “If the command isn’t found, restart VS Code after installing Git” (VS Code Docs, Quickstart: use source control in VS Code). Still “not recognized”? Restart the computer, then try again. -
Configure Git. Use your real name and the email on your GitHub account:
git config --global init.defaultBranch main git config --global user.name "Your Name" git config --global user.email "you@example.com" git config --global --list -
Install the GitHub CLI.
winget install --id GitHub.cli --source winget(From the GitHub CLI manual’s Windows install page.)
-
Restart VS Code and open a new terminal as in steps 14 and 15 (File → Exit, open VS Code again, Terminal → New Terminal).
-
Type
gh --version. -
Type
gh auth loginand answer as in Core Concept 6. -
Finish with
gh auth status. -
Install Node.js (LTS).
winget install --id OpenJS.NodeJS.LTS -e --source wingetThe package id
OpenJS.NodeJS.LTSis listed in Microsoft’s official winget catalog (the microsoft/winget-pkgs repository on GitHub). If winget says “No package found,” download the LTS installer from nodejs.org instead. -
Restart VS Code and open a new terminal as in steps 14 and 15 (File → Exit, open VS Code again, Terminal → New Terminal).
-
Type
node --versionandnpm --version. npm is Node’s package manager, installed along with it: a tool for downloading code that other people have written. This course only checks that it is there. -
Break it on purpose. In the same terminal, type
git stauts(letters swapped). Read the message. Git says the command does not exist and suggests the closest real one.
Git names the real command it thinks you meant. Learning to read messages like this is a skill you will use every day. (real output, rendered; captured on Linux with Git 2.43.0)
-
Now try
git --verison. This time Git only prints “unknown option” and its usage summary, with no suggestion. Same kind of typo, different help: always read the whole message.
Project (in the full packet)
Your project is a setup log: each tool, its version number, and the command that proved it. The packet adds a troubleshooting guide for five problems that can stop you in Modules 0 and 1, a self-assessment, and answers to this lesson’s questions. When an install breaks in a later module, you (or anyone helping you) can see at a glance what you have and what to try first. The full brief and the step-by-step build are in the Module 0 packet. Get the packet → (opens in a new tab)
Common misconception
“Git and GitHub are the same thing.”
What would you say? Hint: one of them works with no internet connection at all.
Summary
A front-end developer writes code in VS Code, sees it in Edge or Chrome (open the file, press F5 after each save; Live Preview is an optional extra), records its history with Git, and publishes it through GitHub, using the GitHub CLI from the terminal; Node.js runs JavaScript outside the browser. Showing file extensions stops files from getting a hidden .txt ending. AI features are off so that every line you commit is a line you wrote and can explain. Git needs your name, your email and a default branch name of main. After every install, close VS Code completely and reopen it, then a new terminal and a version command prove the tool is ready.
Check your understanding
- You install Git, open a new terminal in the same VS Code window, run
git --versionand get “not recognized.” What is the most likely fix? - Why does this course set
init.defaultBranchtomain? - What would you test to prove the GitHub CLI is signed in?
Before next module
You should now be able to do these on your own:
- File extensions are visible in File Explorer
-
git --version,gh --versionandnode --versionall print a version -
gh auth statussays you are logged in - AI features are off in VS Code
- You have a
my-sitefolder and can open a terminal in it - You know how to see a page: open it in Edge or Chrome and press F5 after each save (Live Preview is optional; if you installed it, your folder is trusted)
You have only been introduced to these so far:
- Commits, repositories and pushing. You read what they are, but you have not made one yet. You make your first commit and push it in Module 1.
- Branches. You set the name of your first branch to
main, and that is all. Module 12 explains branches and has you make one. - DevTools (F12). This lesson only names it. You open it for the first time in Module 2.
- Running JavaScript with Node. You only checked its version. You run your first script in Module 5.
- npm. You only checked its version. This course does not use it again.
Go further
- VS Code Docs: Setting up Visual Studio Code and Set up GitHub Copilot in VS Code (the section on hiding AI features)
- git-scm.com: Install for Windows; Pro Git, chapter 1.6 “First-Time Git Setup”
- GitHub CLI manual:
gh auth login - nodejs.org: Download Node.js
- GitHub Docs: Creating an account on GitHub
What to keep
Keep a note of the four version numbers you saw (Git, GitHub CLI, Node, npm) and the folder path of my-site. Then answer for yourself: which step would be hardest to repeat without this post, and why?
Code559 is a 559 Solutions project. Portions adapted from Visual Studio Code documentation (CC BY 3.0 US), GitHub Docs (CC BY 4.0), and GitHub Skills (MIT). Screenshots used with permission from Microsoft.
Sources checked 2026-10-09: git-scm.com “Install for Windows”; GitHub CLI “Installing gh on Windows” (github.com/cli/cli docs); VS Code Docs “Set up GitHub Copilot in VS Code”; VS Code Marketplace “Live Preview”; nodejs.org “Download Node.js”. Checked 2026-10-11: VS Code Docs “Quickstart: use source control in VS Code”; VS Code Docs “Workspace Trust”; Live Preview’s package.json (microsoft/vscode-livepreview on GitHub: untrusted workspaces not supported; autoRefreshPreview default); GitHub CLI 2.89.0 source code (cli/cli on GitHub: internal/authflow/flow.go and pkg/cmd/auth/shared/login_flow.go); microsoft/winget-pkgs on GitHub (manifests/o/OpenJS/NodeJS/LTS); GitHub Docs “About mandatory two-factor authentication” and “About two-factor authentication”; Microsoft Support “Back up your folders with OneDrive”; nodejs.org “Download Node.js” again (v24.21.0 LTS) and Node’s release schedule (schedule.json in nodejs/Release on GitHub: v26 LTS from 2026-10-28). Checked 2026-11-17: MDN “HTML: Creating the content”, “CSS: Styling the content”, “JavaScript: Adding interactivity”, “Command line crash course” and Glossary “Developer tools”; VS Code Docs “Terminal Basics”, “Extension Marketplace”, “Workspace Trust” again (what Restricted Mode does) and “Installing Visual Studio Code on Windows” (Add to PATH); GitHub Docs “GitHub glossary” (repository, push), “About GitHub CLI” and “About GitHub Copilot”; git-scm.com “gitglossary” (branch) and “git-init”; nodejs.org “Node.js Releases” (LTS) and “An introduction to the npm package manager”; the README of microsoft/winget-cli on GitHub (Windows Package Manager).
