The goal of this lab is to help you get everything you need for this quarter setup, while practicing a bit with HTML. For participation credit in this week's lab, you will need to submit the AboutMe repository by Friday at 11PM (you could end up finishing it by end-of-lab today).
We've provided a number of resources in these slides, but if you run into any questions:
In this part of the lab, you will walk through getting Git setup on your computer with your first CSE 154 GitLab repository: lab01-aboutme.
There are two options we recommend for you to use Git: using it via the command line, or with an IDE. We have a tutorial for either option you'd prefer.
To develop a web page, you need the following:
Writing HTML and CSS with an editor is similar to writing Java in an IDE like jGrasp or Eclipse, or writing Python on the command line or your Python IDE of choice. Conveniently, we don't need to compile HTML/CSS, and to "run" the code, we just open the HTML page on the browser.
If you prefer another text editor like VisualStudio, Vim, or Emacs, these all work as well (but we won't go into the details for each).
Now that you have Git on your computer and a cloned repository for lab01-aboutme made just for you, you can use the provided starter code in that repository to write your first HTML page!
Since this is only day 2 of CSE 154, we have filled in most of the structure of the page (this takes time to remember) but you are to complete the page with information about your own answers.
Feel free to explore new HTML tags to add more creativity to your page, and if you have any experience with CSS (or want to try some before submitting) you are free to use this lab to explore more!
Reminder: Your participation grade for this lab will come from successfully completing and submitting your lab01-aboutme-studentname repository to GitGrade Friday at 11PM. Refer to the previous Git walkthrough for how to submit this!
New to the bash terminal? It's just like a text-based alternative to your computer's file-finder GUI, but with a ton of features to edit and run different programs in the same location. Here are some tips for getting around the command line! To learn more, use the handy "down" feature of these slides :)
list files & directories (linux/mac)
ls
list files & directories (windows)
dir
change directory current working directory
cd [folder-name]
Your current working directory is displayed here
By default, commands issued in the Command Line will apply to the current working directory
cd can be used with relative paths (assuming "folder-name" is a child of the current working directory)...
cd [folder-name]
...or with absolute paths
cd C:\windows\system32
Use cd to move up one directory
cd ..
Copy the URL of the repository on GitLab
Use ls and cd to navigate to the directory where you want to store your Git repositories, then type:
git clone [insert website url]
This creates a copy of the repository in your current working directory
The following commands need to be executed inside the repository folder that you cloned every time you want to update the repository online.
Click each link or press the down key to learn more about each step!
git add [filename]
Proposes changes to be committed
Add everything
git add .
Add multiple files
git add [file1] [file2] [ect...]
git commit -m "write a descriptive message"
Commits your changes locally
git push origin master
Updates the repository online with the changes you committed
Command | Description |
---|---|
git clone [link to repository] | make a local copy of a repository |
git add [filename] | Proposes changes to be committed |
git commit -m "message" | Commits changes locally |
git push | Pushes to remote repository |