p5mirror-roxwav

p5mirror

How ? Quick start

# Terminal commands to get started

# Install nodejs
open https://nodejs.org/en/download

# Fork this repo and name it p5mirror-p5name
# where p5name is our editor.p5js user name
# Edit settings to enable github pages
# Edit repository details to point to your github page for repo

# run this bash script in the root of your repo

bin/mirror.sh --roxwav

# and then commit changes in github desktop

# keep p5js editor changes in sync by running the command again
# editted scripts will be downloaded

Details

# remove sketches not present online
bin/mirror.sh --roxwav --clean

# full update, download all projects
bin/mirror.sh --roxwav --full

# run in verbose mode to show details of steps for debugging
bin/mirror.sh --roxwav --verbose

Your mirror edits here

# Edit this line for your editor.p5js user name

bin/mirror.sh --roxwav

bin/mirror.sh --roxwav --clean
bin/mirror.sh --roxwav --full
bin/mirror.sh --roxwav --verbose

Why ?

mirror your editor.p5js sketches into a git repo

Listing of editor.p5js projects

Generated listing of editor.p5js projects

p5mirror/forks

p5mirror/forks

Required apps

For Microsoft Windows OS

VS Code extensions

p5mirrorLib

Usage

# p5name is the place holder for your editor.p5js user name
# fork this repo and name it p5mirror-p5name
# in p5mirror-p5name folder, run bin/mirror.sh to
# download p5js scripts for a user account
# and create markdown listing files
# only projects updated since last mirror are downloaded
#
bin/mirror.sh --user p5name

# full update, download all projects
#
bin/mirror.sh --user p5name --full

# run in verbose mode to show details of steps for debugging
#
bin/mirror.sh --user p5name --verbose

# remove sketches not present online
#
bin/mirror.sh --user p5name --clean

mirror script details

Generated files

Shell scripts to download and unzip

JSON source from editor.p5js