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:

Processing: https://github.com/CodingTrain/Rainbow-Code/tree/master/challenges/CC_01_StarField
p5.js: https://github.com/CodingTrain/Rainbow-Code/tree/master/challenges/CC_01_StarField_p5.js

WebSocket/p5.js Project Source Code: https://github.com/CodingTrain/Rainbow-Code/tree/master/sockets

Contact: https://twitter.com/shiffman

Node: https://nodejs.org/en/
Socket.io: http://socket.io/
Express: http://expressjs.com/
p5.js: https://p5js.org/

Learn JavaScript basics:

More about data and APIs:

Help us caption & translate this video!

http://amara.org/v/Qbsw/

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

source

Leave a Reply

Your email address will not be published. Required fields are marked *