Code Monkey home page Code Monkey logo

token-art-tools-boilerplate's Introduction

token-art-tools-boilerplate

Boilerplate setup for Token Art Tools

https://github.com/owmo-dev/token-art-tools

Install

  1. Install npm (https://www.npmjs.com/)
  2. Clone & copy repository into a project directory
  3. Run npm install command

How to Use

  1. Run npm run dev to start the server
  2. Accept any unsafe warnings and proceed
  3. Copy & Paste the URL in the new tab to Token Art Tools
  4. You should see a black square and can generate new hashes to change it's color
  5. Work directly on the src/sketch.js and src/features.js files to create art
  6. Press CTRL + C in the terminal to shut down the server when you're done

Imports vs Inline

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:

  1. Remove all imports and place code/strings in your sketch.js file
  2. Remove the type="module" from the script tag in the index.html file
  3. Remove any window function assignments at the bottom of the sketch.js file

Examples

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.