Getting Started
Slack
- Join Slack for class communications
 
Github
GitHub is a web-based repository hosting service based on the Git version control and source code management system. GitHub allows individuals and teams of programmers to manage, share, store and make editable revisions to projects. We will be using Github’s code sharing and publishing service to store our class projects.
- If you don’t have one already, sign up for a GitHub account and make a repository for this class.
- This will become part of the url for where upload your projects
 - Avoid spaces in the repository name
 
 - Review Git Version control or download GitHub Desktop Mac client, a program that helps you keep track of changes in your code and upload them to your repository.
 
- See more on Github Guides
 
Text Editor
- Download Sublime Text / Atom / Visual Studio Code
 
Browser
- Assignments will be evaluated in Chrome for its Inspector tools
 
Tutorials
- Recordings are up on Panopto
 - Sign up for a free account at Codecademy
 - Technical Summary Google Slides
 
Setup access to the demos repository
Prereqs
- You have a Text Editor installed
 - You have Github Desktop installed
 - You are signed into Github Desktop
 - You are signed into Github.com
 
Our demos repository contains the code used in the technical lectures.
- Access the Demos repository on Github.com
 - Hit 
CloneandOpen in Github Desktop - Clone the Demos repository into an easily accessible location on your hard drive (it may be where other Github repos are stored.) By default, Github will use / create a folder called 
Githubin yourDocumentsfolder. Otherwise, selectchoosebutton, and navigate to the folder where you are keeping your materials for this class and then press theOpenbutton. - Once cloning is complete, hit 
⇧ + ⌘ + F(Show in Finder) to verify the location of the demo files. 
Setup your class repository
- 
Make sure you’re logged into Github.com create a new repository using the link under the + icon in the upper right of the GitHub homepage.
 - 
Name your repository
web-type. When you create the repository, check the box toInitiate with a .READMEfile. This repository will be the home for all of your assignments and exercises for this class. - 
Once you’ve initialized your repository, it will take you to the home screen of the repository. Click the green button
Clone or Downloadand thenOpen in Desktop. - 
When you press this button, it should launch the Github desktop application you downloaded before. (If it doesn’t happen, open the application manually. Login using your new Github account, press the
+button in the upper left hand corner and navigate to theClonetab.) - 
For the local path, select the parent (containing) directory you selected for your Demos folder. (Do not select the Demos repository folder, select the folder above it.) This way it’ll be easy to find all of your web-type related code and navigate between them. You will find a folder named
web-type. This is the local version of your github repository. Through the course of this semester, we will use this as a space to archive your projects and exercises. 
Create your Class Site Index
Copy starter files to your own folder
- Navigate to the 
webtype-demos folderin the Finder on your computer. - Open the folder 
html/00_class-site-starter-kit. - Display hidden files using 
⇧ + ⌘ + .for Mac. There should be 2 files: anindex.htmlfile and a.gitignorefile. - Copy the contents of that folder into your own repository, your 
web-typefolder. - If you’d like, you may disable the "show hidden files" feature with 
⇧ + ⌘ + .. 
Make some changes
- After you’ve transfered the files to your own folder, double click on the 
index.html. It’ll open up on your browser. - Notice that the url begins with 
file://. This is because your browser is referencing a local file that lives on your computer. - Drag-and-drop your 
web-typefolder onto your Text Editor, such as Sublime Text. - Open the 
index.htmlpage, and make any change. Try entering in your name into the placeholder texts, and type inHello Worldin between the<h2>tags, like:<h2> Hello World </h2>. - Save your changes.
 - Navigat back to your browser, and hit refresh.
 - You should see the updates reflected.
 - Once you are happy with your updates, let’s push this to the remote server on Github.
 
Upload your changes
- Go back to your Github application.
 - Confirm you see changes made to your 
index.htmlfile in theChanges Tabon the Github app. - You’ll see some empty input fields, one that says 
Summaryand the other that saysDescription. In the summary, summarize what you just did. You might say something likeinitial commitorhello world. If you want to say more, type it in description, but this is optional. Only the Summary is required — it is a note for your future self. (This can be anything — it is for your own reference as you look back to the history of change for your code.) - Then press the 
Commit to mainbutton. - In the upper right hand corner of the application, press the 
Pushbutton. 
commit: Adds and saves changes to the local repository. Think of it as a snapshot of your code. This does not necessarily push your changes online.push: Sends your committed changes to a remote repository, such as a repository. You must push your changes for anyone not on your computer to see your webpage!
Enable Github pages and verify your live site
- Go to Github.com and navigate to your class repo. It would look along the lines of 
https://github.com/yourusername/web-type. This is a link to the code view of the site. - Go to the 
Settings(on the right, above theClonebutton) and scroll down toGithub Pages - Under 
Source, selectmainandSave. - This will refresh the page, but scroll back down to that section again. You’ll find a message that says 
Your site is ready to be published at [url]. - After the 
urlprovided should be a live website! This is a link to the remote / live url. - Please post this link to the 
#class-siteschannel on Slack. 
All future work for this class should happen in your web-type folder repository.
It is a good practice to keep your code organized — make a folder for each project. Note, your Github repository should only contain files related to your website — code and web-optimized files that are linked from your sites. It should not contain design files or planning documents, such as .psd or figma sketch files. Github has a push size limit and these will quickly eat those up.