1. Principles and Practices & Project management
This week we learned the basics about Fab Academy, being this website our pillar to document the process. That's why we need to learn about Visual Studio Code and GitHub, alongside with HTML, CSS and JavaScript.
Introducing Visual Studio Code (VS Code)
Visual Studio Code is a lightweight and powerful code editor used for web development, programming, and version control. Here we will be writing and editing all our codes.
Introducing Git and GitHub
Git is a version control system that helps us track all changes in our code and collaborate with others. It works locally on your computer. While GitHub is an online platform that hosts Git repositories, like a cloud version. Both will be helping with our website. But how they work together? Well, the typical workflow would be:
- You write the code on your computer
- Git tracks your changes
- You commit your changes
- GitHub stores and shares those commits
Let's Start
Step 1: Cloning the Fab Academy repository
- First, we created a specific folder on our computer where the Fab Academy repository would be stored. This folder would contain all the files related to our documentation website.
- Then, we accessed our Fab Academy GitLab profile and opened our personal repository. By clicking the “Code” button, several options appeared. We selected “Clone with HTTPS” and copied the provided link.
-
Next, we opened Visual Studio Code and launched the integrated terminal. In the terminal, we typed:
git clone [repository-link]and pasted the HTTPS link copied from GitLab. - After pressing Enter, Git prompted us to enter our Fab Academy GitLab credentials (username and password). Once authenticated, the repository was successfully downloaded to our computer.
-
When the cloning process finished, we navigated to the correct directory by typing:
cd your-username/public - At this point, we were ready to start editing the files and working on our documentation website.
Step 2: First HTML exercise
- After cloning the repository, we completed a basic HTML exercise in class to understand the structure of a webpage.
- The exercise focused only on HTML, without using any CSS, in order to understand how content is organized. This is how the page looked in the browser and how the code looks if we inspect it:
Since no CSS was applied, the webpage displayed only the default browser styles, showing the content without visual customization.