Boilerplate setup for Token Art Tools
https://github.com/owmo-dev/token-art-tools
- Install
npm
(https://www.npmjs.com/) - Clone & copy repository into a project directory
- Run
npm install
command
- Run
npm run dev
to start the server - Accept any unsafe warnings and proceed
- Copy & Paste the URL in the new tab to Token Art Tools
- You should see a black square and can generate new hashes to change it's color
- Work directly on the
src/sketch.js
andsrc/features.js
files to create art - Press
CTRL + C
in the terminal to shut down the server when you're done
The sketch.js
script is running as a module to allow for file imports. Having separate files makes local development a lot easier - code formatting / highlights, files for quick testing ideas, etc. - however some on-chain platforms will require that you make all code inline (one file) when deploying. To modify this project from imports to inline code, simply do the following:
- Remove all imports and place code/strings in your
sketch.js
file - Remove the
type="module"
from the script tag in theindex.html
file - Remove any
window
function assignments at the bottom of thesketch.js
file
This directory contains starter scripts for various libraries or techniques. Simply copy/paste the contents into the script.js
file to use them as a starting point.