Node and React JS Tutorial: Website Setup with Frontend and Backend

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 87

  • @ahhhafwe6161
    @ahhhafwe6161 2 года назад +42

    In version 6, Switch got replaced by Routes. For new people watching this, replace
    import { BrowserRouter as Router, Switch, Route} from 'react-router-dom';
    with
    import { BrowserRouter as Router, Routes, Route} from 'react-router-dom';
    and replace your
    with

    • @StrongHeartGaming
      @StrongHeartGaming 2 года назад +6

      also 'component' inside the is replaced by 'element' , had to check 30 min for that one :)

    • @bryansie1047
      @bryansie1047 2 года назад +10

      to be more precise you shhould write it like this ""

    • @houcemsings3783
      @houcemsings3783 Год назад

      Thank you!!!

    • @houcemsings3783
      @houcemsings3783 Год назад

      thank you! ♥@@bryansie1047

  • @x1expert1x
    @x1expert1x 3 года назад +7

    wow dude you saved me on a final, I love how you know how important it is to leave absolutely zero holes in your explanation. you're amazing thx

    • @kamrynfinn1248
      @kamrynfinn1248 3 года назад

      You probably dont care at all but does any of you know a way to get back into an instagram account??
      I stupidly forgot my login password. I would appreciate any tips you can give me

    • @nikolaimaximus7393
      @nikolaimaximus7393 3 года назад +1

      @Kamryn Finn instablaster ;)

    • @kamrynfinn1248
      @kamrynfinn1248 3 года назад

      @Nikolai Maximus Thanks for your reply. I found the site thru google and im in the hacking process atm.
      Takes quite some time so I will reply here later when my account password hopefully is recovered.

    • @kamrynfinn1248
      @kamrynfinn1248 3 года назад

      @Nikolai Maximus It worked and I now got access to my account again. I'm so happy!
      Thanks so much, you saved my ass :D

    • @nikolaimaximus7393
      @nikolaimaximus7393 3 года назад

      @Kamryn Finn happy to help :)

  • @charlesxstorm
    @charlesxstorm Год назад +1

    This was exactly what I was looking for, other channels were discussing template engines. Thanks for the clear explanation.

  • @yuotcikom
    @yuotcikom 2 года назад

    I was stuck over my React Js project. I tried connecting it with Node js but nothing works. After watching this tutorial, I got the concept and I can finish my project soon. I can't wait to watch the Database part too.
    Thank you so much.

  • @peterhague6648
    @peterhague6648 8 месяцев назад

    Exactly what I've been looking for, thanks so much. Been trying for a week to solve how to add a MongoDB backend to an Excel add-in, I'm hoping this will be the answer: add React to the add-in frontend, then use that in the mini browser that Excel opens to push and pull data to and from the db via Express. Fingers crossed I'm understanding things now, thanks again.

  • @146vj
    @146vj 3 года назад +8

    This is what exactly I was looking for .. excellent topic coverage and explanation 👍
    Thanks

  • @BrianKeeganMusic
    @BrianKeeganMusic 2 года назад

    Best video I've seen on connecting the frontend and backend. It finally clicked for me.

  • @pvn128
    @pvn128 3 года назад +2

    Codrkai, those tutorials you make are awesome... excellent to explain. That's what exactly I am looking for. Love it.

  • @louloulx1
    @louloulx1 2 года назад

    Thank you I was struggling with understanding front to back routing but your video helped me alot.

  • @priyankaKumari-nc8cu
    @priyankaKumari-nc8cu 2 года назад

    Best video. Thanku alot. I couldn't have done it without this explanation 🥺

  • @tylernguyen3564
    @tylernguyen3564 2 года назад +1

    I love how you take the time to explain. Subcribed! Keep up your good work! 😉🙌

  • @bozoskopljakovic5508
    @bozoskopljakovic5508 2 года назад

    Thanks a lot, this is the best explanation putting together backend-frontend.

  • @dikachinwankwo1935
    @dikachinwankwo1935 7 месяцев назад

    Wow!!! I saw no teaching like this!!

  • @StockWithSayee
    @StockWithSayee 2 года назад

    Great video please make more videos using node js and react

  • @akuakana7364
    @akuakana7364 3 года назад +5

    If anyone is having issues with fetching data and it not displaying your info, you need to return each object in the Array.prototype.map function as well.
    *so instead of:*
    items.map(item => {

    {item.name}
    {item.message}

    })
    *you should write:*
    items.map(item => {
    *return (*

    {item.name}
    {item.message}

    *)*
    })

    • @aaronroy8998
      @aaronroy8998 2 года назад +1

      Could anyone help?? I have tried what was done in the video and the snippet of code you wrote and it still won't display :/.. Did you have your return, within another return or was that the only return statement in the Function??

    • @Abdullah-vp2tl
      @Abdullah-vp2tl 2 года назад

      Actually in the first one if you replaced the curly brackets with brackets it will work just fine

    • @joshuagrothem2596
      @joshuagrothem2596 2 года назад

      @@Abdullah-vp2tl Thank you Abdullah this was my issue. A clutch 5 yr old comment

    • @mauroruffo
      @mauroruffo 2 года назад +1

      @@aaronroy8998 For anyone else with this problem I suggest you restart your frontend and backend server to refresh the frontend's package.json

    • @Morgwic
      @Morgwic Год назад

      @@mauroruffo Thanks!

  • @minangkaracr
    @minangkaracr 3 года назад

    Thanks dude, this is what exactly i looking for

  • @bastaty8241
    @bastaty8241 3 года назад

    Thanks for this nice and affordable tutorial

  • @huyoquang188
    @huyoquang188 3 года назад +1

    Love this video! Hope u drop new tutorial video soon

    • @codrkai
      @codrkai  3 года назад

      New video is up, enjoy :)

    • @huyoquang188
      @huyoquang188 3 года назад

      Codr Kai thank u so much. I just started to learn react and node and your video helped me a lot !!

  • @mrmadness69
    @mrmadness69 8 месяцев назад

    Thank you mate this is really helpful

  • @oluwaseunolukayode9125
    @oluwaseunolukayode9125 3 года назад +2

    when is the next video coming up fetching data from database. i love your explanation and i know you will even do it more better

    • @codrkai
      @codrkai  3 года назад +3

      New complete video is up :)

    • @laurentiumanea692
      @laurentiumanea692 11 месяцев назад

      can you put a link of the continuation please?
      @@codrkai

  • @LampShadesMusic
    @LampShadesMusic 3 года назад

    there is definitely no no-demon at my house?
    good one, thanks.

  • @berk473
    @berk473 2 года назад

    Great tutorial, love it!👍🏽 Keep it up

  • @Kevpimp5
    @Kevpimp5 2 года назад +1

    I had a problem with ${PORT} not being blue or using the constant. It appears there are two types of apostrophes. My VS is only making ' ' where as your is ``. Any idea how to fix? Probably some addone. thanks

  • @tatendamuzenda8442
    @tatendamuzenda8442 Год назад +1

    awesome video

  • @WayneMulovhedzi
    @WayneMulovhedzi 2 года назад

    Your the best bro 🔥

  • @koteswarMaddhur
    @koteswarMaddhur 2 года назад

    clear explanation looks clean. Thanks.

  • @chazdawg4340
    @chazdawg4340 2 года назад

    Amazing explanation love it man

  • @linoymiz22
    @linoymiz22 2 года назад

    You've made my day! thanks!

  • @maherriyadh9144
    @maherriyadh9144 2 года назад

    Thank you for the video, do you have any future videos about nest.js?

  • @shubhamk840
    @shubhamk840 3 года назад

    Thanks for the video codr kai

  • @kaybee2596
    @kaybee2596 2 года назад

    Hi Awesome video! What's the continuing to this video?`cant find it among your videos..

  • @ghassanjenainaty4212
    @ghassanjenainaty4212 3 года назад

    Thanks for your efforts to make this youtube tutorial but i didnt had the chance to watch your previosu tutorial. what is its name please? I guess i cant follow this video without knowing the previous one

  • @MrBeastFan_Gyak
    @MrBeastFan_Gyak 2 года назад

    hey thank you for video . how can we deploy this app ? maybe we need to run npm build ?

  • @fredrikolsson3895
    @fredrikolsson3895 3 года назад +1

    Great tutorial! Thank you

  • @EtienneLawlor
    @EtienneLawlor 2 года назад

    I am having an issue with the routing. I am using the google chrome developer tools and in the console i get this error
    Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
    I looked at the response for the router call to the "/tweets" endpoint and it returns a 304 status code, and the response is not JSON. It returns the HTML from the index.html file.
    Am I missing some additional part of the configuration for this tutorial? I tried to add some logging on the first line of the router.get('/tweets, (req, res) => {}) in handler.js, but i never see anything getting logged to the console where the server code is running. So I am suspecting it is some configuration step that was not set up properly.

  • @mmshilleh
    @mmshilleh 2 года назад

    very well done my man

  • @AbhishekVerma-dv1jd
    @AbhishekVerma-dv1jd 2 года назад

    Great stuff. Thanks!

  • @Gayanasenarathne
    @Gayanasenarathne 3 года назад

    Great tutorial

  • @EyitemiUnfiltered
    @EyitemiUnfiltered 3 года назад

    Awesome tutorial!!!

  • @raviparekh027
    @raviparekh027 11 месяцев назад

    with proxy you can call single rest api, what if we have multiple domain to call?

  • @CodingGimmic
    @CodingGimmic 11 месяцев назад

    Can you zoom in more in your videos. It's really hard to follow through with the small texts

  • @sukumarrect
    @sukumarrect 2 года назад

    Hi, My application has node JS backend(to connect to firebase admin) and react front end. My another backend is Spring Boot rest API. Using pom.xml, i am able to start my react front end(npm) and spring boot back end application also. Can you please assist how to start my node js(npm run server)?.

  • @veronikasobolevskaia8806
    @veronikasobolevskaia8806 3 года назад

    why can't I read data from "/ " request to server ? I set up cookie and it works on the backend, but react doesn't go there , it only shows the frontend route

  • @achillesvlogs9393
    @achillesvlogs9393 3 года назад

    Hi, when i run command to start both server & client using concurrently --kill-others-on-fail \"npm run server\" \"npm run client\" i got these error => 'concurrently' is not recognized as an internal or external command,..how should i resolve this issue!!can u help me with this??

  • @benriddle5487
    @benriddle5487 2 года назад

    I'm watching 2 years later but the Switch import seems to be throwing an error for me. Has it changed to something else now?

  • @ashishdakey5797
    @ashishdakey5797 3 года назад +1

    Good job bruh!!!

  • @mustafacan1807
    @mustafacan1807 3 года назад

    very nice explanation...

  • @deivide5374
    @deivide5374 2 года назад

    Make more like this!

  • @Abdulkadir-vb3vj
    @Abdulkadir-vb3vj 3 года назад

    Thanks a lot man. And for the components, I think "... import React from "react" ..." is not needed.

  • @sjasjot123
    @sjasjot123 2 года назад

    Anyone have an issue with getting the text to display on front end? The welcome message and tweets are not showing up for me.

  • @melikekozan7711
    @melikekozan7711 2 года назад

    thank you soo much

  • @ferrr5124
    @ferrr5124 2 года назад

    Thank you.

  • @kagishophahlamohlaka2306
    @kagishophahlamohlaka2306 3 года назад

    I like style brother!!!!!

  • @mr.roulette7537
    @mr.roulette7537 2 года назад

    So good. SUBBED

  • @kohearon
    @kohearon 3 года назад

    Im a little lost on how the the component Tweet.js is able to run line 12 (in the Tweet.js component file) where it is fetching the '/tweets' from the backend. Is this because you have installed express globally if you dont install globally would you need to install in the front end as well and as they would be different installations in different folder directories would it still interact properly ?

    • @StrikerFeed
      @StrikerFeed 3 года назад +1

      You able to run that code if you place the proxy inside your front-end package json. Or you can manually write whole server route url inside fetch function.

  • @krishnamrajuch9687
    @krishnamrajuch9687 3 года назад

    Thanks man

  • @bycreator2
    @bycreator2 3 года назад +1

    how can i host this??

  • @monksu1972
    @monksu1972 2 года назад

    Thanks

  • @manishd4580
    @manishd4580 Год назад

    How can i upload this on cpanel

  • @mszxyzdev
    @mszxyzdev 2 года назад +1

    24:07

  • @pritykumari124
    @pritykumari124 3 года назад

    Hii can you upload next video

    • @codrkai
      @codrkai  3 года назад

      New video is up, enjoy! :)

  • @oooigiii
    @oooigiii 3 года назад

    Obrigada pelo video

  • @JanGoesLive
    @JanGoesLive 3 года назад

    How can I deploy this?