Тёмный

12.1: Introduction to Node - WebSockets and p5.js Tutorial 

The Coding Train
Подписаться 1,7 млн
Просмотров 106 тыс.
50% 1

In this first video, I discuss the all the pieces required to create a shared, collaborative drawing canvas with p5.js, node, and web sockets. I look at the basics of getting up and running with node.js. Code: thecodingtrain.com/tracks/web...
Source code: github.com/shiffman/Video-Les...
🎥 Next: • 12.2: Using Express wi...
🎥 All: • 12: Web Sockets and p5...
References:
🌿 Node.js: nodejs.org/en
Videos:
🚂 • Start learning here!
Timestamps:
0:00 Introduction and demonstration of end result!
1:28 Discussing server and socket connections
3:58 Installing Node.js
4:20 Running Node.js from the terminal
5:50 Running test code with Node.js
8:55 Overview of the next steps before we go!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: thecodingtrain.com/discord
💖 Membership: ru-vid.comjoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 • Coding Challenges
🎥 • Start learning here!
🔗 Socket.io: socket.io/
🔗 Express: expressjs.com/
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#nodejs #sockets #serversideprogramming #javascript #p5js #nodejs

Опубликовано:

 

2 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 75   
@suvajitchakrabarty
@suvajitchakrabarty 6 лет назад
I being a Computer Science Graduate student would say your channel is the most useful channel to me in RU-vid. You make programming more fun.
@TheCodingTrain
@TheCodingTrain 6 лет назад
thank you so much!
@8o8inSquares
@8o8inSquares 7 лет назад
This guy is crazy.. I like him
@_chappie_
@_chappie_ 4 года назад
Back in these days were simpler. 4 years later i'm coming back to these videos to help me with a project i'm working on. Always have and still love your teaching Daniel.
@reumarks
@reumarks 7 лет назад
Wow, I have never found learning coding so easy! Thank you so much!
@mohamedtarek5329
@mohamedtarek5329 7 лет назад
we need more tutorials about node.js you are awesome
@peterhayman
@peterhayman 6 лет назад
so excited! just imagining having a single picture that heaps of people are editing at the same time!!! :-D
@Abhinavkmr
@Abhinavkmr 6 лет назад
I was looking for this video for a long long time !!!!!!!!!!!!!! You Rock man
@firephoenix5556
@firephoenix5556 5 лет назад
I made an online version of battleship. thanks for these vids - couldn't have made it without them
@hfe1833
@hfe1833 6 лет назад
You make a very good explanation for node. Js after so many tutorials I read
@f4tornado450
@f4tornado450 7 лет назад
4:35 press the windows key and type cmd, then press enter.
@snowpunk116
@snowpunk116 4 года назад
This video has earned you my subscription
@silenceofthelans
@silenceofthelans 7 лет назад
You're just the best! Great work...really...great work!
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thank you!
@041e71
@041e71 8 лет назад
you, sir, are a legend
@TheCodingTrain
@TheCodingTrain 8 лет назад
+Maximilian Hans thanks for watching!
@georgirazsolkov5870
@georgirazsolkov5870 7 лет назад
Great! Glad i found this channel !
@guabz___
@guabz___ 8 лет назад
man you are awesome!!! True inspiration Keep up the good work
@TheCodingTrain
@TheCodingTrain 8 лет назад
+Gabriel Rosario Thank you so much!
@hfe1833
@hfe1833 5 лет назад
One of the reason I bought nature of code. Hope you will make p5.js version of that
@trocandobytes
@trocandobytes 3 года назад
You are really a nice guy! Thank you for sharing your knowledge!
@mrMathTeacher71
@mrMathTeacher71 7 лет назад
AN EXCELLENT TUTORIAL.
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thank you!
@zoecarlibur
@zoecarlibur 7 лет назад
Your videos are amazing.
@msawired
@msawired 8 лет назад
The sigh at 3:20 made me laugh out loud :) This is a fantastic tutorial Daniel!
@TheCodingTrain
@TheCodingTrain 8 лет назад
+msawired Thanks so much!
@pranavjain9799
@pranavjain9799 2 года назад
This video is so helpful!
@hleet
@hleet 7 лет назад
well explained, thx for sharing
@hunarahmad
@hunarahmad 7 лет назад
you are a hero
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thanks for watching!
@djliandjlian
@djliandjlian 6 лет назад
can you show us how to run the client part from a smartphone browser?For me it works only with pc chrome browser not the mobile browser.Can socket.io run between windows node.js and mobile browser?
@emre.kaskaval
@emre.kaskaval 7 лет назад
helped me. Thank you ! :)
@Boonda-p
@Boonda-p 8 лет назад
You, sir, are fucking awesome!
@TheCodingTrain
@TheCodingTrain 8 лет назад
thank you!
@sigmareaver680
@sigmareaver680 5 лет назад
Windows users: In your project/source folder, hold shift and right click in your folder window. An option "Open command window here" OR "Open with Command Prompt" should appear, depending on if you have a file highlighted or not. Edit: be sure to not highlight a file, otherwise the command prompt window will try to run the file and probably close immediately because it isn't an exe, bat, etc.
@killox3371
@killox3371 5 лет назад
I just use windows powershell, but im stuck at 10:40 on the next vid!
@benburnell3068
@benburnell3068 3 года назад
But what do you do after you open 'Open command window here ?
@66javi66
@66javi66 7 лет назад
This is gold
@igmtan
@igmtan 5 лет назад
Great good work
@Sharku5
@Sharku5 8 лет назад
I love youuuuuu! :D
@TheCodingTrain
@TheCodingTrain 8 лет назад
Thanks for watching!
@JohnSmithULIR0
@JohnSmithULIR0 6 лет назад
7:05 Deskop xD - Amazing tutorial though! - 2017 and I'm learning !
@NaNNaN-sh4vz
@NaNNaN-sh4vz 3 года назад
thank you
@mpietragalla
@mpietragalla 7 лет назад
Hi Daniel! Is it possible to use some features of the processing lib inside the nodejs server code? I wonder if I could do some common physics processing in the server, for a game based in physics like a snooker game, and send back to all players only the result so the game develops equally in all players screens.. can I do that?
@futureedututor6826
@futureedututor6826 5 лет назад
can you make video regarding real time communication of audio sound along with sketch?
@jsprowse
@jsprowse 5 лет назад
5:30 x++ evaluates as x and then it's incremented by 1. That's why it showed up as 100 after x++ and then 101 after x
@stealth3002
@stealth3002 4 года назад
to add on: x++ returns x before incrementing ++x returns x after incrementing
@towseefnabi7559
@towseefnabi7559 7 лет назад
hi sir may i get link where you have worked on projects
@NERO-ez1mn
@NERO-ez1mn 7 лет назад
should the pc server run 24/7 to cater all people using across the globe?
@Yash-Gaikwad
@Yash-Gaikwad 5 лет назад
Help Please!!.. I recently learned node.js and now learning web sockets, to use socket.io (or anywebsocket) do we have to write a special server ?, so WebSocket can bind on to it? or we can just bind to the main hosting server (mine at hostgator), Because I m making this chatting website and planning to upload to a hosting site, where they traditionally provide you with server you just have to put you file on that server, so is it like I have to make server inside server or I get my WebSocket latch to that traditional server? I m so confused, am I missing something? I googled but can't seem to find anything, any help from you guys will be great, Please Explain! lastly sorry for my bad english.
@thomasbouasli6102
@thomasbouasli6102 4 года назад
Does anyone know any other resource to learn backend? I`ve watched so many things from the coding train and had no complaint, but this node playlist seems to be skipping steps, is it just me?
@Maltebyte2
@Maltebyte2 4 года назад
call me stupid but where do i get the libraries folder from seen at 7:12? there is so many here => p5js.org/reference/#/libraries/p5.sound what one do i grab? thanks
@zayanwatchel8780
@zayanwatchel8780 6 лет назад
Uhh local hosts can only work between one network.
@rotinsiamazadeng1262
@rotinsiamazadeng1262 3 года назад
Can host in firebase web hosting?
@green8746
@green8746 8 лет назад
may be you can record cross domain video for guys ....thank you .
@aartipahwa7103
@aartipahwa7103 4 года назад
Sir how to use that terminal APK in Windows 7 .PLEASE TELL!!
@netanelberman6291
@netanelberman6291 4 года назад
yeeeeeeeeeessssssssssssssss pleeeeeasssssssssssse
@tgatta
@tgatta 3 года назад
Dan, thanks for the great tutorial! Just a heads up: the description of this video has a "next video" link which I think points to the wrong URL. Your 12.2 Using Express with Node - WebSockets and p5.js Tutorial is here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2hhEOGXcCvg.html
@martindinev2647
@martindinev2647 7 лет назад
hey, I'm running on Windows and cd doesn't work for me!! help
@lucase6077
@lucase6077 5 лет назад
Did you find a way to run it?
@faisaltaher851
@faisaltaher851 7 лет назад
in win it's cmd
@tecnoplayer
@tecnoplayer 5 лет назад
4:35 Error 404. No annotation found.
@zakargabrite3171
@zakargabrite3171 3 года назад
when I type in cd it says Uncaught Reference Error: cd is not defined. Same with clear
@KaranSingh-ty5xr
@KaranSingh-ty5xr 3 года назад
are you on windows? these commands wont work on windows. Try powershell on windows.
@99bloosey
@99bloosey 6 лет назад
app.get('/', function(req, res,next) { res.sendFile(__dirname + '/index.html'); }); This gives me an absolute path error . Cant work out the path to use4. Can anyone help? Great series of videos thanks
@firephoenix5556
@firephoenix5556 5 лет назад
I just did app.use("/", express.static("public/index.html")); dunno if that's a good way to do it but it works
@JackLaidlaw
@JackLaidlaw 6 лет назад
If anyone has issues with node permissions after installing: this video explains how to fix ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-bxvybxYFq2o.html
@NERO-ez1mn
@NERO-ez1mn 7 лет назад
funniest geek hha
@faisaltaher851
@faisaltaher851 7 лет назад
no hate but it dose not work idk maybe it's win
@garretgeorge9803
@garretgeorge9803 4 года назад
Socket.IO is NOT a WebSocket implementation.
@supremoluminary
@supremoluminary 4 года назад
9 minutes in and whoopsie, the server isn't running. But he told us how "cd" works and that we should download node. So much talking... `
@damnit258
@damnit258 6 лет назад
3:20 node is a simple framework ! -_- -_- -_- -_- well it's not a framework and it's not simple, your are evil -_-
@TheCodingTrain
@TheCodingTrain 6 лет назад
oops
Далее
WebSockets in 100 Seconds & Beyond with Socket.io
8:31
😍😂❤️ #shorts
00:12
Просмотров 909 тыс.
8.2: HTTP Server with Express - Programming with Text
12:20
Coding Challenge #132: Fluid Simulation
54:31
Просмотров 629 тыс.
Coding Challenge 180: Falling Sand
23:00
Просмотров 797 тыс.
Protocol Buffers Crash Course
36:07
Просмотров 236 тыс.
Creative Coding with p5.js in Visual Studio Code
1:06:09
Coding Challenge 183: Paper Marbling Algorithm
32:10
Просмотров 67 тыс.
8.7: The Basics of CSS - p5.js Tutorial
16:33
Просмотров 46 тыс.