Skip to content

Host Your Website

Update Website to a Public Server

In this assignment, you will transfer your company web pages to a free hosting service. Your pages will be served as a standard website

You will create an account on Netlify, a web hosting site that offers a free plan to host 1 website. You will then create a project for your website. Then upload your files from Assignment 3

Once complete, you can view your live on the Internet website

Lastly, you will submit the full Unified Resource Locator (URL) in Canvas for grading

Create an account

You will need to create a user account on the Netlify web service

  1. Connect to https://www.netlify.com/

  2. Locate and click on the Sign up button

  3. Click on the Sign up with email link

  4. Enter your account info

    • Email
      • You can use your Hancock email if yo do not plan to use this account after CS-102
      • Otherwise, you should use a personal email address so you will have access after you lean Hancock
    • Password
      • Use a strong password with numbers, upper and lowercase letters, and at least 1 punctuation character
      • Remember this password...you will need it later

    Other

  5. Click on the Sign up button

  6. Verify your email address

    • Open your email and view the verification email from Netlify

    Note that Hancock may block the email as suspicious

    Look in your Junk Email folder if the email does not show up your inbox in a couple of minutes

    • Click on the Verify email button in the email
    • This should open a new browser window. If not refresh the browser window you opened to sign up
  7. Finish registration

    • Click School for How are you planning to use Netlify?

    • You can skip or complete the other questions

    • Click Continue to deploy button

      Other

Create Your Site

Make sure that your files are ready for upload:

  • all files are named correctly
  • all image files and the style.css are ready
  • your main .html page is names index.html
  • everything is in a single folder
  • all files that are not part of your site are removed
  1. After completing the registration, you will see the Deploy your first project page

  2. Click Try Netlify Drop

  3. Drag the folder containing all files onto the Drag and drop area

    Other

  4. Wait for the success message

    Other

  5. Click on Dismiss

Check Your Site Upload

Netlify will give your website a funny name. It is mainly to ensure your site has a unique name

  1. Make sure you are on the Deploy screen
  2. Scroll down and verify the Deploy log shows Post-processing Complete

View your site

  1. Switch to the Site overview screen

    Other

  2. Click on the site's URL (https://dashing-kelpie-f584b0.netlify.app in this example)

  3. Your website will open in a new tab

Check your Website

  • Click each link from each page
  • Verify the background image is correct
  • Check that style settings in your style.css file are changing page elements the way you intended
  • View the product page
    • Are all images showing the way you intended
    • The table look correct

Need to Change Something

You will have modify files on your computer and upload them again Check all updates on your computer using VS Code and Live Server to save time

  1. Edit your website files in VS Code and test with Live Server

  2. If needed (if you logged out of Netlify)

    • Log back into Netlify
    • In the Team overview page, locate the Sites box. Click on your website

    Other

  3. Click to open the Deploy page

  4. Locate the Deploys box

    Note that this box says Need to update your site? Drag and drop your site output folder here

  5. Drag the folder here and wait while it uploads

  6. Do the steps in Check Your Site Upload (above), again

  7. Do the steps in View your site (above), again

  8. Do the steps in Check your Website (above), again

Submit your Website on Canvas

  1. Copy the URL for your new Website Other
  2. Paste it in to the assignment submission field in Canvas

Your pages, hosted on the Internet will be displays

You can click the links, view the images, and verify everything is working

Things Don't Look Right?

Verify you uploaded everything

Make sure your main page is named index.html

Make sure you uploaded the files in your assignment folder and not the folder, itself

You can run your site in VS Code with Live Server. If everything works correctly here, it is likely something important did not get uploaded to Netlify

Share Your Work

Your website is now live on the internet. Anyone can see this site if they have the URL. You can, if you like, sends the link to anyone you want to see all your hard work in out class

This work is licensed under a Creative Commons License