Skip to content

newbenjaminb/p5mirror-bb

 
 

Repository files navigation

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
# run this bash script in the root of your repo

bin/mirror.sh --user p5name

bin/mirror.sh --user benjamin.bergery

Why ?

mirror your editor.p5js sketches into a git repo

  • Where are my editor.p5js sketches and collections ?
    • make sure that all your editor.p5js projects are available in a git repo
    • be prepared if editor.p5js server fails
  • How ?
    • command line scripts download your p5 sketches with associated media files
    • mark down files generated to list sketches and collections
    • index file generated for your projects for github pages

github pages setup

replace your-github in this link

Required apps

Recommended apps

VS Code extensions

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

bin/mirror.sh --user p5name

mirror script details

  • See bin/mirror.sh for details steps
  • These steps can be run independantly

search p5mirror on github for other repos

https://github.com/search?q=p5mirror&type=repositories

Listing of editor.p5js projects

Generated listing of editor.p5js projects

Generated files

All generated files are stored in the downloads directory

Shell scripts to download and unzip

JSON source from editor.p5js

About

mirror your p5js.editor sketches into a git repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 94.2%
  • Shell 3.0%
  • HTML 2.4%
  • CSS 0.4%