Code Train Live 30: Creating Real-Time Shared Canvas with WebSockets

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=JljMBn69fZM



Duration: 1:59:58
54,874 views
818


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







Tags:
JavaScript (Programming Language)
socket.io
sockets
websockets
Processing
Starfield
node.js
node
express
express.js
challenge
p5.js
processing.js
tutorial
express static files
shared canvas
html5 canvas
web sockets tutorial
javascript
js
web
terminal
creative coding
node express tutorial
client server
coding challenge
html5
websocket