All Projects → chiunhau → P5 Manager

chiunhau / P5 Manager

A p5js template builder & sketches manager. Built for p5js enthusiasts.

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects
p5js
31 projects

Projects that are alternatives of or similar to P5 Manager

Lazykube
⎈ The lazier way to manage kubernetes.
Stars: ✭ 369 (+47.01%)
Mutual labels:  management, gui
Haproxy Wi
Web interface for managing Haproxy, Nginx and Keepalived servers
Stars: ✭ 823 (+227.89%)
Mutual labels:  management, gui
Zookeeper Visualizer
zookeeper的可视化管理工具
Stars: ✭ 150 (-40.24%)
Mutual labels:  management, gui
Gamajo Template Loader
A class to copy into your WordPress plugin, to allow loading template parts with fallback through the child theme > parent theme > plugin.
Stars: ✭ 243 (-3.19%)
Mutual labels:  template
Spin
Reason and OCaml project generator.
Stars: ✭ 245 (-2.39%)
Mutual labels:  template
Home
The personal website/portfolio of Hashir Shoaib. Built using React and Bootstrap.
Stars: ✭ 246 (-1.99%)
Mutual labels:  template
Pywinauto
Windows GUI Automation with Python (based on text properties)
Stars: ✭ 3,175 (+1164.94%)
Mutual labels:  gui
Shinymobile
shiny API for Framework7 (IOS/android)
Stars: ✭ 243 (-3.19%)
Mutual labels:  template
Php Library Template
+ 📒 Provides a GitHub repository template for a PHP library, using GitHub actions.
Stars: ✭ 249 (-0.8%)
Mutual labels:  template
Xtuple
This repository contains the source code for the database schema for the PostBooks edition of xTuple ERP and xTuple's REST API server. The REST API server is written in JavaScript running on Node.js. The database schema for PostBooks runs on a PostgreSQL database server.
Stars: ✭ 247 (-1.59%)
Mutual labels:  management
Ekylibre
Farm management Information System - Connecting farms to the world
Stars: ✭ 246 (-1.99%)
Mutual labels:  management
Java Javafx Swing Projects Desktop Application Gui Software
All projects are based on ☕ Java(Swing.All projects are database(MySql) connected📂 and compatible to run is🖥️ Desktop(with .exe)🖱️.All projects have a Graphical User Interface(GUI)👨🏻‍💻 that user can communicate and understand the application easily).
Stars: ✭ 245 (-2.39%)
Mutual labels:  gui
Python Mpv
Python interface to the awesome mpv media player
Stars: ✭ 245 (-2.39%)
Mutual labels:  gui
Sshfs Win Manager
A GUI for SSHFS-Win (https://github.com/billziss-gh/sshfs-win)
Stars: ✭ 239 (-4.78%)
Mutual labels:  gui
Cassowary Rs
A Rust implementation of the Cassowary constraint solving algorithm
Stars: ✭ 247 (-1.59%)
Mutual labels:  gui
Mojs Player
GUI player to control your animations
Stars: ✭ 243 (-3.19%)
Mutual labels:  gui
Darklaf
Darklaf - A themeable swing Look and Feel based on Darcula-Laf
Stars: ✭ 249 (-0.8%)
Mutual labels:  gui
React Email Editor
Drag-n-Drop Email Editor Component for React.js
Stars: ✭ 3,131 (+1147.41%)
Mutual labels:  template
Remi
Python REMote Interface library. Platform independent. In about 100 Kbytes, perfect for your diet.
Stars: ✭ 2,943 (+1072.51%)
Mutual labels:  gui
Lagrange
A Beautiful Gemini Client
Stars: ✭ 238 (-5.18%)
Mutual labels:  gui

npm version

p5-manager is a p5js template builder and sketch manager. This command-line tool also supports livereload, Babel ES6 auto-compiling and other useful features. Built for p5.js enthusiasts.

p5 Manager - GUI

Quick Start

$ npm install -g p5-manager

There are several use case of p5-manager, Before going further, choose the one best describe your requirements and go ahead.

  • I want to handle multiple sketches at the same time. Go check Collection.
  • I want livereload or babel auto-compiling to improve my p5.js development experience. Go check Collection.
  • I just need a CLI command to easily initialize a new p5 project (with default p5.js libraries in it). Go check Bundle.

Collection

Step 1: Initialize a new collection

$ p5 new my_collection

By running this command, it will create a collection directory and some p5 libraries to it. See the output log:

# create : my_collection
# create : my_collection/libraries
# create : my_collection/libraries/p5.js
# ...

Step 2: Generate a p5 project

$ cd my_collection
$ p5 generate my_project
# or...
$ p5 g my_project

This will generate a p5 project folder with default templates in it. (Make sure you are running this command in a collection directory.)

# create : my_project
# create : my_project/sketch.js
# create : my_project/index.html

Step 3: Start the server and have fun!

$ p5 server
# or...
$ p5 s

Now edit your sketch.js and go to localhost:5555, then p5-manager will do the rest. The server supports livereload as default. (Notice: You should run p5 server in a collection directory, instead of a project directory.)

Bundle

You don't always need a collection in some cases. p5-manager also allows you to generate a standalone bundled project with its own p5 libraries included. You can use this command anywhere without GUI or collection mentioned above. Just make sure to add the flag correctly.

p5 generate --bundle PROJECT_NAME
# or...
p5 g -b PROJECT_NAME

Which will do something like this:

# create : my_project
#   create : my_project/sketch.js
#   create : my_project/index.html
#   create : my_project/libraries
#   create : my_project/libraries/p5.js
#   create : my_project/libraries/p5.sound.js

Advanced Usage

Split view mode

You can run two sketches simultaneously in split view mode. Just click the link in the bottom of sidebar and enter split view mode.

Split view mode

Static mode v.s GUI mode in Collection

There are two ways to get access to your sketch in a collection. One is public path, ex: localhost:5555/demo1/index.html. The other way is GUI mode, just go to: localhost:5555.

Using Babel ES6

Simply add a flag after the p5 generate command. Then you'll have a sketch.es6 file in the project. Those files with .es6 extension would be automatically compiled to .js file, to the same directory every time you save them.

$ p5 g my_project_es6 --es6

Customize port

p5 server --port 8888
# or...
p5 s -p 8888

Update libraries

We provide a decent method to update p5 libraries to the latest version:

$ cd my_collection
$ p5 update
# or...
$ p5 u

By running this, p5-manager will check the latest release tag of p5.js on github, and download p5.js and p5.sound.js to the libraries folder in your collection. (This might break your projects since they depends on older p5.js libraries.)

.p5rc

The main purpose of .p5rc is to track projects in the collection. Once you generate a project with command p5 generate, it will be automatically added to .p5rc. Projects listed in the .p5rc file would be served in the GUI mode.

Currently, if you create a project without using p5 generate, you'll have to append the project name into .p5rc on your own, to add it to stage. Please follow the rule of JSON formatting when doing this.

About this project

I'm a graphic design student who use p5.js a lot so I need something to help me develop, manage or demo my p5.js projects more efficiently. That's why p5-manager was made.

Inspired by kadamwhite/p5-cli and express/generator.

Distributed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].