Hosted by the Computer Science Education Club and UMBC
- Download Node.js.
- Download Git.
- Download Atom IDE.
- Create a GitHub account and make sure you are logged in.
- Now navigate to the workshop's Git repository where the starter files exist.
- Fork the repository to your account by pressing the "Fork" button in the upper right-hand corner.
- IMPORTANT: Rename the newly forked repository to
username.github.io
, whereusername
is your username on GitHub. No exceptions. Here's a link to do that: https://help.github.com/en/articles/renaming-a-repository - Copy to clipboard the url to your renamed Git repo i.e.
https://github.com/username/username.github.io
- Now from an easily accessible place on your computer (i.e. "My Documents"), create a new folder and name it "Websites" (you can name it whatever you want but we'll use "Websites" for consistency). Protip: avoid having spaces in your folder names; instead use a dash or underscore.
- Open up a terminal. On MacOS, open the pre-installed app called Terminal. On Windows, open the pre-installed app Command Prompt.
- In the terminal, execute each command below, line by line. Replace
username
with your GitHub username. Do not type the$
character. Zoee will show you how to navigate your files with thecd
command.
$ cd into/your/Websites/folder
$ git clone https://github.com/username/username.github.io
$ cd username.github.io
$ npm install
$ npm rebuild node-sass
$ npm start
- Open the Atom IDE that you downloaded in step 2. From your Atom IDE, open
username.github.io
(File > Open > navitage tousername.github.io
in your Websites folder and select it). - [Add the atom-live-server package] by visiting this link (https://atom.io/packages/atom-live-server) and clicking the green "Install" button.
- In Atom, enter
ctrl-alt-l
with your keyboard (ctrl-option-l
on MacOS). - go to
localhost:3000
in a browser of your choice (if one doesn't open up for you after step 13) and marvel at what is being rendered from your starter code. DON'T WORRY - you will get a chance to customize the site later on in the workshop. But first ...
- Open the Google Slides with the links for Part 1b: https://docs.google.com/presentation/d/124nU7ZKkGKpjYBQ6iwncdnb-aAI8JUVX2V-SuWC8cfA/edit?usp=sharing
- Open HelloWorld.html in your Atom IDE and also in a browser of your choice (by double-clicking it in your finder).
- In the browser, try using the Inspect feature. To open this on Chrome, go to the webpage in the browser and right-click, then select Inspect from the menu that appears.
- When editing, save your HTML code in the Atom IDE and refresh the page in the browser.
- You can view the HTML code from the Elements pane of the Inspect panel, and you can view errors from the Console pane. You should see 2 errors. See if you can figure out how to fix them!
- Experiment with replacing words and adding elements (we suggest paragraphs, headings, or images).
- When you are satisfied with the changes you have made to HelloWorld.html, you can go ahead and close it in the browser and close the HelloWorld.html tab in the Atom IDE.
- Open up index.html in the Atom IDE to follow along with Zoee for the live coding and customization.
Part 2: Customize with Bulma
- Now return to your Atom IDE and follow along with the instructor in this live coding session. The goal here is to get you familiar with Bulma's file structure as well as Bulma's syntax for using its various components.
Once you are more or less happy with how your site looks in localhost:3000
, it is now time to "push" these new changes up to your newly created GitHub account.
2. Open up a second terminal and run the following commands.
$ cd into/your/Websites/folder
$ git status
$ git add --all
$ git commit -m "Initial commit"
$ git push -u origin master
- … and you're done! Fire up a browser and go to
https://username.github.io
. Do a little dance to celebrate your very first website!
Refer to GitHub Pages if you want to change the url to a custom domain name of yours, among other things. And don't forget to check out all the other cool links for your benefit. They can be found in the workshop slides that will be emailed to you. You're Welcome :)