- Computer (Windows or Linux based OS)
- Node
- Yarn
- Git
- GitHub Account for deploying to GitHub Pages
- 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 cline 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.
- Optionally, run
code .to open a project with VS Code.
- Edit content of
SiteConfig.jsto your profile information. - Add a new Markdown file in
contentfolder and put your activity's details into it. - Edit
data/projects.ymlto your interesting projects. - Edit content of
src/pages/contact.tsxto your contact information (We use Gatsby theme shadowing). - Kill a process with yarn
ctrl+cand start it over again withyarn start.
- 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_TOKENkey and set a value to a GitHub personal access token with the "public_repo" scope.
- New
- Push this project source to your GitHub repository with the following command.
git branch -m main git remote add origin [email protected]: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 settingsof your repository and set a deployment branch togh-pages. Then clickSavebutton. - Open a browser and navigate to https://your-github-username.github.io.
- You will find your minimal portfolio website in a browser.
- Later, when you edit source code, you just commit your changes and push theme to GitHub again and a project will be deployed to GitHub Pages automatically.