Code Train Live 30: Creating Real-Time Shared Canvas with WebSockets
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!
π» https://thecodingtrain.com/challenges/1-starfield
Timestamps:
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
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://thecodingtrain.com/discord
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π https://github.com/CodingTrain/website-archive/tree/main/Node/sockets
Node: https://nodejs.org/en/
Socket.io: http://socket.io/
Express: http://expressjs.com/
p5.js: https://p5js.org/
Learn JavaScript basics:
https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
More about data and APIs:
https://www.youtube.com/playlist?list=PLRqwX-V7Uu6a-SQiI4RtIwuOrLJGnel0r
Help us caption & translate this video!
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct