This is the source code for my website at http://chessmasterhong.github.io.
For those wanting to set up the project on their machine, follow the below instructions:
- Obtain the repository files (choose a method)
- Clone via HTTPS
git clone https://github.com/chessmasterhong/chessmasterhong.github.io.git
- Clone via SSH
git clone git@github.com:chessmasterhong/chessmasterhong.github.io.git
- Download and extract the files
https://github.com/chessmasterhong/chessmasterhong.github.io/archive/master.zip
- Clone via HTTPS
- Change directory into newly obtained repository's root directory
cd chessmasterhong.github.io
- Install development packages
npm install
- Install distribution packages
bower install
- Build project from source (must be done the first time the project is set up; any time after that is optional but preferred)
npm run build
- Serve project and monitor changes to source files (will automatically rebuild on change)
npm run serve
- When (re)build finishes, view built site in web browser
http://127.0.0.1:8080/
- Modify source files and refresh browser to see updated changes
- Try not to install/uninstall packages (via npm or bower) while changes are being monitored. It may crash the process. Nothing serious; the package was still installed, but the process was rebuilding the site repeatedly each time a new file was downloaded from the package's repository before the previous rebuild process completed, causing it to error. Just restart the watch process if that happens.
- For each new
./<DirectoryName>/index.html
page automatically generated using Jade (whose source file is at./src/templates/layouts/<DirectoryName>/index.jade
), a respective./src/data/<DirectoryName>.json
must be created. Otherwise, the build process will not compile the Jade file. This is due to the way the project build process was created.
You may feel free to re-use any part of the structure, design, and layout of this website. If you do use them, a link back to my website at http://chessmasterhong.github.io
and/or this repository at https://github.com/chessmasterhong/chessmasterhong.github.io
would be appreciated, but not required.
See LICENSE.md for additional licensing information.
See humans.txt for technology colophon.