- Download VS Code from the following link https://code.visualstudio.com/download
- Download Git Bash from the following link https://git-scm.com/downloads
- Create a Github account https://github.com/
- Create a CodePen account https://codepen.io/
- Create a Netlify account https://www.netlify.com/
- Click on the + button on the top right corner of the navigation bar and then on New Repository in the drop down menu
- Name your repository ECE5_INITIALS_SKETCHBOOK (Eg: ECE5_AA_SKETCHBOOK)
- Make sure it is set as a public repository
- Click on New Repository
- Now that your repository is created, click on import code from another repository*
- In this repository click on the green Code button and copy the link
- In the input bar paste the link then hit enter
- Open VS Code > Terminal > New Terminal
- Drop down menu to make sure the terminal is using Git Bash
- Commands to know (navigating directories): **
- cd .. takes you back one director
- ls lists the files in the current directory
- cd (file name) > tab takes you to the listed file
- Using the above commands navigate to the directory you wish to store the files in
- Commands to know (downloading files from Github):
- git clone (paste YOUR github repository link here)
- Using the above line of code copy your repository’s link from the green Code button and clone it in the VS Code terminal
- Check to see that the files have been downloaded in your chosen directory
- Navigate to where you cloned the Github repository and open the file (it should be named ECE5_INITIALS_SKETCHBOOK)
- Open your CodePen account and create a new pen by clicking on pen in the sidebar
- Right click the index.html file > Open with Code
- Select all > Copy code and then paste it under the html section in CodePen
- Right click the sketchbook.css file > Open with Code
- Select all > Copy code and then paste it under the css section in CodePen
- Now you are all set to edit your code. Doing so in CodePen helps you see the changes you are making and how they would translate to your website.
- Once you are done editing your code and like how it looks, copy the code in the html section in CodePen and paste it in your index.html file in VS Code and save changes
- Copy the code in the css section in CodePen and paste it in your sketchbook.css file in VS Code and save changes
Note: Steps to upload your own images (not images you get online)
- Upload your image to google photos https://photos.google.com/
- Use https://www.labnol.org/embed/google/photos/ to generate image link/ html embed code
- Navigate to your ECE5_INITIALS_SKETCHBOOK directory using the terminal commands
- One you are in the directory you should see (master) next to the directory name
- Commands to know (uploading files):
- git status shows you the status of your files compared to your Github repository
- git add . adds the changes you have made to the files
- git commit -m"commit name" saves the changes to a certain commit
- git push pushes the changes to your Github repository
- Using the above commands push the changes you have made to your Github repository
- Create a Netlify account and log in
- Click on New site from Git > Github
- Select your ECE5_INITIALS_SKETCHBOOK repository
- Make sure the branch to deploy is master
- Click on Deploy site