git clone https://github.com/tiga1231/post--grand-tour.git
npm
(Node Packet Manager). If you're on a Mac and have brew
: brew install node
will do the job.cd post--grand-tour
npm install
to install dependencies.npm run dev
to 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 build
then 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/