Тёмный

2.1 Server-side with Node.js - Working with Data and APIs in JavaScript 

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

💻github.com/Cod...
Welcome to Module #2! In the previous module, I focused on client-side JavaScript. This video covers the basics of server-side programming with Node.
We will begin building the Data Selfie App, a project tutorial by Joey K. Lee. This unit we will spend time getting setup with Node.js and our workflow.
🔗 Joey K. Lee: jk-lee.com/work/
🔗 Data Selfie App: github.com/joe...
🔗 Node.js: nodejs.org/en/
🎥 NEXT LESSON: • 2.2 Geolocation Web AP...
🎥 PREVIOUS LESSON: • 1.6 Refreshing Data wi...
🎥 FULL COURSE: • Working with Data and ...
🎥 What is Firebase? (Database as a Service): • 9.1: What is Firebase?...
🎥 Workflow: Node: • Workflow: Node
🎥 Introduction to My Workflow: • Introduction to My Wor...
🚂 Website: thecodingtrain....
💖 Patreon: / codingtrain
🛒 Store: www.designbyhu...
📚 Books: www.amazon.com...
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 Processing: processing.org
Welcome to Working with Data and APIs in Javascript!
This course is for aspiring developers who want to learn how to work with data in web applications. How do you retrieve, collect, and store data?
📄 Code of Conduct: github.com/Cod...

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

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 261   
@yourteacher4353
@yourteacher4353 5 лет назад
Very rarely in my life do I come across people this generous and energetic. Also, I think I will now speak for everyone in here: dear Daniel, moarrrrr server-side JS tutorials, please!
@antticodes
@antticodes 5 лет назад
Thank you. I didn't learn anything new BUT I finally understand what I am doing when I am doing that :D I am waiting for next episode.
@Jb67912
@Jb67912 4 года назад
I am exactly in that same place as you. Needed this breakdown and clarity immensely.
@oguzakankan518
@oguzakankan518 4 года назад
Same.
@KrzychVEVO
@KrzychVEVO 4 года назад
so you did learn something new
@Dadaadad268
@Dadaadad268 4 года назад
I think what he/she is saying is that they use this stuff already but maybe didn't really understand what it was doing. This goes for me anyway. I love this channel!
@Iwtfgege
@Iwtfgege 5 лет назад
Your latest content is the bomb for web devs =)
@lipslide101
@lipslide101 5 лет назад
Yes It's really applicable and good for getting experienced for real life projects.
@BSUGoliath
@BSUGoliath 4 года назад
That moment when you're going through this playlist and everything starts clicking. Thank you for these videos! Very helpful!
@thisisloop
@thisisloop 4 года назад
This is what I felt after the last videos about API, I've never understood exactly how API's work, but now everything is so simple and easy.
@daurham
@daurham 3 года назад
Sameeee I’ve fooled around with a few things and finally, he explains how they connect. I’m so thankful he’s here
@kutay8421
@kutay8421 5 лет назад
@12:18 ‐ 12:30 is what I have felt towards religion at some point in my life
@fabioalvarenga534
@fabioalvarenga534 4 года назад
HAHAHAHAH curious, how do you feel about it now?
@shanzid01
@shanzid01 5 лет назад
Good stuff
@TheCodingTrain
@TheCodingTrain 5 лет назад
I don't know React. . but maybe I'll learn it!
@shanzid01
@shanzid01 5 лет назад
@@TheCodingTrain haha same! I guess I'll wait for your tutorials 😂
@chrismorris5241
@chrismorris5241 5 лет назад
Node is really fun to work with. I wrote a small multiplayer game using it. Thanks Daniel!
@lonthroop
@lonthroop 3 года назад
Excellent! You did in 18 minutes what my college textbook failed to do. I'm a subscriber.
@alpozen5347
@alpozen5347 4 года назад
You are by far one of the best in teaching programming. Imo you easily beat all the other tech channels like techlead, joma etc.
@suithonn
@suithonn 5 лет назад
I was trying to learn how to do these things and you upload this video just in time! Thank u so much Daniel
@rhodesjh
@rhodesjh 2 года назад
I am very lucky that I found this website. You are truly a blessing
@sengokugensui4129
@sengokugensui4129 5 лет назад
I just wanted to let you know, the way you've edited these past few videos are really really good. The part in the beginning to recap and summarize, also very well explained. I would say you're improving as a teacher. Thanks for the videos, really like em so far!
@EnavSounds
@EnavSounds 2 года назад
The comment is so generic and fake
@zaid4708
@zaid4708 Год назад
@@EnavSounds who?
@Musfiq77
@Musfiq77 5 лет назад
that's why I like you so much , everything you make easy to understand , thank you so much ...
@JamesLawton1
@JamesLawton1 5 лет назад
Dan, this is truly fantastic. I've been struggling with learning how to effectively use JS, coming from a Visual Basic & PHP background this guide was super useful! Thanks!
@chrispaul7890
@chrispaul7890 3 года назад
@The Coding Train: I'm not sure how your final example worked. I had to switch the app.listen to after the app.use line. If app.listen comes before app.use (14:48) I get a the same cannot GET response.
@Any_key404
@Any_key404 5 лет назад
I too get excited when I hit refresh and nothing happens because that means no errors.
@fastlearner9993
@fastlearner9993 2 года назад
THE WAY YOU EXPLAIN STUFF IS THE BEST ON RU-vid !!!!!
@ravendfj
@ravendfj 3 года назад
Hi! Thanks for your work. Question please: How do you know the api for the express module (all the commands/methods like "accept" and so on)? Thanks.
@EMonzon
@EMonzon 3 года назад
I knew you could teach me about this crap!
@moikanos11
@moikanos11 6 месяцев назад
You are amazing. I haven't watched anyone else that comes close to this level of understanding of what a newbie needs to know or what might confuse them.
@VlogDeIT
@VlogDeIT 5 лет назад
Yey, new video. Who likes it?
@dr4kk0nnys6
@dr4kk0nnys6 5 лет назад
I love your content man, you're awesome
@Kyle-hi5od
@Kyle-hi5od 3 года назад
javascript devs are so lucky to have such an amazing teacher like you. thanks for all the content homie
@dizzyrocket2000
@dizzyrocket2000 3 года назад
This guy is my favourite teacher of all time. Fact.
@the_fluffychan
@the_fluffychan 5 лет назад
Finally! Express.js. !!
@harmeepatel
@harmeepatel 5 лет назад
I've seen node videos before, never like this 😲💯💯. Thanks
@pablovega7998
@pablovega7998 5 лет назад
I am so jealous that I didn't have these videos when I was learning all this stuff! Amazing videos, just discovered your channel and I haven been binge watching the challenges haha!
@brandonbailey4491
@brandonbailey4491 5 лет назад
"Love you 3000"
@sebastiaanvv
@sebastiaanvv 4 года назад
Is this a competition? :)
@IndieDeveloperGuy
@IndieDeveloperGuy Год назад
You're a great teacher! I loved all the energy and effort you put into making these videos ! There are super informative :)
@gulock6782
@gulock6782 3 года назад
My god this video makes my life easier!
@_kett2164
@_kett2164 5 лет назад
I literally just started working with json and node.js, and this comes out in the same week! Amazing!
@ericbishop2461
@ericbishop2461 5 лет назад
Dan can clearly predict the future, I too, am learning Node.js!
@AviatorBro
@AviatorBro 4 года назад
Finally, I understood what exactly does NodeJS. Thanx Dan sir
@sarvagyasingh4518
@sarvagyasingh4518 3 года назад
sir how to listel to websites not working on local host
@nunyo5280
@nunyo5280 4 года назад
You're a lifesaver with all of these video tutorials. I have searched and searched and have not come across one person who is as thorough as you, thank you very much!
@mike_vahemoubayed8099
@mike_vahemoubayed8099 4 года назад
Thanks! I wanted to get started with server side coding!
@dylanking000archive
@dylanking000archive 2 года назад
i am so thankful for these videos
@bartff5568
@bartff5568 5 лет назад
There is an add-on terminal in VS, just for information
@BizarrelyOdd
@BizarrelyOdd 5 лет назад
Hey! You could try using Reload library to make the page auto update when you change your source files.
@VolcanoND
@VolcanoND 4 года назад
can you suggest any resource (link) to explain using the reload library you are talking about ?
@BizarrelyOdd
@BizarrelyOdd 4 года назад
@@VolcanoND Its been a while, but you could try this guide: www.npmjs.com/package/reload
@penguinmonk7661
@penguinmonk7661 2 года назад
I would like to mention that if you choose to not setup the server for serving webpages, but instead run the html from file, you will run into CORS (Cross Origin Resource Sharing) problems later. Now if you want to know why and what this is I urge you to try running it as file, but it is not the easiest subject matter so unless you have time on your hands jsut follow along verbatim, you will learn plenty doing so.
@jfknumbers1345
@jfknumbers1345 4 года назад
Where is Module #1?
@stephanurkel7567
@stephanurkel7567 4 года назад
I have never fully gotten it until this series 🙏🏾
@topsevenamazing
@topsevenamazing Год назад
Great Tutorials sir new subscriber here, Just wondering if you have a tutorials on working with Fetch api then create a new page when each item will be clicked. Thanks
@grainfrizz
@grainfrizz 5 лет назад
I'm following this Dan (github.com/morethanyell/nodejs-tut) will checkout a new branch for next episode.
@mateuschagas191
@mateuschagas191 3 года назад
wtf, you'se so gooooood!!
@AChannelFrom2006
@AChannelFrom2006 3 года назад
I've made a multiplayer hotseat game and I've been wanting to make it multiplayer online... still don't know of NodeJS will be okay for the task
@kw3606
@kw3606 4 года назад
When I try to locally host the page using app.use(express.static("index.html")); it always says "cannot GET" . I have created the html file in the same folder as the js file and also tried using app.use(express.static("public")); and creating a "public" folder in the same directory as the javascript file and dragging my html file into this public folder as is done in the video. Both ways still give me cannot GET. Any tips?
@ocx888
@ocx888 4 года назад
5:23 smoothest transition ive ever seen in my life
@okaro.2023
@okaro.2023 4 месяца назад
I want to thank you completely. after two weeks of trying and failing with xhttprequest and fetch and fs readfile writefile and promises. I finally found you. My JS teacher. I love youuuuuuuuuuuuu
@srisakthi105
@srisakthi105 3 года назад
Using a simulator I'm able to upload the sensor data into Azure IoT hub. Now I want to expose the data via API in JSON format. Do you know how to download data from Azure IoT hub via API? If so, kindly guide me on this.
@sanchitverma2892
@sanchitverma2892 5 лет назад
hmmmmmm interesting
@Barrosy
@Barrosy 3 года назад
Can anyone explain me why it's always port 3000? What's thing about those port numbers?
@lakshmananravi4178
@lakshmananravi4178 4 года назад
i have a doubt sir using a single file name such as index.html in express.static() function doesnt works only works if i specify a folder name??
@JohnLudena
@JohnLudena 3 года назад
This man is a national treasure. We must protect him at all costs.
@felfer
@felfer 3 года назад
Man, listen, ANY script runs perfectly at localhost. People must stop to do localhost Node JS "tutorials".
@serkanozkan8793
@serkanozkan8793 3 года назад
In the year 2000, we wrote our web pages manually coded. The year 2020 We are still writing by hand! The reason that best idea the web design the Dreaviewer killed by Adobe!
@ondine9997
@ondine9997 3 года назад
does anyone know the various app.post() commands in server_api.js?
@sharveennagendran
@sharveennagendran 4 года назад
Hi guys, someone please explain why my localhost:3000 is not working. There is nothing running on the server :(
@Anton-wc7lb
@Anton-wc7lb Год назад
Amazing, thanks for clearing this up! Building a html page that I will be hosting on an Arduino, this is a great start!
@aakashsingh7391
@aakashsingh7391 3 года назад
I was knowing everything but not able to understand what i m doing and why.. but now i can teach anyone more cleaely and make some project with confidence
@azlioo
@azlioo 4 года назад
Thanks LotS..Really help me easy understand😄
@mulugetakejela6126
@mulugetakejela6126 3 года назад
Your energy is on another level man
@itsme-zk2mv
@itsme-zk2mv 2 года назад
I had to stop the video to say I like ur way explaning the hole things with fun 😊 Thanks
@Quidoute
@Quidoute 3 года назад
7:49 if you're lazy you can type npm init -y and it will make the package with the difault settings automaticlly
@tim4104
@tim4104 3 года назад
Love how much of core concepts can be transmitted on the fly with so much fun ;)
@tim4104
@tim4104 3 года назад
damn, he is good ... i catch myself so often thinking to myself "this is exactly what I didn't get last time someone told me to follow these steps" ... so thanks for answering all those questions and worries
@davthemillionth
@davthemillionth 4 года назад
I don't have access to admin privileges, is there a way to do this without installing node?
@nakedcellist
@nakedcellist Год назад
You really are one of the best teachers on youtube..
@yeniyeni6922
@yeniyeni6922 2 года назад
thanks ı bypassed roblox filtered enabled on roblox
@daviddafitt
@daviddafitt 5 лет назад
I consider myself an intermediate web developer but I still enjoy watching your videos to learn some key concepts I never knew Amazing video!
@TECHN01200
@TECHN01200 5 лет назад
Now I want to make an internet connected toaster...
@lolibear
@lolibear 3 года назад
Damn, i dont have a webcam ;( , RIP project
@MotionInMotion1975
@MotionInMotion1975 3 года назад
You need a course at udemy man... I would buy it in a New York minute.
@normajeanchariot
@normajeanchariot 4 года назад
is creating a local server safe?? If we do it via https does it make it safe?
@MilanDrazic
@MilanDrazic 4 года назад
I think you are not a normal guy but I have to kiss you for this 😘😘😘
@rachitarora8574
@rachitarora8574 4 года назад
Can you provide any idea about peer to peer video streaming connection
@grainfrizz
@grainfrizz 5 лет назад
Guys using Windows: you can run Ubuntu on top of Windows. Just install it from Microsoft Store and then open cmd and then run bash. Viola! You're no running Ubuntu. Play around there instead of on Windows.
@thales2008
@thales2008 5 лет назад
I've been following these recent videos and I'm loving it, even though I already have some experience in javascript. Thank you so much!
@chris-adams-tas
@chris-adams-tas 4 года назад
Brilliant presentation. A lightbulb moment here; now I understand what Node.js and NPM is. Many thanks, subscribed.
@voleti19
@voleti19 3 года назад
Pretty much well explained 👏
@BenjaminWheeler0510
@BenjaminWheeler0510 5 лет назад
Any idea why if a friend clones my code of this and runs the index.js to open the server, he gets a Cannot Get / error, but I don't? Our files are identical.
@ayushnautiyal9469
@ayushnautiyal9469 3 года назад
Can someone tell me the solution for npm err! cb() never called
@suhuang8612
@suhuang8612 3 года назад
Oh I really love your videos! Thank you!!!
@ritikghosh1750
@ritikghosh1750 2 года назад
Very very very informative video on RU-vid 🙌
@GGanzolo
@GGanzolo 3 года назад
Excelent video! Suscribed.
@JoonasKarp
@JoonasKarp 5 лет назад
Do you have any good videos teaching nodejs step by step from scratch for beginner ?
@lokaya
@lokaya 3 года назад
Thank you sir. I am from Sri Lanka
@nilsm9591
@nilsm9591 2 года назад
wow this is so good. Can't believe this is free
@Omaryllo
@Omaryllo 5 лет назад
Since you're getting into nodejs, you should check out discord.js which is a library for the discord API. Discord bots can get really creative and the library is dead simple (aside from Promises, but you've already covered that
@roridev
@roridev 5 лет назад
Don't even get me started on discord bots. Spent a lot of time doing does, things can get really crasy really quickly.
@Omaryllo
@Omaryllo 5 лет назад
@@roridev Same here when I was just getting into it. But eventually I developed habits and conventions by looking at others' code and having done a bunch of bots. Now all common problems are pretty much non-existent. I think that if coding-train made a video about it, everyone else just getting started get to avoid this from the beginning
@roridev
@roridev 5 лет назад
@@Omaryllo Can indeed agree, I had a lot of simple discord bots with a lot of junky code on the beggining. I don't use discord.js, since I use DSharpPlus (C# Wrapper) but the struggles are the same.
@kevinstephens1039
@kevinstephens1039 2 года назад
Thank you SO much for providing such comprehensive information in an easy-to-digest format. A lot of my experience has been to try creating my own node.js server, run into problem, search problem, and try to band-aid my blunders. Actually "learning" this content and starting from the real beginning of building functional code and a proper server fills SO many gaps, and frankly, inspires me. Again, thank you! and I'll mimic Nil's sentiment below - I can't believe this is free.
@priceton_braswell
@priceton_braswell 2 года назад
im learning so much. i cant believe this is free.
@TrapTrixDM
@TrapTrixDM 4 года назад
I found this video because I downloaded a program, and a Node.js running in my task bar. Knowing it collects data, I ended up uninstalling the program because.... I was a scared boy.
@yab570
@yab570 4 года назад
Hi, have you worked with ArcGIS JS api 3.x? if yes, can you create graphics for 7 million or more polygons on front end or client side.
@marvinlemos
@marvinlemos 3 года назад
Thank you so much for your videos!!!
@sergiisechka1993
@sergiisechka1993 2 года назад
Man! You are my hero! Fantastic explanation! Please keep going, don't stop! You truly a BEST!
@grainfrizz
@grainfrizz 5 лет назад
Hi Dan, is there a CLI to check what tcp-port Node is listening to?
@emmil74
@emmil74 3 года назад
I LOVE YOU. YOURE AWESOME! I was really stuck with my internship project and now I understand 😭
@cadjs
@cadjs 4 года назад
I am really loving your presentations...your personality really makes the learning process easier. What software are you using for the video overlay stuff, it's very slick?
@lilrex2015
@lilrex2015 5 лет назад
THANK YOU, THANK YOU, THANK YOU. I love your videos and have been trying to learn server side for months now
@OTE887
@OTE887 2 года назад
Bro you are genius hope you make a series for machine Learning for different algorithm. you have amazing way of delivering
@tamphung8043
@tamphung8043 5 лет назад
containerize it please
@lakshmananravi4178
@lakshmananravi4178 4 года назад
Sir, first of all thanks alot for your great great youtube educational collection.First was sceptical that your channel is for advanced developers but it was quite easy to follow.
Далее
1.1: fetch() - Working With Data & APIs in JavaScript
15:39
Node.js Crash Course
2:06:35
Просмотров 188 тыс.
1.4: JSON - Working with Data and APIs in JavaScript
16:22
Node.js Tutorial for Beginners | CRASH COURSE
5:33:24
Просмотров 42 тыс.
Express Crash Course
1:46:11
Просмотров 91 тыс.