A little single-page javascript app to generate simple geometries and mandalas
https://davidhatten.github.io/geometric-drawer/
Current version: 1.6.4
More shapes are planned, including shapes to make mandala generation possible!
This app uses React-Redux to build a Jekyl-consumable static page that gets sucked up Github Pages and turned into a single-page app.
All of the commands will be run from targets defined in package.json
using yarn run
.
Prereqs:
yarn install
bundle install
Two commands are required to get your local build running: dev:wds
and dev:start
dev:wds
starts the webpack dev server, which builds and packs the site into a bundle.js
that the Jekyll server can use. It hosts this file at localhost:8080
by default, but if you have something else running there it can bump to port 8081
.
dev:start
starts the Jekyll server. Locally, the Jekyll server uses _config.dev.yml
to figure out where the bundle.js
content is.
Running these two commands in separate terminals will provide a seamless dev env with hot-reloading of the UI
One file is required in order to update prod. that's the bundle.js
, but it needs to be the one that GitHub Pages can access.
The prod:build
command builds the appropriate file. This file must be pushed up. When it is (or when a PR merges it into master), GitHub Pages will recognize it and trigger a new build.
Assuming all library dependencies are installed, run the following commands in separate terminals:
yarn run dev:wds
yarn run dev:start
localhost:4000