Setting Up Environment
Time: ~20 minutes | Difficulty: Beginner
What You'll Learn
- How to install Node.js, VS Code, Git, and essential tools
- Optional modern tools (Warp terminal, Fork git client)
- Project-specific CLIs (Firebase, GitHub)
Quick Check — Already Installed?
Open your terminal (Mac: Terminal, Windows: PowerShell or Git Bash) and run:
node --version # Should show v18+ or v20+
npm --version # Should show 9+ or 10+
code --version # Should show VS Code version
git --version # Should show git version
firebase --version # Should show Firebase CLI version (optional)
gh --version # Should show GitHub CLI version (optional)node --version # Should show v18+ or v20+
npm --version # Should show 9+ or 10+
code --version # Should show VS Code version
git --version # Should show git version
firebase --version # Should show Firebase CLI version (optional)
gh --version # Should show GitHub CLI version (optional)Required: node, npm, code, git Optional (install later): firebase, gh
If the required four work, skip to Terminal Survival Guide.
Step 1: Install Node.js
Node.js includes npm (the package manager).
Option A: Direct Install (Simple)
- Go to nodejs.org
- Download the LTS version (Long Term Support)
- Run the installer, accept defaults
Option B: Using nvm (Recommended for Developers)
nvm (Node Version Manager) lets you switch between Node versions easily.
Mac/Linux:
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Restart terminal, then:
nvm install --lts
nvm use --ltsWindows: Download nvm-windows and run the installer, then:
nvm install lts
nvm use ltsWhy nvm? Different projects may need different Node versions. nvm makes switching easy.
Verify Installation
Open your terminal and type:
node --versionYou should see something like v20.11.0
Then check npm:
npm --versionYou should see something like 10.2.4
Troubleshooting
If you see "command not found":
- Mac: You may need to restart your terminal
- Windows: You may need to restart your computer
Step 2: Install VS Code
- Go to code.visualstudio.com
- Download for your operating system
- Run the installer
On Mac
- Drag VS Code to your Applications folder
- Open it from Applications
On Windows
- Run the installer
- Check "Add to PATH" when asked
- Click through the rest with defaults
Step 3: Install VS Code Extensions
Extensions add features to VS Code. Let's install the essentials for TypeScript + React development.
Open Extensions (Cmd+Shift+X on Mac, Ctrl+Shift+X on Windows) and install:
Essential (Install These First)
| Extension | Publisher | What It Does |
|---|---|---|
| ESLint | Microsoft | Finds JavaScript/TypeScript errors |
| Prettier | Prettier | Auto-formats your code beautifully |
| Error Lens | Alexander | Shows errors inline (super helpful!) |
TypeScript & React
| Extension | Publisher | What It Does |
|---|---|---|
| TypeScript Vue Plugin (Volar) | Vue | Better TypeScript support for modern frameworks |
| ES7+ React/Redux/React-Native snippets | dsznajder | Quick code snippets for React |
| Auto Import | steoates | Automatically imports missing modules |
| Path Intellisense | Christian Kohler | Autocompletes file paths |
Git & Version Control
| Extension | Publisher | What It Does |
|---|---|---|
| GitLens | GitKraken | Shows who changed what and when |
| Git Graph | mhutchie | Visual git history |
Productivity Boosters
| Extension | Publisher | What It Does |
|---|---|---|
| Auto Rename Tag | Jun Han | Rename paired HTML/JSX tags together |
| Bracket Pair Colorizer | CoenraadS | Makes nested brackets colorful |
| TODO Highlight | Wayou Liu | Highlights TODO/FIXME comments |
| Code Spell Checker | Street Side Software | Catches typos in your code |
Firebase (Optional - Install When Needed)
| Extension | Publisher | What It Does |
|---|---|---|
| Firebase | Firebase | Firebase syntax highlighting and snippets |
Don't Install Everything at Once
Start with the Essential extensions. Add TypeScript & React extensions when you start building. You can always install more later!
Step 4: Install Git
Git is the version control system we'll use.
Mac
Option 1: Install with Homebrew (if you have it)
brew install gitOption 2: Download from git-scm.com
Option 3: Git might already be installed. Check with git --version
Windows
Download Git for Windows from git-scm.com
Important setup options during installation:
- ✅ Check "Git Bash Here" (gives you Unix-style terminal)
- ✅ Check "Add to PATH"
- ✅ Use "Checkout as-is, commit Unix-style line endings"
Why Git Bash? It gives you Unix commands on Windows, making tutorials and commands consistent across platforms.
Verify Git Installation
git --versionYou should see something like git version 2.43.0
Step 5: Enable Terminal Integration
Mac
Open VS Code, then:
- Press
Cmd+Shift+P - Type "shell command"
- Select "Install 'code' command in PATH"
Now you can type code . to open any folder in VS Code.
Windows
If you checked "Add to PATH" during VS Code installation, code . should already work.
Test it:
code --versionOptional: Better Terminal (Recommended)
The default terminal works fine, but these modern alternatives make development more pleasant.
Warp (Mac/Linux)
Why Warp?
- AI-powered command suggestions
- Better autocomplete
- Command history search
- Modern, beautiful interface
Install:
- Go to warp.dev
- Download and install
- Set as default terminal (optional)
Windows Terminal (Windows)
Why Windows Terminal?
- Tabs support
- Better fonts and colors
- Multiple shells in one window
- Free from Microsoft Store
Install:
# Option 1: Microsoft Store (search "Windows Terminal")
# Option 2: winget
winget install Microsoft.WindowsTerminalOptional: Git GUI Client
Command-line git is powerful, but a visual tool helps understand what's happening.
Fork (Mac/Windows) - Recommended
Why Fork?
- Clean, simple interface
- Visual branch history
- Easy merge conflict resolution
- Free for students
Install:
- Go to git-fork.com
- Download for your OS
- Install and set up with your git config
Alternative: GitHub Desktop (desktop.github.com) - simpler but less powerful
Project-Specific CLI Tools
These CLIs are needed for our bootcamp project. Install them now or during Phase 5.
Firebase CLI
For deploying your app to Firebase Hosting.
npm install -g firebase-toolsVerify:
firebase --versionGitHub CLI (Optional but Useful)
For creating repos and PRs from the terminal.
Mac:
brew install ghWindows:
winget install GitHub.cliLinux: See cli.github.com for your distro.
Verify:
gh --versionYou'll authenticate with GitHub later:
gh auth loginStep 6: Your First Test
Let's make sure everything works together.
# Create a test folder
cd ~/Desktop
mkdir hello-world
cd hello-world
# Open in VS Code
code .# Create a test folder
cd ~\Desktop
mkdir hello-world
cd hello-world
# Open in VS Code
code .In VS Code:
- Create a new file:
hello.js - Type this code:
console.log("Hello, World!");
console.log("I am learning to code!");
console.log("2 + 2 =", 2 + 2);- Open terminal in VS Code:
Ctrl+` - Run it:
node hello.jsYou should see:
Hello, World!
I am learning to code!
2 + 2 = 4🎉 You just ran your first program!
Clean Up
cd ~/Desktop
rm -rf hello-worldcd ~\Desktop
rm -r -Force hello-world