🎯 Objectives
- Install and configure Git on your computer.
- Create and manage a GitHub repository.
- Develop a simple responsive HTML portfolio website.
- Push your project to GitHub and publish it online.
🧩 Part 1: Install and Configure Git
- Download and install Git: https://git-scm.com/downloads
- After installation, open Command Prompt (Windows) or Terminal (Mac/Linux).
- Configure your Git username and email:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
- Verify installation:
git --version
🌐 Part 2: Create a GitHub Repository
- Go to https://github.com and sign in.
- Click New Repository.
- Name it portfolio-lab (or similar).
- Select:
- Public repository ✅
- Add a README file ✅
- Click Create Repository.
🖥️ Part 3: Clone Repository to Your Local Machine
- Copy the repository URL from GitHub (e.g.,
https://github.com/username/portfolio-lab.git).
- In your terminal, navigate to your working folder:
cd Documents
- Clone your repo:
git clone https://github.com/username/portfolio-lab.git
- Move into the cloned folder:
cd portfolio-lab
🧠 Part 4: Create a Simple HTML Portfolio Page
- Inside your project folder, create a new file named
index.html.
- Open it in VS Code or any editor.
- Add basic HTML structure (header, about, projects, and contact sections).
- Make sure your layout is responsive for desktop and mobile.
🚀 Part 5: Push Your Website to GitHub
- In your terminal:
git add .
git commit -m "Initial portfolio website"
git push origin main
- Go to your GitHub repository — you should now see the
index.html file.
📤 Submission Instructions
- Submit your GitHub repository link in Moodle.
- Ensure your
index.html file displays correctly in a web browser.
back to Web Application Development (II) page