Skip to content
+91 89607 57615
Code Craft — web development and digital marketing
Lesson 1324 min

Publishing your website

Put the bakery site online for free with GitHub Pages or Netlify, and connect your own domain.

Taught by Sandesh Sahetiya

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.

  1. 1
    Open the settingsIn your repository, go to Settings, then Pages.
  2. 2
    Choose the sourceUnder 'Build and deployment', choose 'Deploy from a branch', pick main and / (root), and save.
  3. 3
    Wait a minuteGitHub builds the site and shows its address, which looks like https://YOUR-NAME.github.io/sunrise-bakery/.
  4. 4
    Update 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.