/p5js-networking

Create multiplayer games with p5js

Primary LanguageJavaScript

p5js-networking

Install and run

npm install

node server

open http://localhost           # shooter
open http://localhost/draw.html # paint
open http://localhost/chat.html # sending webcam photos to each other
open http://localhost/zoom.html # webcam streaming

Let's expose it on the net

Register to https://ngrok.com/. Download ngrok client.

./ngrok authtoken <<STRING FOUND AT https://dashboard.ngrok.com/get-started/setup>>

# while the node server is running:
./ngrok http http://localhost:80

open http://<<WHATEVER NGROK SAYS>>.ngrok.io

Networking code taken from https://github.com/TannerGabriel/DrawingApp

Heroku deployment

Create project vargaabel at heroku.

heroku login
heroku git:remote -a vargaabel
git push heroku master
heroku logs --tail
heroku local web
heroku open