DEV Community

Cover image for Git Applied Skills: Using My Portfolio Template to Launch Your Own Portfolio Site
John Ogbonna
John Ogbonna

Posted on

1

Git Applied Skills: Using My Portfolio Template to Launch Your Own Portfolio Site

Creating a personal portfolio can be overwhelming, but with GitHub templates, you can set up your own site in minutes! In this guide, we'll use my GitHub portfolio template made for Software and Cloud developers to create a new repository, clone it, and customize it to fit your style.

By the end of this tutorial, you'll have:

  • A GitHub repository based on my template
  • A cloned version on your local machine
  • A ready-to-customize portfolio site

Let's get started!

πŸ› οΈ What You Need

Before we begin, make sure you have the following:

  • Git Command Line (CLI) You'll need Git installed to clone and manage your repository. If you don’t have Git yet, download and install it from: πŸ”— Git Download Page

To check if Git is installed, run:

git --version
Enter fullscreen mode Exit fullscreen mode
  • A text editor (VS Code highly recommended) A code editor is essential for modifying your portfolio. I recommend VS Code, which you can download here: πŸ”— VS Code Download

Once you have these set up, you're ready to create your portfolio repository!

Making a Repository From the Template

  • In your browser, go to my portfolio template repository

  • Click on Use this template and then Create a new repository
    Create a new repository

    • Give the repo a name
    • Give the repo a description
    • Select public or private
    • Click create repository Create a new repository
  • Open your terminal and navigate to a suitable environment to download the template. Then enter this command:

git clone https://github.com/JohnOgbonna/my_dev_portfolio.git 
Enter fullscreen mode Exit fullscreen mode
  • Open the cloned folder in VS code Open the folder in VS code

Editing Your site locally

  • Open the README.md to view the instructions on how to edit the site.
    how to edit the site

  • Edit the data.json file accordingly. Install VS Code live server. Open index.html in the editor, On the bottom right, click go live to view the site locally]
    Click go live

  • The site will open in the browser. As you make changes in data.json, you will see them in the browser

  • A mentioned in the README.md, To change the content displayed, simply edit the data.json. Add a profile picture to the root directory and call it profilepic.png. Remove the default one (unless you'd like an AI generated image of me as your portfolio profile picture). here is an example of the "skills" object I modified:

"skills": [
        {
            "platform": "AWS",
            "list": [
                "EC2",
                "S3",
                "Lambda",
                "DynamoDB",
                "Amplify",
                "Api Gateway",
                "SES"
            ]
        },
        {
            "platform": "Azure",
            "list": [
                "Azure Functions",
                "Blob Storage",
                "App Service",
                "Azure DevOps",
                "Azure Virtual Machines"
            ]
        },
        {
            "platform": "Google Cloud",
            "list": [
                "Cloud Functions",
                "Cloud Storage",
                "Firebase"
            ]
        }
    ]
Enter fullscreen mode Exit fullscreen mode
  • Adjust the information for yourself accordingly. Follow the instructions and make sure your information follows the same pattern in order to avoid compilation errors when building the site.
  • Store article photos and project photos in the correct folder and reference them accordingly in data.json. Notice that these can also be web URLs
    Example

  • I changed my theme to light-red with the option to toggle dark mode. See a list of allowed theme setups in the README.md. Adjust these settings as you wish
    theme settings

  • My modified site:
    My modified site

  • If you are experienced in web development, feel free to modify ay of the other files and customize fully to get your desired look and feel.

Committing and pushing to Github

  • Once you are satisfied with your modifications, it's time to commit and push the changes. In the terminal enter:
git status
Enter fullscreen mode Exit fullscreen mode
  • This will list all the changes you made to the base template

  • Then enter

git add .
Enter fullscreen mode Exit fullscreen mode
  • This will add mark changes made to be committed
  • Then enter the following command, replacing "Commit message" with a meaningful description of your update::
git commit -m "Commit message"
Enter fullscreen mode Exit fullscreen mode

This will now stage the changes to be pushed to the repository on git hub, then:

git push origin main
Enter fullscreen mode Exit fullscreen mode

committing changes

  • Your changes are now live in your GitHub repository in the main branch.

Deploying live site with github pages

  • Navigate to the Github repository in the browser
  • Click settings
    Click settings

  • Click pages
    Click pages

  • Select deploy from branch

  • Select main

  • Select save
    set up pages

  • Wait a few moments and the link will appear
    link

  • Your site is now live and accessible from a link
    Live site

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

πŸ‘‹ Kindness is contagious

Please drop a ❀️ or a friendly comment on this post if it resonated with you!

Okay