Passing Data Between Frontend and Backend | Node.js

  Рет қаралды 93,430

Smoljames

Smoljames

Күн бұрын

Пікірлер: 110
@Smoljames
@Smoljames 2 ай бұрын
Cheers for watching 💛 Get hired faster with a better resume @ www.hyr.sh
@axelkleven43
@axelkleven43 2 жыл бұрын
Finally, after weeks of trying to find the answer to a simple F***ing question! Thank you my good sir!
@davidbaldwin1722
@davidbaldwin1722 17 сағат бұрын
Have just come across this James. I want to repeat comments already made. I have been trying to understand and get these type of requests working for ages. years. In one excellent, concise and clearly presented tutorial you have presented a basic example that not only works but can be followed easily. Definitely keep up the amazing work. Your teaching method is perfect. Best regards, from Adelaide Australia.
@erice.3892
@erice.3892 Жыл бұрын
i just wanted to let you know this was the most straight-forward video on this topic when i was learning how to code. thanks for making it. cheers mate.
@Smoljames
@Smoljames Жыл бұрын
Glad you found it useful and thanks for the comment :)
@boo5274
@boo5274 Жыл бұрын
Honestly the best express video out there. Thanks heaps
@Smoljames
@Smoljames Жыл бұрын
cheers bro - thanks for the comment :)
@brucedordway
@brucedordway 11 ай бұрын
Thanks for the video. This helped clear up some of my confusion with client server communications.
@turnerwhite8939
@turnerwhite8939 2 жыл бұрын
This video saved me on a final project haha. I went from having no clue to being able to build a working website thanks so much! I spent hours watching videos but it only clicked after watching yours. Great explanations and tutorial
@Smoljames
@Smoljames 2 жыл бұрын
Glad it helped my friend :)
@tryhardnoob1140
@tryhardnoob1140 5 ай бұрын
Great vid. To the point without extra fluff. I'm a c#/python dev trying to learn fullstack. Already took javascript and node/express courses. I got a bit stuck when trying to put it all together, and this is exactly what I needed.
@feastorfeed8541
@feastorfeed8541 Жыл бұрын
Legend. You've taught me a lot with such a short video. Thank you.
@Smoljames
@Smoljames Жыл бұрын
Glad you liked it!
@ianmorris1045
@ianmorris1045 3 ай бұрын
Great video! Will definitely come back to your channel for concise explanations on whatever topics I need to
@michaelkomisarenko6426
@michaelkomisarenko6426 Жыл бұрын
Thanks for this short and very informative video. It opened my eyes.
@Smoljames
@Smoljames Жыл бұрын
Glad you enjoyed it!
@АлександрАндреевич-в3э
@АлександрАндреевич-в3э 2 жыл бұрын
A few days I looke anwered and you show me them. Thanks so much!
@sibbirshahriyar9742
@sibbirshahriyar9742 2 жыл бұрын
Really well explained I just found a gold mine of resources for learning webDev
@Smoljames
@Smoljames 2 жыл бұрын
Hope you enjoy them :)
@kyleclinton4642
@kyleclinton4642 3 ай бұрын
Finally, been trying find a channel that explained something like this, thanks so much man.
@ronitkumar19
@ronitkumar19 Жыл бұрын
Thanks A lot you saved me. Was having difficulty in this topic. LOVED IT.
@Smoljames
@Smoljames Жыл бұрын
Happy to be of service :)
@farahabdulahi474
@farahabdulahi474 Жыл бұрын
this was pretty bloody fantastic dude, really cemented the basic idea. and always nice to hear the familiar kiwi accent :)
@Smoljames
@Smoljames Жыл бұрын
Glad you enjoyed it my friend :)
@adocarpel7770
@adocarpel7770 Жыл бұрын
This information is really necessary, I want back-end and front-end with nodejs
@Tomy-kc8kf
@Tomy-kc8kf 10 ай бұрын
This is pure gold. Thank you!
@Smoljames
@Smoljames 10 ай бұрын
Always a pleasure!
@apitalismo4150
@apitalismo4150 2 жыл бұрын
dude, way to save a life , thanks, at college everybody just acts like you should just know this implicitly
@Smoljames
@Smoljames 2 жыл бұрын
Glad it helped friend
@i_am_dumb1070
@i_am_dumb1070 Ай бұрын
Thankyou i was looking for this video and after spending several hours found it
@VernorsDoctor
@VernorsDoctor Жыл бұрын
Been looking all over for something like this
@LiveLifeForReal
@LiveLifeForReal 4 ай бұрын
Thank you for the great video. Now I finally understood it
@jendazemlejna
@jendazemlejna Жыл бұрын
this video helped me sooooo much, finally i understood how to do this, thank you so much!
@Smoljames
@Smoljames Жыл бұрын
Glad the video helped you!
@kyleclinton4642
@kyleclinton4642 3 ай бұрын
Damn you too good bro, so straight forward.
@503476
@503476 2 жыл бұрын
Thanks a lot for this, really great. I've been looking for a video like this for aaaaaageeessss. the only criticism i have is it would have been great to see all 3 screens at once.
@Smoljames
@Smoljames 2 жыл бұрын
Glad you enjoyed:) and thanks for the feedback
@matt112fly
@matt112fly Жыл бұрын
i'm back to rewatch it, as i wanna re sharpen my backend skills ;)
@Smoljames
@Smoljames Жыл бұрын
Glad it's of service :)
@amanbansal3764
@amanbansal3764 2 жыл бұрын
Superb explanation. Very helpful
@alimedani0296
@alimedani0296 2 жыл бұрын
Thank you for the explanation, subscribed!
@456jkl1
@456jkl1 Жыл бұрын
Such a informative video! thank you so much for making this video.
@Smoljames
@Smoljames Жыл бұрын
Glad you found it useful!
@DEBO5
@DEBO5 2 жыл бұрын
Amazing tutorial. Very simple and straight to the point.
@ametuet7518
@ametuet7518 Жыл бұрын
ty bro. you helped me. good luck!❤❤
@facundolandaida582
@facundolandaida582 2 жыл бұрын
Amazing job bro!
@lucas2436
@lucas2436 2 жыл бұрын
Amazing video, thank you.
@draganbogdan4267
@draganbogdan4267 Жыл бұрын
This is great, thank you very much, it would be really nice if you could make a tutorial as clear as this about how to retrieve data and how to write in a database(Sql) using nodejs. Maybe the whole process frontend->backend->database -->backend -->frontend
@Smoljames
@Smoljames Жыл бұрын
I would be happy to do that
@draganbogdan4267
@draganbogdan4267 Жыл бұрын
@@Smoljames I will stay tuned
@Nkhugkvivnihy
@Nkhugkvivnihy Жыл бұрын
nice,point to point
@abdallahnagy1
@abdallahnagy1 Жыл бұрын
thank you very much for that amazing tutor.
@GrinLOLZ
@GrinLOLZ 3 ай бұрын
amazing for beginners
@pabagg
@pabagg Жыл бұрын
love ya, literally saved me
@Martindaoo
@Martindaoo 9 ай бұрын
Thank you! This was very helpful. Also, how would you deploy the localhost backend when you host the website?
@Smoljames
@Smoljames 8 ай бұрын
On aws amplify :P
@matt112fly
@matt112fly 2 жыл бұрын
hello from Reddit - thanks for making this.. im learning new things already 🤓
@Smoljames
@Smoljames 2 жыл бұрын
Haha I'm happy it helps :)
@wildjorphneydorvilas7758
@wildjorphneydorvilas7758 2 ай бұрын
I've just realized my waste of time on the other videos. Great Job!!!
@arnoldwork2450
@arnoldwork2450 2 жыл бұрын
Thank you for this great video! But could you pls use a darker background? It's really hard to see e.g. the yellow brackets.
@Smoljames
@Smoljames 2 жыл бұрын
Happy you enjoyed :) and yep I absolutely can. Thanks for the feedback
@Psammystprime
@Psammystprime 2 ай бұрын
Useful indeed
@shivaniadimulam6796
@shivaniadimulam6796 Жыл бұрын
Its very helpful...Thank You
@Smoljames
@Smoljames Жыл бұрын
More than welcome!
@espoirTr-g9o
@espoirTr-g9o Жыл бұрын
I didn't get why the "prest text 🐝" was not printed at the first try when the url was at the home page route "/" , but then after changing both of the routes on the srever and on the fron-end script to "/info" it appears ? at the first and second requests the route was the same so why ?
@vogadok4695
@vogadok4695 Жыл бұрын
seu video me salvou!
@MBrega
@MBrega Жыл бұрын
Hi Smoljames, thanks for your video and your ability to be really clear in teaching stuff, I found it truly helpful. As a beginner in javascript programming language itself, I find it a little too advanced for me, even though somehow intuitive. Would you mind recommending which of your video to follow along in order to have an in-depth understanding of all the statements and steps here illustrated? Thank you in advance.
@Smoljames
@Smoljames Жыл бұрын
Hello hello - thanks for your comment! I'm glad you found the video useful. If you're looking to continue with nodejs then I would recommend watching my nodejs crash course that I recently uploaded :) hope the helps
@Becksbradley
@Becksbradley 2 жыл бұрын
great video !!
@haihoduc5393
@haihoduc5393 Жыл бұрын
A little bit weird seeing you coding on a bright background but your tutorial is great.
@Smoljames
@Smoljames Жыл бұрын
Haha glad you enjoyed the video and don't worry I've switched to dark themes
@flaviopalomba6577
@flaviopalomba6577 Жыл бұрын
I love you bro, I wasn't able to send a post request from client to server, I was about to kill my self, THANK YOU
@Smoljames
@Smoljames Жыл бұрын
haha cheers for the comment :) glad it helped you!
@chepparmaps
@chepparmaps 2 жыл бұрын
Please code in dark mode. All in all it was great
@davidsaavedravazquez5890
@davidsaavedravazquez5890 2 жыл бұрын
You also saved me! Thanks a lot! But for dynamic pages is it possible to use html without a template engine?
@Smoljames
@Smoljames 2 жыл бұрын
glad it helps :) it absolutely is - there is two methods. One, save to local storage from main page and then access that local storage material of the dynamic route. Two, client side render the content by fetching JSON information from the server, and then populate the document with that using javascript & the DOM.
@hamzazaidan620
@hamzazaidan620 6 ай бұрын
Does it save the posted value after refreshing or closing the page?
@MikeTsak
@MikeTsak 2 жыл бұрын
Awsome video. Although i Copied the Code line by liby I can not POST I get a (Bad Request) error, and an undefined error on my console...
@Smoljames
@Smoljames 2 жыл бұрын
Hey dude - sorry for my slow reply. I made a discord where you can post screenshots of your errors and stuff so feel free to post a bit more of a detailed error log in there and I can take a look. hope that helps :)
@MikeTsak
@MikeTsak 2 жыл бұрын
@@Smoljames Hey dude, I have figured it out. Your code works perfectly. It was an environment problem. Still Thanks for taking the Time to reply! 🙌
@tompryor349
@tompryor349 Жыл бұрын
@@MikeTsak what was your environment problem? I have the same issue!
@AB-kq9xm
@AB-kq9xm Жыл бұрын
@@tompryor349 Did you figure it out?
@tompryor349
@tompryor349 Жыл бұрын
@@AB-kq9xm no, not yet. My friend got it working for me but he rewrote some of it. I was quite happy following and understanding this tutorial, I just couldn’t get it to work
@kalimac2602
@kalimac2602 Жыл бұрын
nice
@Sushanta-Das
@Sushanta-Das Жыл бұрын
Sir , is this an example of client side rendering?
@stoyansarov2647
@stoyansarov2647 Жыл бұрын
Thank you mate. Is there a way to add an api key to the post request on server.js? I don’t want my key to be exposed ?
@Smoljames
@Smoljames Жыл бұрын
There absolutely is - I think the npm package called 'dotenv' is what you're looking for :) let me know if that works for you
@stoyansarov2647
@stoyansarov2647 Жыл бұрын
@@Smoljames Yep. I used dotenv and it worked. Thanks again mate. Brilliant content and explanation.
@thomasmagner5200
@thomasmagner5200 2 жыл бұрын
Hi James, I love the content and it seems to have everything I’ve been looking for. However, when I enter npm run dev, I receive the following error. Error: listen EADDRINUSE: address already in use :::8383
@Smoljames
@Smoljames 2 жыл бұрын
Glad you're enjoying the content :) hard to immediately say what the issue is but if you post a screenshot in the discord server linked in my bio I can take a proper look and give you my thoughts :)
@thomasmagner5200
@thomasmagner5200 2 жыл бұрын
Brilliant, I’ll do that in about an hour. Can’t believe you replied so soon. I also find it strange you only have about 800 subscribers. I thought it would be at least 50k, because the way you teach really is totally spot on
@Smoljames
@Smoljames 2 жыл бұрын
@@thomasmagner5200 haha thanks dude appreciate the compliment - hopefully we'll get there some day
@thomasmagner5200
@thomasmagner5200 2 жыл бұрын
@@Smoljames Well, I will say, the part that really grabbed me was you saying, let me know your challenges, and I'll create a solution, more or less those words (at the end of the video). I've seen loads of people make a big speech about uploading a new video every week. That in my opinion is almost like sahying nothing. It may be reassuring that you'll be around in the future, but it says nothing toward solving a problem someone has right now. You seem happy about helping people with immeidiate challenges, so if my opinion is of any help, that's what I'd be focusing on, rather than saying you release a video every week
@thomasmagner5200
@thomasmagner5200 2 жыл бұрын
Oh here we go, I might have it working. i changed the port number from 8383 to 8386 and I'm not receiving the crash error. So, maybe I'm good to go. I am still a bit new to this, so forgive me for not attempting that earlier :D
@brian9790
@brian9790 Жыл бұрын
I dont get it. You have frontend on your server? Isnt it supposed to be separated to commonly have two different devs to develop it? How people gonna merge this? I thought its the whole idea about front and backend dev to seperate it?
@Smoljames
@Smoljames Жыл бұрын
This is a more first principles demonstration. Whenever you deploy your frontend code, it ends up being a server system just like the one I have developed here that serves your frontend code. Every website in the world is served up by a server, which is exactly what this is. And the served website is known as the frontend, and the code that serves it is the backend. The code is still separate, as the html file in the public folder handles the javascript and the server.js file handles the server logic. The point of the video is to demonstrate how you can communicate between the frontend using javascript in the browser, to the Express + Node server that we have as the backend and runs on the server. You can apply this concept exactly to a different frontend / backend setup as you like, say if you had a React frontend and a Django backend.
@pjmclenon
@pjmclenon Жыл бұрын
Hello plz zoom in i cannot understand why so many video online and we can't even see the text too small zoomed out Lisa thank you
@christophergodfrey9130
@christophergodfrey9130 2 күн бұрын
Dude, what is your accent? Do you live on St. Helena?
@Smoljames
@Smoljames Күн бұрын
@@christophergodfrey9130 new Zealand!
@elnariouss
@elnariouss Ай бұрын
W
@RAJESH_.M
@RAJESH_.M 9 ай бұрын
@Smoljames Hi , I have created a project Classroom availability checker..that will check the availability of the classroom whether it is free or occupied by using data in the database..Explain me how to Retrieve the data from the backend and use it on the javascript of my live website and display the output according to input...
@RAJESH_.M
@RAJESH_.M 9 ай бұрын
I have published my website classroom availability checker...by using html css and Javascript..In that I have added the classroom data in the frontend (javascript)..Now the problem is I have used my data in javascript, which is visible to everyone..they can see the data by viewing the source code ...it will affect the data privacy..so I decided to create a database in the back-end and retrieve the data to Front-end..for my website...Can you please explain me how it can be solved or Can you please make a video for that
@Chacha355
@Chacha355 2 жыл бұрын
Can't see your screen...like at all...
@Smoljames
@Smoljames 2 жыл бұрын
haha good thing I've changed my editor theme
Advanced TailwindCSS Techniques You Have To Know?! [8 concepts]
20:31
MySQL Node.js Express
28:03
Sam Meech-Ward
Рет қаралды 196 М.
Каха и лужа  #непосредственнокаха
00:15
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
How To Handle Permissions Like A Senior Dev
36:39
Web Dev Simplified
Рет қаралды 93 М.
watch this if you always procrastinate
14:57
Smoljames
Рет қаралды 1,3 М.
No-Nonsense Backend Engineering Roadmap
10:16
Codebagel
Рет қаралды 242 М.
Learn Express JS In 35 Minutes
36:03
Web Dev Simplified
Рет қаралды 844 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 487 М.
Call API in React Js | How to send data from frontend to backend react
8:53
Каха и лужа  #непосредственнокаха
00:15