Skip to content

dotnetthailand/gatsby-starter-minimal-portfolio

Repository files navigation

gatsby-starter-minimal-portfolio

Prerequisite

  • Computer (Windows or Linux-based OS)
  • Node.js
  • Yarn
  • Git
  • GitHub Account for deploying to GitHub Pages

Create and run a new project

  • Create a new project from gatsby-starter-minimal-portfolio.
      $ gatsby new <your-github-username>.github.io dotnetthailand/gatsby-starter-minimal-portfolio
  • Wait for a while until downloading files has finished.
  • CD to your project folder.
      $ cd <your-github-username>.github.io
  • Run your project.
      $ yarn start
  • Open a browser and navigate to http://localhost:8000.
  • You will find your minimal-portfolio in a browser.

Customize your portfolio

  • Kill an existing process with yarn ctrl+c.
  • Open the project with VS Code.
  • Edit content of SiteConfig.js to your profile information.
  • Create a new Markdown file in content folder and add your activity's details into it.
  • Edit data/projects.yml to your interesting projects.
  • Edit content of src/pages/contact.tsx to your contact information. (We use Gatsby theme shadowing.)
  • Open VS Code integrated terminal and start the project again with yarn start.

Deploy to GitHub Pages

  • Create an empty repository with a name as <your-github-username>.github.io.
  • Set a new GitHub Secret with the following key and value:
    • New PUBLIC_REPO_ACCESS_TOKEN key and set a value to a GitHub personal access token with the "public_repo" scope.
  • Commit and push the project's source code to your GitHub repository with the following command.
      $ git branch -m main
      $ git remote add origin git@github.com:<your-github-username>/<your-github-username>.github.io.git
      $ git push -u origin main
  • Wait until GitHub Actions deployment has finished.
  • Go to GitHub Pages settings of your repository and set a deployment branch to gh-pages. Then click Save button.
  • Open a browser and navigate to https://your-github-username.github.io.
  • You will find your minimal portfolio website in a browser.
  • When you edit source code, you only need to commit your changes, push them to GitHub and a project will be deployed to GitHub Pages automatically.

About

Gatsby Starter for minimal-portfolio project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published