Git Product home page Git Product logo

template-nodebox-sketches's Introduction

NodeBox code sketches

This is basic flow/way to build your own automated interface for code sketches utilising gitHub pages.

Details in this medium article: medium.com/@eesur/code-sketches-nodebox-3-e6853f28c2bc

screen shot 2017-09-13 at 13 35 37

View with example data: https://eesur.github.io/template-nodebox-sketches/

There's just one setting you need to update in the index.html, your repo name (around line 73), where the render code is (be sure to include the branch). The other option is how may columns you prefer in the webpage (it uses flex grid)

settings: {
    githubUrl: 'https://github.com/eesur/nodebox-daily-sketches/tree/master/',
    columns: 3
}

setup

prerequisites:

  • node installed
  • git installed

in your terminal:

  1. clone this repo to your computer (without the history): git clone https://github.com/eesur/nodebox-daily-sketches.git && rm -rf nodebox-daily-sketches/.git
  2. run npm update to install package.json dependencies
  3. delete the example sketches and code (So you have a clean slate)
  4. create your repo and push to it
  5. set up gitHub Pages (just go to setting tab in your repo and turn on github pages)

use

01. Add your files

  • Save your NodeBox file into the code folder
  • For each sketch export a png image into the img-ref folder

NOTE: Make sure you name the code files and img files the same, for example in this template I've named the images [number-name].png/gif and the code [number-name].ndbx

02. Update

  • Update the data in the files: run npm tree
  • push

breakdown of folders/files

  • code: is a folder containing the code files
  • img-refs: folder for all the images (png and gif)
  • directory-tree.js: is the folder structure of the code files
  • imgTee.json: is the folder structure of the image folders

template-nodebox-sketches's People

Contributors

eesur avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

akolbo

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.