Website Hosting
Preparation
- Download Template (Rename CNAME file with your website's domain name).
- Sign up for GitHub (or any other static web hosting services).
- Sign up for Cloudflare (or any other security services).
- Optional: Sign up for Porkbun (or any other DNS hosts).
- Download Visual Studio Code or Vim (or any other IDEs).
Set Up Local Development
- Set up a test Python server for editing:
python3 -m http.server
(http://localhost:8000/)
- Link local files to GitHub repo through Git and SSH:
ssh-keygen -t ed25519 -C "your_email@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub
Git Commands
- Initialize and push your repository:
git init
git add .
git commit -m "message here"
git push -u origin main
git remote set-url origin git@github.com:githuburlprojectname.git
Set Up GitHub Pages
- Enable GitHub Pages:
- Custom domain
- Enforce HTTPS
- Optional: Buy a domain through Porkbun and link it to GitHub:
- Delete ALIAS
- Delete CNAME