Documentation: Portfolio Website
Introduction
This documentation outlines the process of creating a portfolio website using the VS Code editor and deploying it using GitHub Pages. By following these steps, you will be able to create a professional portfolio to showcase your work and projects.
Prerequisites
Before you begin, ensure you have the following:
-
VS Code Editor: Download and install Visual Studio Code from https://code.visualstudio.com/.
-
GitHub Account: Create an account on GitHub if you don't have one already. You can sign up at https://github.com/.
-
Basic HTML/CSS and JavaScript Knowledge: Familiarity with HTML&CSS and Jvascript will be helpful in customizing your portfolio website.
Step 1: Setting Up Your Project
-
Open VS Code and create a new folder for your project. You can do this by selecting
File > New Folder
from the menu. -
Inside the new folder, create an
index.html
file. This will be the main file for your portfolio website. -
Create additional HTML&CSS files for different sections or styles of your portfolio.
-
Create additional JavaScript file for Structure of your portfolio.
Step 2: Designing Your Portfolio
-
Open the
index.html
file in VS Code. -
Begin designing your portfolio by adding HTML code for different sections such as About Me, Projects, Skills, etc.
-
Use CSS to style your portfolio and make it visually appealing. You can either write CSS directly in the HTML file using
<style>
tags or link an external CSS file. -
Use JavaScript to structure your portfolio and make it visually appealing. You can either write Jvascript directly in the file using
<script.js>
-
Preview your portfolio in the browser by right-clicking on the
index.html
file in VS Code and selectingOpen with Live Server
if you have the Live Server extension installed. Otherwise, you can open the file directly in your browser.
Step 3: Setting Up GitHub Repository
-
Log in to your GitHub account and create a new repository by clicking on the "+" sign in the top right corner and selecting
New repository
. -
Choose a name for your repository, e.g.,
yourusername.github.io
. This is important as GitHub Pages requires the repository name to follow this format for automatic deployment. -
Initialize the repository with a README file if you wish.
-
Click on
Create repository
.
Step 4: Deploying to GitHub Pages
-
Go back to your VS Code editor and open a terminal.
-
Navigate to your project directory using the
cd
command. -
Initialize Git in your project folder by running:
git init
-
Add your files to the Git repository and commit them:
git add . git commit -m "Initial commit"
-
Link your local repository to the GitHub repository you created earlier:
git remote add origin https://github.com/yourusername/yourusername.github.io.git
-
Push your code to GitHub:
git push -u origin master
-
Once your code is pushed to GitHub, go to your repository's settings.
-
Scroll down to the GitHub Pages section.
-
Under "Source", select
master branch
and then clickSave
. -
Your portfolio website should now be accessible at
https://yourusername.github.io
.
Congratulations! You have successfully created a portfolio website using the VS Code editor and deployed it using GitHub Pages. You can further customize and update your portfolio as needed by making changes to your local files and pushing them to your GitHub repository.