- GitHub Pages Website: cintel-01-getting-started
- GitHub Repository: cintel-01-getting-started
- Author: Denise Case
We begin with two important tools: Git and VS Code. If you are new to them, don't worry - they're relatively easy to learn and very powerful. Many of us use them throughout our career.
Note: 🚀 Rocket Tips are for learners who want to go beyond the basics. They are not required but can improve workflow, increase productivity, and make things more enjoyable.
- Create a free account on GitHub, a platform that hosts project code.
- Copy this starter repository into your own GitHub account by clicking the 'Fork' button at the top of this page.
- Watch Git and GitHub for Beginners - Crash Course, first 20 min to get started.
-
Download and install Git from the official Git website. Git helps manage our code and data.
-
After installation, open your terminal (PowerShell on Windows, Terminal on Mac/Linux) and configure Git with your name and email.
-
Replace "John Doe" and "johndoe@example.com" with your name and email in the commands below.
-
Type (or paste) your version of the first command into your terminal and hit ENTER to run it.
-
When it completes, type (or paste) your version of the second command into your terminal and run it.
git config --global user.name "John Doe" git config --global user.email "johndoe@example.com"
Download and install VS Code from the official VS Code website.
🚀 Rocket Tip: Invest time in learning VS Code. The more you make use of your editor, the more productive you'll be.
We customize this web app by changing the name and colors. We'll get exposure to HTML, CSS, and JavaScript - the 3 key languages of the web, but we're not going for mastery. Learn their names and you can search for more information as needed. These exercises are designed to help explore the possibilities of these incredible, free tools we can use to create immediately useful things.
- Open VS Code and from the menu, select View / Command Palette.
- Type "Git: Clone" in the command palette and select it.
- Enter the URL (web address) of your forked GitHub repository (make sure it contains your GitHub username - not denisecase).
- Choose a directory on your local machine (e.g., Documents folder) to store the project.
- If prompted, sign in to GitHub from VS Code.
With your repo folder open in VS Code:
- Click on this README.md file for editing.
- Update the README.md file by changing your name in the author link above.
- Update the links in the README.md file to your username instead of denisecase.
- After making changes, send them back up to GitHub.
- In VS Code, find the "Source Control" icon and click it.
- Important: Enter a brief commit message describing your changes.
- Change the "Commit" button dropdown to "Commit and Push" to send your changes back to GitHub.
Use File Explorer (Windows) or Finder (Mac) to navigate to your repo folder and open index.html file with your favorite browser. I use Chrome, but most browsers should work fine.
🚀 Rocket Tip: search for the VS Code Extension: Live Preview by Microsoft and add it to your VS Code. Then, right-click on index.html and select "Show Preview" to view your web page without leaving VS Code.
That's it! You're all set. Use the same process to modify other files in your repo.
Experiment while changing to your name and colors.
- modify index.html, then commit and push
- modify main.css, then commit and push
- modify main.js, then commit and push
Use CTRL f to find the TODO items.
🚀 Rocket Tip: Search for the VS Code Extension: Todo Tree and add it to your VS Code. Then, open the TODO Tree view icon (added to the icon column on the left) to see all the TODO items in your project.
GitHub lets us publish our client-side web apps for free with GitHub Pages. Read PUBLISH.md to learn how to make your app available on the web.
- Humans excel at pattern matching. Leverage this innate ability as you learn.
- Details matter! Double-check spelling, capitalization, and spacing. (A good editor helps.)
- VS Code autosaves as we work.
- Be courageous - experiment! You can't hurt anything; we learn best when something doesn't go quite right and we learn we can figure it out!
- Work with others - ask questions, share what you learn, and help others. We learn more when we collaborate.