MODULE 02 OF 08 · 15 min

Your Free Forever Infrastructure (GitHub + Cloudflare)

Create the only two accounts you need to store your source code, track every edit with instant rollback, and serve your website globally for $0/month.

Module Outcome:

Your own GitHub account, website repository, and Cloudflare account are active with 2FA enabled.

LESSON WORKSPACE

Your module at a glance.

4 steps
Step 1 of 4

Why GitHub + Cloudflare replaces $30–$50/month website builders

Traditional builders charge recurring rent to keep a database and PHP server patched 24/7. A modern static website compiles your pages into plain HTML, CSS, and optimized images ahead of time.

Open lesson section
Example preview01
Why GitHub + Cloudflare replaces $30–$50/month website builders
01Read the section
02Apply to your project
03Review the result

Illustration · not connected to your accounts

Step 2 of 4

Step 1: Set up your GitHub account & website repository

Create a free account at github.com using your business email and turn on 2FA. Then create a dedicated repository for your website (for example: my-business-site).

Open lesson section
Example preview02
Step 1: Set up your GitHub account & website repository
01Read the section
02Apply to your project
03Review the result

Illustration · not connected to your accounts

Step 3 of 4

Step 2: Set up your Cloudflare account

Sign up for a free account at dash.cloudflare.com using your own business email and enable 2FA. You do not need a paid Cloudflare plan to host a fast static website.

Open lesson section
Example preview03
Step 2: Set up your Cloudflare account
01Read the section
02Apply to your project
03Review the result

Illustration · not connected to your accounts

Step 4 of 4

Confirm your learning

Your own GitHub account, website repository, and Cloudflare account are active with 2FA enabled.

Open completion checklist
Example preview04
Confirm your learning
01Review module outcome
02Check the tasks
03Mark complete

Illustration · not connected to your accounts

ARCHITECTURE DIAGRAM · SEPARATION OF CONCERNS

Keep Domain, Email & Website Separate

1 · YOUR DEEDDomain RegistrarCloudflare / Porkbun~$10–$15 / year2 · DO NOT BREAKBusiness EmailWorkspace / M365MX · SPF · DKIM · DMARC3 · YOUR CODEGitHub RepoAstro / HTML · main$0 / mo · Full history4 · EDGE HOSTCloudflare Pages300+ Global Cities$0 / mo · Auto HTTPSDNS ROUTING RULE:Website launches ONLY update A / CNAME records pointing to Cloudflare Pages.EMAIL SAFETY RULE:Existing MX & TXT (SPF / DKIM / DMARC) records stay untouched — zero email downtime.
Because every piece lives in your own accounts, you can swap editors, AI tools, or hosts anytime without losing your domain, email, or code.

Why GitHub + Cloudflare replaces $30–$50/month website builders

Traditional builders charge recurring rent to keep a database and PHP server patched 24/7. A modern static website compiles your pages into plain HTML, CSS, and optimized images ahead of time.

GitHub stores your source code and complete revision history for free. Cloudflare Pages compiles your repository whenever you approve an edit and serves the resulting static files from 300+ global edge locations with free SSL and unlimited static bandwidth on its free tier.

  • GitHub Free: Unlimited private and public repositories, pull requests, and complete version history.
  • Cloudflare Pages Free: Automated builds from GitHub, instant preview URLs for branches, free HTTPS/SSL, and global CDN caching.
  • Zero lock-in: Because your site lives in GitHub, you can move hosting to Netlify, Vercel, GitHub Pages, or any server anytime.

Step 1: Set up your GitHub account & website repository

Create a free account at github.com using your business email and turn on 2FA. Then create a dedicated repository for your website (for example: my-business-site).

Choose Private if you want only yourself and invited collaborators to view source files, or Public if you want an open codebase.

Optional — push a local website folder to GitHub with GitHub CLI
gh auth login
git init -b main
git status
# Review files and confirm no .env files or passwords are included
git add .
git commit -m "Initial static website"
gh repo create my-business-site --private --source=. --remote=origin --push

Step 2: Set up your Cloudflare account

Sign up for a free account at dash.cloudflare.com using your own business email and enable 2FA. You do not need a paid Cloudflare plan to host a fast static website.

When you connect GitHub inside Cloudflare Workers & Pages, authorize ONLY the specific website repository — never grant broad access to unrelated repositories.

Important:

Never share your GitHub password, Cloudflare password, or Cloudflare Global API Key with any third-party tool or freelancer. Always use provider-native role invites or narrowly scoped repository access.

MODULE 02 VERIFICATION

Before moving on

  • GitHub account created under your own email with 2FA enabled.
  • Dedicated website repository created with main as the default branch.
  • Cloudflare account created under your own email with 2FA enabled.
  • No passwords or global API keys shared with third-party sites.