Skip to content

Latest commit

 

History

History
63 lines (51 loc) · 3.25 KB

README.md

File metadata and controls

63 lines (51 loc) · 3.25 KB

Hello World

This is the Hello World assignment repository for WATS 3010. You will find everything you need to complete the Hello World assignment here.

Walkthrough Video

In order to complete the assignment, you must perform a series of tasks centered around getting used to working with Git and Github. Specifically, we are going to practice forking and cloning repositories, working with branches, and how to use Github Pages.

Before you begin this assignment, you'll need to

  • Sign up for a github.com account
  • Configure secure shell on your local machine
  • Install and configure Visual Studio Code on your local machine

To complete this assignment, you must complete the following steps:

  1. Fork this repo into your personal Github account.
  2. Create a "projects" directory on your local machine.
  3. Clone your fork of this repo into the "projects" directory.
  4. Open the directory created by cloning the repo in Visual Studio Code.
  5. Create an index.html file in the root of the project directory.
  6. Use the !<tab> keystrokes to initialize your html file.
  7. Modify the content of the title tag to be "Hello World"
  8. Create a css directory in the root of your project.
  9. Add a style.css file to the css directory.
  10. Add a link tag to import the css file into the index.html file. You can place the link tag directory under the <title> tag. It should look like this: <link href="css/style.css" rel="stylesheet">
  11. Add an h1 (header) tag to the body of the index.html file. The content of the h1 tag should be "Hello World"
  12. In the style.css file add text color and background color to your page with an entry like this:
body {
  color: red;
  background-color: black;
}
  1. Make sure all files are saved. Turn on Auto-Save in VS Code to help with this.
  2. Preview your files locally with live-server to make sure they are what you expect.
  3. Open the terminal in VS Code. Mac users will see a "bash" terminal by default. Windows users should configure git bash to be their default commmand line interface.
  4. Stage, Commit and Push your code to github.com with these commands
git add .
git commit -m"<description of changes made>"
git push
  1. Go to github.com and find that our files our now posted on the web.
  2. Go to github.com setting for your repo and configure gh-pages to host your master branch.
  3. View your hosted file and copy the link into your buffer and note that the domain is "github.io"
  4. Go back to the Code tab of github.com and click on the "Edit" button and paste the link into the website input box.
  5. Submit both the github.com and the github.io links for your homework.

Expected Hosted File

Hello World

Stretch goals

  • Add another HTML page
  • Try to add colors based on the h1 tag
  • Add headers content using h2-h6

You are encouraged to watch the video demo linked at the top of this page for more information about how to complete each of these steps. You can also consult the WATS FAQ pages for