- Clone your fork or copy of this repository: e.g.
git clone https://github.com/distillpub/post--grand-tour.git - Install
npm(Node Package Manager). If you're on a Mac and havebrew:brew install nodewill do the job. -
cd post--grand-tour -
npm installto install dependencies.
- Execute
npm run devto run a development server that autoreloads when you make changes to the article ("hot-reloading"). The console output will link you to a hot-reloading preview of the article.
-
npm run buildthen serve the public/ directory, e.g.cd public && http-server
The utility code for WebGL under js/lib/webgl_utils/ were adapted from Angel's computer graphics book supplementary: https://www.cs.unm.edu/~angel/BOOK/INTERACTIVE_COMPUTER_GRAPHICS/SEVENTH_EDITION/