
The video is part of the full course
In this lesson you will
- Understand what static hosting is
- Publish a site with GitHub Pages or Netlify Drop
- Connect a custom domain with DNS records
- Check the live site after publishing
Our bakery site is static: just HTML, CSS, JavaScript, images and a JSON file, with no server code. Static sites can be hosted cheaply or free, and they're fast because the host only has to send files. Here are two free options, then how to use your own domain.
Option 1: GitHub Pages
If you pushed the project to GitHub in the last lesson, you're nearly there. GitHub Pages is free for public repositories.
- 1Open the settingsIn your repository, go to Settings, then Pages.
- 2Choose the sourceUnder 'Build and deployment', choose 'Deploy from a branch', pick main and / (root), and save.
- 3Wait a minuteGitHub builds the site and shows its address, which looks like https://YOUR-NAME.github.io/sunrise-bakery/.
- 4Update itEvery push to main republishes the site automatically.
Continue with the full course
The rest of this lesson, the narrated video, the PDF and the exercise are part of Web Development Foundations. One payment, lifetime access.
Already bought it? Sign in with the email you paid with.
