Notes

JavaScript - nodegarden notes

author: Paul Kim

categories: js

tags: js

I want to write some notes on how to use nodegarden. For a demo, check out My forked Github repo. I created a branch called test-changes on my fork.

Steps:

  1. clone the repo
  2. install missing dependencies
  3. customize (change color, etc.)
  4. build html, css, js
  5. run/test

Clone nodegarden repo and install dependencies

git clone https://github.com/pakastin/nodegarden.git
cd nodegarden/
npm i -D pug-cli

Customize (change colors)

edit colors in:

  • css/index.styl (body background color)
  • scripts/nodegarden.js (ctx.fillStyle and ctx.strokeStyle)

Build html/css/js

npm run dev

Run/test

open docs/index.html. (no need to start web server. just open file in browser.)


Source

ChromeEdgeFirefoxOpera

© 2021 paulkode.com. All rights reserved.