-
Notifications
You must be signed in to change notification settings - Fork 0
Git
Waqas Ali edited this page Sep 28, 2018
·
5 revisions
So you know HTML, CSS, Bootstrap, JavaScript and jQuery. That's everything you need to know to get started with web development. Let's learn how to properly put these technologies together into a website, share it with others and publish it.
Read this.
Skim through What Is Git & Why You Should Use Version Control If You’re a Developer
Once we have a website, we will publish it on Github which offers free hosting of websites. Chi Sun smart laundry system's website is hosted for free on Github.
- Follow everything before "Branches" at Learn Git in 30 Minutes
- Create a Github account
- Create a Github repository with the name
[YOUR_GITHUB_USERNAME].github.io
just like this. - Download and Extract HTML5 Boilerplate
- Learn basic command line commands for Windows here and for Linux/MacOS here.
- In your Command Prompt/terminal, change into the directory where you extracted the boilerplate in step 4.
-
git init
to initialize a git repository. -
git remote add origin https://github.com/[YOUR_GITHUB_USERNAME]/[YOUR_GITHUB_USERNAME].github.io.git
to add your Github repository as the remote repository -
git add -A
to stage all files. -
git commit -m "Initial files"
to create a commit with the message "Initial Files" -
git push origin master
to push your files to your Github - Go to your Github repository's settings
https://github.com/[YOUR_GITHUB_USERNAME]/[YOUR_GITHUB_USERNAME].github.io/settings
- Scroll down to "Github Pages" and set the source as
master
branch - You will have a live website on
https://[YOUR_GITHUB_USERNAME].github.io
- Try to understand the HTML5 Boilerplate
- Use Atom Editor to open the boilerplate above
- Build your personal website on top of the boilerplate
- Repeat steps 9 to 11 to push the changes to Github
- Your personal website will be live 😃 (Don't forget to share it in the main WhatsApp group!)
- 🔍 Google for at least 10 minutes. (The Read-Search-Ask Methodology for getting unstuck)
- 📱 Send a message in the Turing Club WhatsApp group and someone will help you out.
Congratulations on finishing! 💃You are now ready to understand and contribute to the Chi Sun Smart Laundry website.
If you have any suggestion or feedback about this tutorial, share it in the group so we can improve it for those after you.