qcheng's personal webpage.
Tested with: node >= v14 and optional nvm for managing node versions.
To download the repository and install dependencies, run the following commands:
git clone git://github.com/mldangelo/personal-site.git # replace [mldangelo] with your github username if you fork first.
cd personal-site
nvm install # this is optional - make sure you're running >= node 14 with `node --version`
npm installRun the following command to build the react application and serve it with fast refresh:
npm startYour web browser should automatically open to <ip>:<port>:<path> default: http://localhost:3000/.
- Modify the environmental variables and git remote url in
.github/workflows/github-pages.yml. - Modify
homepageinpackage.jsonto point to where you plan to host your site. If you do not plan on using a custom domain name, it should look likehttps://[your-gh-username].github.io/[repository-name - default:personal-site]/ - If you plan on using a custom domain, modify
public/CNAME. If you don't, deletepublic/CNAME.
Make a commit to main and push your changes. That's it.
To statically export the site without deploying to github pages, delete or disable .github/workflows/github-pages.yml and run npm run predeploy. This generates a static export of the website as personal-site/build/. Copy this and self-host or deploy to a CDN.
This website is built upon the project from mldangelo/personal-site, with MIT lisence. For more information about how-tos, please visit the original repo on GitHub.