Live from sfpc.io!
In this video, using p5.js and WebSockets, I look at how to create a real-time collaborative drawing canvas between multiple users through client-server programming. Topics covered: Node.js, Express.js, Socket.io, p5.js.
Plus the beginning of a new segment: The 10 Minute Coding Challenge!
12:40 – Starfield Coding Challenge in Processing
46:57 – Presentation of today’s project
51:00 – How to install and use Node.js
1:04:59 – Add web framework Express.js to host files
1:24:29 – Install Socket.io to establish socket connections with server
1:41:38 – Connecting clients to server to share drawing canvas
1:53:10 – Conclusion
Coding Challenge Source Code:
WebSocket/p5.js Project Source Code: https://github.com/CodingTrain/Rainbow-Code/tree/master/sockets
More about data and APIs:
Help us caption & translate this video!
📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct