Connecting React Frontend To Express Backend || JavaScript Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024

ความคิดเห็น • 199

  • @marinakim2929
    @marinakim2929  4 ปีที่แล้ว +8

    What would you like me to explain in the next videos?

    • @guirocha6788
      @guirocha6788 3 ปีที่แล้ว +2

      How to build ?

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว +3

      @@guirocha6788 please check my latest video on building and deploying MERN app

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว +4

      @@guirocha6788 hi! I have a latest video on build and deploy ☺️

    • @guirocha6788
      @guirocha6788 3 ปีที่แล้ว +1

      @@marinakim2929 ok , thanks Kim 😉

    • @janicadino5033
      @janicadino5033 3 ปีที่แล้ว +1

      How you got into web dev and how'd you learn it:) Basically your journey hehe

  • @gunnarMyTube
    @gunnarMyTube 3 ปีที่แล้ว +9

    Very good ! For some reason tutorials showing the integration between functional programming React and Express have been rare to find. Kazakhstan can be proud of this education effort.

  • @vibelover5444
    @vibelover5444 3 ปีที่แล้ว +9

    I usually don't like videos, BUT this is exceptional! bravo lady!

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      Oh thank you so much 😃😃

  • @NameUnderscoreSurname
    @NameUnderscoreSurname 3 ปีที่แล้ว +2

    Amazing tutorial, thank you so much. I can't believe I found the solution on such a small channel, nobody explained it as well as you. Kazakhs are the best, привет от русского из Чехии :)

  • @sohaibrahman6240
    @sohaibrahman6240 3 ปีที่แล้ว +3

    Thank you for such short tutorial. You covered the topic under 15 mins... This is what I was looking for

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      And thank you for feedback 🥰

  • @albertomora4668
    @albertomora4668 3 ปีที่แล้ว +2

    Thank you a lot! I was having a huge amount of problems with CORS. You have saved my life! :D

  • @Duudlex
    @Duudlex 3 ปีที่แล้ว +2

    Ok. I can just say that how u made this tutorial is exactly how I am looking for them to be. Not long, like for an hour and more and very simple to understand. Good job!! keep up your work. Subscribed, looking for more and very pleasant voice to listen to.

  • @AbhishekKumar-ug1hm
    @AbhishekKumar-ug1hm 4 ปีที่แล้ว +1

    I went through your video and it literally worked. I had gone through so many videos of connecting the frontend with the backend and the problem was my backend server was not launching. Thankyou a lot. And you are very pretty your brownie points love from India.

    • @marinakim2929
      @marinakim2929  4 ปีที่แล้ว

      Thank you so much Abhishek, it means a looot to me 😃☺️

  • @urbanpuma9136
    @urbanpuma9136 2 ปีที่แล้ว +2

    Absolutely phenomenal tutorial, best one I've watched - easily explained, straight to the point.Thank you so much

  • @MSSPriyadarshiniA
    @MSSPriyadarshiniA 3 ปีที่แล้ว +1

    Just amazing , u have just explain the things short and sweet and also very important thing for beginners.....

  • @kiddjmadd
    @kiddjmadd ปีที่แล้ว

    Good to see the React / front end was implemented in the functional style with useState and useEffect. The others I looked at used classes to communicate with the API.

  • @chiangyongheng6679
    @chiangyongheng6679 ปีที่แล้ว

    You make it so simple and easy to follow. Short video to the points that we need.

  • @divyanshusah2809
    @divyanshusah2809 3 ปีที่แล้ว +1

    Yahi Video Chaheko Thiyo mli.. thank You...❤❤

  • @samiaghezal
    @samiaghezal 3 ปีที่แล้ว +3

    thank you! Made it sound so simple, I'll be following along.

  • @aes0p895
    @aes0p895 ปีที่แล้ว

    I've been going in circles for about 3 days trying to figure out why I couldn't connect to mongodb with my react app, and now I understand it's because i'm supposed to have a backend server app running also. thanks for the help!

  • @slug3376
    @slug3376 2 ปีที่แล้ว +1

    For what is this good for now?
    I somehow try to learn coding but understand nothing

  • @omkartaru7043
    @omkartaru7043 3 ปีที่แล้ว

    You were took those topics where most developers confused.. You are awesome, amazing work!

  • @rajatnayak972
    @rajatnayak972 2 ปีที่แล้ว

    Thanks a lot for covering so quickly without beating around the bush😁👍🏼

    • @marinakim2929
      @marinakim2929  2 ปีที่แล้ว +1

      and thank you for the feedback =)

  • @enricoantonio3282
    @enricoantonio3282 2 ปีที่แล้ว +1

    Hi Marina, Thank you for the tutorial. It's so helpful to me. But may i ask something that i still confused about :
    1. in the userRoute.js (06.22) -> why you use route.get('/') ? why it's refer to home route?
    2. in the server.js (07.20) -> why you use app.use() instead of app.get() ? are there any differences between these too for routing like this?
    Hope you can answer this question to help me understand about connection react and node.js. Thank you so much.

    • @marinakim2929
      @marinakim2929  2 ปีที่แล้ว +2

      Hello) thanks so much 🙃app.get is an API route, while app.use is a middleware (function that is executed before going through API). ‘/‘ is simple the url of your express server - it is short from ‘localhost:port/‘ - it should be the same when you configure route in server and proxy in react 🙂 you can do app.get(‘/another-route’) in the server but in your React app you will also use this url to use the api

    • @enricoantonio3282
      @enricoantonio3282 2 ปีที่แล้ว +1

      @@marinakim2929 Thank you for the explanation. I get it now :)

  • @АртемТимофеев-я1ы
    @АртемТимофеев-я1ы 3 ปีที่แล้ว +1

    oh my god. This is what i needed! exactly! thank you for the lesson, god bless you!

  • @alejandroz1198
    @alejandroz1198 ปีที่แล้ว

    Good tutorial, but I dont know if this is the standard way of connecting express and react. Is it really necessary to have them in two different servers?

  • @StrikerFeed
    @StrikerFeed 3 ปีที่แล้ว +1

    I was wondering how to deal both with front-end and back-end, and seems like this video helped me, thanks!
    I also wanted to ask. This is a regular way to build apps, like creating front-end and back-end folders, and inside them initialising their own npm projects?

    • @sbarter
      @sbarter 3 ปีที่แล้ว

      u can simplify it and have them both start with one line by using a library called "concurrently"

  • @TomkinsOkello
    @TomkinsOkello 4 ปีที่แล้ว +5

    This is awesome, made it look so simple. Thanks.

    • @marinakim2929
      @marinakim2929  4 ปีที่แล้ว +1

      thank you for the feedback :)

  • @mohammedaldomi1059
    @mohammedaldomi1059 3 ปีที่แล้ว

    I know nothing about express bu I start love it 🙂

  • @techbizlife
    @techbizlife 3 ปีที่แล้ว +2

    not only your makeup is beautiful 😍, but also your have handful skills

  • @ywrsam
    @ywrsam ปีที่แล้ว

    Amazing to see beauty teaching programming

  • @MiSt3300
    @MiSt3300 3 ปีที่แล้ว

    In my app my front end directly corresponds with the database sending post and get requests to my google firebase. Is it a smart move? Or should I maybe keep my database URL away from potential hackers and do everything through the backend api?

  • @ArisAris-fs1ip
    @ArisAris-fs1ip 2 ปีที่แล้ว

    Once again with simple explanations you saved my day!

    • @marinakim2929
      @marinakim2929  2 ปีที่แล้ว +1

      Thank you so much 😃😃

  • @rajeshmondal8392
    @rajeshmondal8392 2 ปีที่แล้ว

    Hello, I have a frontend built with React and a backend built with Node JS and Express. I am hosting the site with cPanel. How can I do this? Please help me.

  • @diyarhaji2695
    @diyarhaji2695 10 หลายเดือนก่อน

    Hallo Marina Kim
    Ich habe ein Frontend und ein Backend
    Ich möchte sie verbinden
    Kann man helfen?
    vielen Dank

  • @gracenicole571
    @gracenicole571 3 ปีที่แล้ว +1

    Hello :) after copying this my user will not render onto my web browser page - any guidance?

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      Hi there) what error do you get?

  • @vetri09
    @vetri09 3 ปีที่แล้ว

    is that a mechanical keyboard? what is that? i like the sound of it..not so heavy sound like a mechanical one. Great video

  • @emreozgun3846
    @emreozgun3846 2 ปีที่แล้ว

    In this case, what actually solved CORS issue ? that 'proxy' you injected to npm ?

  • @ashishtiwari2128
    @ashishtiwari2128 4 ปีที่แล้ว +2

    Much helpful for newbie's, Great)) Keep it up.

  • @DarrinDuncan
    @DarrinDuncan 3 ปีที่แล้ว

    Thanks for this video Marina. It was done very well

  • @kmSaifullah
    @kmSaifullah 2 ปีที่แล้ว

    This is really a great tutorial. Thank you for sharing this with us.....✌️✌️✌️👍👍

  • @error-bl4dm
    @error-bl4dm 7 หลายเดือนก่อน

    this here is a holy grail for new developers I say, like that one hot Discrete Maths teacher you may never understand but her voice will always ring on your head to remind you about it so you have imposter syndrome of howd in the F you know the answer and suddenly you subscribe to her channel

  • @soumyaranjanpatnaik4695
    @soumyaranjanpatnaik4695 3 ปีที่แล้ว

    Which keyboard do you use? Probably one of the best sounding ones I've heard in a while! Nice tutorial btw...

    • @fahisrahman
      @fahisrahman 3 ปีที่แล้ว

      Mac

    • @soumyaranjanpatnaik4695
      @soumyaranjanpatnaik4695 3 ปีที่แล้ว

      @@fahisrahman I think that won't make any sound... Membrane keyboards generally don't!!

  • @timoernst
    @timoernst 4 ปีที่แล้ว +2

    ‪Great video, keep it up! 👍 Teaching is the best way of learning. Subscribed!‬

    • @marinakim2929
      @marinakim2929  4 ปีที่แล้ว +1

      Wow thank you So much 😃🥰

  • @rodolfolopezp
    @rodolfolopezp 2 ปีที่แล้ว

    Excelent. Nice work. Thanks a lot

  • @tahaben3354
    @tahaben3354 2 ปีที่แล้ว

    thank u so much for this3.. keep up the good work

  • @ThaiHaOfficial
    @ThaiHaOfficial 3 ปีที่แล้ว

    when i don't add "proxy" in package.json, why it still work ?

  • @sullisulovely4733
    @sullisulovely4733 3 ปีที่แล้ว +1

    Where do you learn this from??
    Your explanation is great , it is easy to follow!!!!
    Thank you so much !

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว +2

      Thank you so much, I’m happy you like)) I read blogs, watch other less clear and updated videos and then try myself the easiest and simplest way)

    • @sullisulovely4733
      @sullisulovely4733 3 ปีที่แล้ว

      @@marinakim2929 Which website do you recommend for reading these blog?

  • @rajkumarsatya1
    @rajkumarsatya1 4 ปีที่แล้ว +1

    Your explanation was extraordinary 👍👍

  • @djmjr77
    @djmjr77 3 ปีที่แล้ว +1

    Thank you for thinking about mobile phone watchers by zooming your vscode screen.. cant say how many vids I have seen where they are typing stuff zoomed out and expect you to be able to read anything!!

  • @hasmishaikh8829
    @hasmishaikh8829 3 ปีที่แล้ว

    Thanks a lot for this tutorial.. it's very helpful for me..

  • @Lucilodc
    @Lucilodc 2 ปีที่แล้ว

    Your tutorials are awesome Marina ! as you too ! Thanks a lot !. Can you explain me how to deploy the app within the express connections all together please !!

    • @marinakim2929
      @marinakim2929  2 ปีที่แล้ว

      Hi)) thank you so much.. please check out some later videos for this🥰

  • @coinnerd9633
    @coinnerd9633 3 ปีที่แล้ว

    Hey Marina this is a good video. Make more please

  • @MSSPriyadarshiniA
    @MSSPriyadarshiniA 3 ปีที่แล้ว

    U have controller and route specified but u didn't tell about the models ... , Is that requires or not ??

  • @yosefshemesh3274
    @yosefshemesh3274 3 ปีที่แล้ว +1

    i get an error: TypeError: res.json is not a function
    i copied one by one of your text..
    what should i do?

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      Sorry I need to see your code for this) would you share git repo?

  • @monisansari2663
    @monisansari2663 3 ปีที่แล้ว +1

    hi i want to ask one thing,
    as u explain react app and node server is running on different field then how we connect that

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว +1

      Hi) i think I cover it in this video, there are few steps to connect, first to specify proxy backend address in client package.json file, then you configure api routes, fetching data, posting through axios. But at the end react and node are running separately

    • @monisansari2663
      @monisansari2663 3 ปีที่แล้ว +1

      @@marinakim2929 okk...i thought we need to connect react file to node , but if they are running seperately then do we req to create a server for react or just upload the react build file as it is

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      @@monisansari2663 react server is already there.. you just run npm start if I understood your question correctly 😊

  • @financewithsom485
    @financewithsom485 2 ปีที่แล้ว

    while fetching it should be localhost:3001/users/ or only users/ I am confused??

    • @marinakim2929
      @marinakim2929  2 ปีที่แล้ว

      Hello, it depends if you specified a proxy in client package.json file. If you specified then you can just write users otherwise you should write full localhost etc

    • @financewithsom485
      @financewithsom485 2 ปีที่แล้ว

      Ok thanks marina .

  • @sanketpuhan9649
    @sanketpuhan9649 3 ปีที่แล้ว

    wow...nice video ..it helped me a lot

  • @ХадіАлХабуні
    @ХадіАлХабуні 3 ปีที่แล้ว

    Damn girl you are so good I wish my teachers can explain and simplify things like you.
    Would you please make a nodeJs with front end course?

  • @chamikasandaruwan7258
    @chamikasandaruwan7258 2 ปีที่แล้ว

    Excellent one👍❤️

  • @josuezolakio2809
    @josuezolakio2809 3 ปีที่แล้ว

    Thank you Marina!

  • @antdono95
    @antdono95 4 ปีที่แล้ว +1

    Nice video! But I see you statically set your express port number to 3001, what happends when its deployed to e.g. heroku and its port number is dynamically set?

    • @marinakim2929
      @marinakim2929  4 ปีที่แล้ว +6

      Yeah I used static port for simplicity :) thank you for the comment!! If you deploy to heroku you should install dotenv so you can store your port in .env file and set it to process.env.PORT || 3000

  • @joao6688
    @joao6688 ปีที่แล้ว

    I don't know what's going on
    but I really like the sound of the keyboard

  • @PLAY_Arcade
    @PLAY_Arcade 4 หลายเดือนก่อน

    How would this work in production env?

  • @alferezsteveng.3688
    @alferezsteveng.3688 2 ปีที่แล้ว

    Greatly helpful 👍

  • @RainOnline
    @RainOnline 3 ปีที่แล้ว +1

    at 6:14 I don't understand line 5 .. what means usersRoute.usersController ?

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      Hi there) it’s one of express.router methods, here’s a nice article on routes and controllers developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/routes

  • @Jimi-bx3xf
    @Jimi-bx3xf 3 ปีที่แล้ว

    Im your New fan 👍👍👍👍

  • @boluwatife9326
    @boluwatife9326 2 ปีที่แล้ว +1

    Ngl the sound from the keyboard hits different.

  • @جابربتویی
    @جابربتویی 3 ปีที่แล้ว

    سلام خیلی ممنون هستم بابت آموزش

  • @oliverreviews8496
    @oliverreviews8496 3 ปีที่แล้ว

    Марина, слышу что вы русскоязычная и это хорошо, спрошу. Зачем вы фетчите дату в useEffect? Он же срабатывает при каждом ререндере дома или вообще в изменении его структуры. Или я не прав? Пожалуйста, помогите разобраться, потому что я привык фетчить дату при событиях типо клика или сабмита, но вижу как некоторые делают это в хуке useEffect. Реакт изучаю совсем недавно из-за надобности по работе, обычно писал только бэкенд. И меня ставит в тупик этот хук. Почитав офф документацию написано, что отрабатывает в зависимости от установленных зависимостей, и изменении состояния этих зависимостей. В общем путаница

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว +1

      Здравствуйте) спасибо! Я использую useEffect потому что у меня не привязаны фетчи к кнопкам, а сразу с базы данных подтягиваются :) в юзэффект можно настроить когда именно он рендерится и обычно я пишу в скобках чтоб он срабатывал каждый раз когда в базе данных изменения происходят. Но я попробую сегодня сделать просто фетч) готовлю новое видео 😃😃

    • @oliverreviews8496
      @oliverreviews8496 3 ปีที่แล้ว +1

      @@marinakim2929 то есть выходит без указания второго аргумента он не выполняет ререндере, а смотрит, каково состояние переменной, которая хранит в себе ответ с сервера? Хм, интересно, буду пробовать, думаю полезно если нужно сразу отобразить данные. Надеюсь я все так понял)
      Спасибо! Вы супер!

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว +1

      @@oliverreviews8496 нет, вы правы, надо второй аргумент указывать)) иначе постоянно рендерится. Я потестирую ещё насчёт юзэффект, спасибо ☺️

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      @@oliverreviews8496 в общем если вы привязываете к кнопке, то рендер происходит каждый раз при нажатии кнопки, а при использовании useEffect при указании второго аргумента рендер происходит только если происходят изменения в этом аргументе

    • @oliverreviews8496
      @oliverreviews8496 3 ปีที่แล้ว +1

      @@marinakim2929 вау, приятно, что получается двусторонний диалог)
      Сейчас пишу как раз по ТЗ и использую в юзэффекте запрос😌😉

  • @vinothkumarv9722
    @vinothkumarv9722 3 ปีที่แล้ว

    Hi Marina, i hope your doing well.. your video i watched second video for react + node js connect
    but still i am getting error like this...
    if you don't min please help i will you my git repo link if you ok ??????????????????

  • @erickgeneric
    @erickgeneric 3 ปีที่แล้ว +1

    Awesome. Thank you

  • @hernanbphb
    @hernanbphb 2 ปีที่แล้ว

    you are cool, thanks for sharing

  • @danchristophersaldariega4642
    @danchristophersaldariega4642 3 ปีที่แล้ว

    what if the frontend and the backend are on different folders?

  • @jorgealbertogonzalezfalcon3452
    @jorgealbertogonzalezfalcon3452 3 ปีที่แล้ว

    Awesome !!!!!!

  • @mehrankhan1675
    @mehrankhan1675 3 ปีที่แล้ว

    Mam make a video on full form validation in mern stack

  • @saravanakumar.v6457
    @saravanakumar.v6457 3 ปีที่แล้ว

    Please make a video on the same topic but use next js app instead of react app. Because the "proxy" property do not work on next apps.

  • @Deep_880er
    @Deep_880er 3 ปีที่แล้ว +1

    thanks very much :)

  • @kalyanperla9767
    @kalyanperla9767 3 ปีที่แล้ว

    Thank you

  • @omkartaru7043
    @omkartaru7043 3 ปีที่แล้ว

    I have one suggestion for you just improve quality of video, use hd screen recorders pls!

  • @jeissonmonroy7496
    @jeissonmonroy7496 2 ปีที่แล้ว

    first time when i can learn this :`v, with a cute girl, thanks :)

  • @ganeshk4513
    @ganeshk4513 3 ปีที่แล้ว

    tutorial on reactjs with formik will be helpful , if you could post

  • @enkeegch
    @enkeegch 3 ปีที่แล้ว

    Can you please leave the name of the intro song 🙏🏻🙏🏻🙏🏻 I've been looking for it for more than a year now pleeeease 🙏🏻🙏🏻🙏🏻

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว +1

      😊phantogram - when I’m small

    • @enkeegch
      @enkeegch 3 ปีที่แล้ว

      @@marinakim2929 thanks love ❤🙏🏻🙏🏻

  • @caloriecoin_ceo7847
    @caloriecoin_ceo7847 2 ปีที่แล้ว

    You are beautiful and very good and easy exploration to understand code

  • @jordan.p51
    @jordan.p51 3 ปีที่แล้ว +1

    could you make a GitHub repository of the source code

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      Yeah I will))

    • @jordan.p51
      @jordan.p51 3 ปีที่แล้ว

      @@marinakim2929 thank you :)

    • @hannahkeith4753
      @hannahkeith4753 3 ปีที่แล้ว

      @@marinakim2929 did this source code ever get uploaded?

  • @waruna2119
    @waruna2119 3 ปีที่แล้ว

    Such a bebeautyfull software engineer. Wooh.

  • @19Sanji
    @19Sanji 3 ปีที่แล้ว

    Спасибо!

  • @rebazomarsoftwaredeveloper7811
    @rebazomarsoftwaredeveloper7811 3 ปีที่แล้ว

    you have a mistake in your code when using a router you need to write router(/users) not only / .........THank

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      😂kamuna.. i was a novice back then lol

  • @rationalpi6755
    @rationalpi6755 3 ปีที่แล้ว

    Loks like you just woke up in the intro

  • @herahadi
    @herahadi 3 ปีที่แล้ว

    i thought programmers has no life.. i have been wrong after watching this video.. lol you should add your cam on the corner side of the video when explaining the code :D

  • @sheheryarqazi1006
    @sheheryarqazi1006 ปีที่แล้ว

    love you

  • @dyegofduarte
    @dyegofduarte 3 ปีที่แล้ว

    cool

  • @adityamishra2033
    @adityamishra2033 3 ปีที่แล้ว

    CAn you please share the source code?

  • @maximk7816
    @maximk7816 3 ปีที่แล้ว

    your useEffect causes an infinite loop in browser

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      Yep.. perhaps you need to add a second argument like so useEffect(() => {},[argument])

  • @zaurhuseyn4432
    @zaurhuseyn4432 3 ปีที่แล้ว +1

    а почему не на русском?)российские или украинские же не говорят по-английски в видеоуроках))

    • @marinakim2929
      @marinakim2929  3 ปีที่แล้ว

      Может и на русском начну 😅

    • @zaurhuseyn4432
      @zaurhuseyn4432 3 ปีที่แล้ว

      @@marinakim2929 желаю больше подписчиков,крепкого здоровья и успеха🤗🌺

  • @prabdeepdhaliwal9725
    @prabdeepdhaliwal9725 3 ปีที่แล้ว

    So pretty and smart

  • @TheErudito
    @TheErudito 2 ปีที่แล้ว

    I love you

  • @MiSt3300
    @MiSt3300 3 ปีที่แล้ว

    you are very pretty and a programmer too! I want to move to Kazakhstan, please marry me!!!

  • @aza1797
    @aza1797 2 ปีที่แล้ว

    ком поддержки))

  • @johntravolta2228
    @johntravolta2228 2 ปีที่แล้ว

    Is this Russian accent ?

  • @dileepreddy354
    @dileepreddy354 3 ปีที่แล้ว

    I love u

  • @nikitahlinsky7455
    @nikitahlinsky7455 3 ปีที่แล้ว

    Милашка с:

  • @pavelgurinovich2032
    @pavelgurinovich2032 3 ปีที่แล้ว

    ой бой

  • @mickaelmohammed7991
    @mickaelmohammed7991 3 ปีที่แล้ว

    You are so beautiful... i love you

  • @ShubhamGupta-bk2rt
    @ShubhamGupta-bk2rt 3 ปีที่แล้ว

    You are too beautiful 🔥