1 Hour Guide1 Hour Guide
Remaining:60 min
โ† Back to Tutorials
๐ŸŒ Webโ€ข60 minโ€ขBeginnerโ€ขMay 1, 2026

1 Hour to Deploy Your First Site

Get your first website live on the internet in 60 minutes. Free, with HTTPS, auto-deploys on git push.

#deployment#web#github#cloudflare#hosting

By the end of this hour, your site will be live at a real URL, served over HTTPS, completely free, with auto-deploys on every git push.

๐ŸŽฏ What You'll Build

A live personal landing page at:

https://yourname.pages.dev

(Or your own custom domain)

โฑ๏ธ Time Breakdown

0โ€“10min
Create a simple website
10โ€“25min
Push to GitHub
25โ€“45min
Deploy with Cloudflare Pages
45โ€“55min
Add custom domain (optional)
55โ€“60min
Test auto-deploy

๐Ÿ“‹ Prerequisites

Step 1: Create Your Site (0โ€“10 min)

mkdir my-first-site
cd my-first-site

Create index.html:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Hi, I'm Your Name</title>
  <style>
    body {
      font-family: -apple-system, system-ui, sans-serif;
      max-width: 600px;
      margin: 80px auto;
      padding: 0 20px;
      line-height: 1.6;
    }
    h1 { font-size: 2.5rem; }
    a { color: #FF6B35; text-decoration: none; }
    a:hover { text-decoration: underline; }
  </style>
</head>
<body>
  <h1>Hi, I'm Your Name ๐Ÿ‘‹</h1>
  <p>Building things on the internet.</p>
  <p>
    <a href="https://github.com/yourname">GitHub</a> ยท
    <a href="https://twitter.com/yourname">Twitter</a> ยท
    <a href="mailto:you@example.com">Email</a>
  </p>
</body>
</html>

Open it locally:

open index.html  # Mac
xdg-open index.html  # Linux
start index.html  # Windows
โœ…

Checkpoint

Your site loads in the browser with your name and links visible.

Step 2: Push to GitHub (10โ€“25 min)

git init
git add .
git commit -m "Initial commit"

Create a repo on github.com/new:

  • Name: my-first-site
  • Visibility: Public
  • Don't initialize with README

Push:

git remote add origin https://github.com/YOUR-USERNAME/my-first-site.git
git branch -M main
git push -u origin main

Use a Personal Access Token instead of password if asked.

โœ…

Checkpoint

Refresh your repo page on GitHub. You should see index.html.

Step 3: Deploy with Cloudflare Pages (25โ€“45 min)

  1. Go to dash.cloudflare.com
  2. Workers & Pages โ†’ Create โ†’ Pages tab
  3. Connect to Git โ†’ authorize GitHub
  4. Select my-first-site repository

Build settings:

FieldValue
Project namemy-first-site
Production branchmain
Framework presetNone
Build command(empty)
Build output directory/

Click Save and Deploy. Wait ~1 min.

โœ…

Checkpoint

Visit https://my-first-site.pages.dev. Your site is live! ๐ŸŽ‰

Step 4: Custom Domain (Optional, 45โ€“55 min)

If you have a domain:

  1. Project โ†’ Custom domains โ†’ Set up a custom domain
  2. Enter your domain (e.g., yourname.com)
  3. If your domain uses Cloudflare DNS, it auto-configures
  4. Otherwise, add a CNAME record pointing to my-first-site.pages.dev

Wait 1โ€“5 min for DNS propagation.

Step 5: Test Auto-Deploy (55โ€“60 min)

Make a change:

<h1>Hi, I'm Your Name โœจ</h1>

Push:

git add .
git commit -m "Update emoji"
git push

Within 30 seconds: Cloudflare detects the push, rebuilds, and updates your site.

๐ŸŽ‰ Continuous deployment pipeline complete!

๐ŸŽ Bonus

  • Custom 404: Drop 404.html in your repo
  • Analytics: Pages โ†’ Settings โ†’ Web Analytics โ†’ Enable (privacy-friendly)
  • Favicon: Drop favicon.ico in repo root
  • OG tags: Add to <head> for better social previews
<meta property="og:title" content="Your Name">
<meta property="og:description" content="Building things on the internet">
<meta property="og:image" content="https://yourname.com/og.png">

๐Ÿ“š Next Steps

โ†’
1 Hour to Python Basics
Go from zero to writing your first real Python script in 60 minutes.
60 min
โ†’
1 Hour to Build an AI Chatbot
Build a working AI chatbot with OpenAI API in 60 minutes. From API setup to a functional CLI bot with conversation memory.
60 min

๐Ÿ”— Resources