Build Your Homepage in 5 Minutes with GitHub + Vercel
Learn the modern workflow where pushing to GitHub triggers Vercel to auto-deploy your site. End the lesson with a working https://your-name.vercel.app homepage.
What you'll learn
- 1Understand what GitHub and Vercel are and why they pair so well
- 2Write your first HTML file and push it to a GitHub repository
- 3Connect Vercel to GitHub to build an automatic deployment pipeline
- 4See first-hand how editing code triggers an automatic redeploy
Lesson Flow at a Glance
| Time | Step | What you learn |
|---|---|---|
| 0:00 β 0:15 | 1. Why GitHub + Vercel? | Build the mental model |
| 0:15 β 0:30 | 2. Create accounts | Sign up for GitHub and Vercel |
| 0:30 β 0:50 | 3. Your first HTML file | What a web page really is |
| 0:50 β 1:10 | 4. Upload to GitHub | Put code on the internet |
| 1:10 β 1:30 | 5. Deploy with Vercel | Get a real URL |
| 1:30 β 1:50 | 6. Make an edit | Push β auto-deploy in action |
| 1:50 β 2:00 | 7. Wrap-up & next steps | Where to go from here |
1. Why GitHub + Vercel?
"How hard can a homepage be?"
Putting a homepage online used to be a chore:
- Rent a server (tens of dollars a month)
- Install a web server via Linux commands
- Upload files with an FTP client
- Buy a domain and wire it up
- Repeat every time you edit something
Today? Write the file β push to GitHub β Vercel handles the rest. Done.
Who does what
A simple analogy:
- GitHub = cloud storage for your code (think Google Drive for developers)
- Vercel = the assistant that watches GitHub and serves your site automatically
[Your laptop] ββwrite codeββ [GitHub] ββauto-detectββ [Vercel] ββpublishββ [The world]Why this combo became the standard
- Free: both have generous free tiers for personal projects
- Fast: a push hits production worldwide in ~30 seconds
- Automatic: connect once, never think about it again
- Industry-grade: real companies ship real products this way
What about GitHub Pages?
GitHub has a built-in static hosting feature called GitHub Pages. We choose Vercel because:
- Vercel is faster and easier, and later it hosts React/Next.js apps the same way
- GitHub Pages handles plain static files; Vercel scales beyond that
- Vercel is more common in real-world jobs β learn it from day one
2. Create Accounts
2-1. Sign up for GitHub
- Go to https://github.com β click Sign up
- Enter email, password, and pick a username (this becomes your URL: github.com/your-name)
- Pick the Free plan
- Verify your email
Choose a username you would not be embarrassed to put on a rΓ©sumΓ© β it lives forever in your repo URLs.
2-2. Sign up for Vercel
- Go to https://vercel.com β click Sign up
- Click "Continue with GitHub" (this is the smart path β they will link automatically)
- Approve the GitHub OAuth permissions
- Pick the Hobby (Free) plan
By signing in via GitHub, Vercel can see your repositories. That is exactly the integration we want for auto-deploys.
3. Your First HTML File
What is HTML?
HTML (HyperText Markup Language) is the structural language of every web page. It is just text β no special software required.
Write the file
Open any plain-text editor (Notepad on Windows, TextEdit on macOS in plain text mode) and save the following as index.html on your desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Alice β Home</title>
</head>
<body>
<h1>Hello, I am Alice π</h1>
<p>This is my first homepage.</p>
<ul>
<li>Learning to code</li>
<li>Loves cats</li>
<li>Coffee enthusiast</li>
</ul>
</body>
</html>Double-click the file to open it in your browser. Welcome to your first homepage β running locally on your machine.
On Windows, make sure the extension is .html, not .html.txt. Show hidden file extensions in File Explorer if needed.
4. Upload to GitHub
Create a repository
- On GitHub, click the "+" button (top right) β New repository
- Name it my-homepage
- Description: My first homepage
- Public (so Vercel can read it for free)
- Check "Add a README file"
- Click Create repository
Upload your file
- In the new repo, click "Add file" β "Upload files"
- Drag your index.html into the page
- Commit message: "Add first homepage"
- Click "Commit changes"
Your code is now on GitHub. Anyone can view it at github.com/your-name/my-homepage.
5. Deploy with Vercel
- Go to https://vercel.com β log in (with GitHub)
- Click "Add New..." β "Project"
- Find my-homepage in the list β click Import
- Leave all defaults β click Deploy
- Wait ~30 seconds for the green check
Click the preview thumbnail. You now have a real URL like https://my-homepage-your-name.vercel.app β visible from anywhere in the world.
Want a custom domain? You can buy one (about $10/year) and connect it in Vercel β Settings β Domains.
6. Make an Edit
Here is the magic: edit on GitHub, watch Vercel redeploy automatically.
- Open index.html on GitHub β click the pencil (βοΈ) icon
- Change "Alice" to your real name and add a few hobbies
- Commit message: "Update profile"
- Click Commit changes
- Open the Vercel dashboard β a new deployment is already running
- Refresh your site URL after ~30 seconds. Changes are live!
What just happened
1. You committed on GitHub
2. GitHub fired a webhook to Vercel
3. Vercel grabbed the new code
4. Vercel built and published the new version
5. The world sees your update7. Wrap-up & Next Steps
What you accomplished
- Wrote your first HTML
- Created a GitHub account and a repository
- Set up a Vercel project linked to GitHub
- Experienced an automatic deployment pipeline
Common questions
- Q. The deploy failed? β Check the Vercel build logs; usually it is a filename typo.
- Q. I do not see my changes β Hard-refresh (Ctrl/Cmd + Shift + R) to bust the browser cache.
- Q. Can I make it private? β Yes, but private repos may need a paid Vercel plan.
Next: CSS
Your homepage works but it looks plain. Next lesson, we will style it with CSS β colors, fonts, and layout.
π Mini Projects
All lecture materials and example code are openly available on GitHub.
View on GitHub β