NextJS 14 - How to FETCH DATA, SERVER API Routes

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

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

  • @BrendonGruis
    @BrendonGruis 7 месяцев назад +1

    I really like the straightforward nature of this tutorial. Way to stay on task and show how to do the thing concisely.

  • @devid2030
    @devid2030 10 месяцев назад +1

    Nice tutorial to start with NextJs

  • @User-wp8sh
    @User-wp8sh 4 месяца назад

    thank you very much! it was straightforward which is easy to understand. thank you.

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

    wonderful tutorial ... plzz continue this.

  • @legadax1716
    @legadax1716 10 месяцев назад

    Needed this just now. Thanks mate 😊.
    Woyld love for you to do a tutorial where you show getting data and allowing them be in different pages. For example. If i had a side bar with profile and dashboard. How to make the data pass to the 2 pages without having to necessarily call the API again so that its very fast navigating.

    • @codrkai
      @codrkai  10 месяцев назад

      Thanks for the input! Stay tuned, I'll have more out 🙌

  • @daniellchukwu
    @daniellchukwu 9 месяцев назад

    Love the intro 💪

  • @AndresMartinez-se9zl
    @AndresMartinez-se9zl 6 месяцев назад

    Hey, what is the difference between router handlers and api routes, and which one can i use in a next js 14 app?

    • @codrkai
      @codrkai  6 месяцев назад

      This is part of the Next JS 14 tutorial series. Check out the first video which goes through all the basics 🙌

  • @محمدحسینمسلمی-ح2ذ
    @محمدحسینمسلمی-ح2ذ 9 месяцев назад +1

    some people used to set GET(req,res), if you use "res" in it you CAN NOT use {params} too, you'll probably get and error!(params is undefined)

  • @antwarior
    @antwarior 3 месяца назад +1

    can you please do a video on setting up a form and getting the users details, authenticating their details and then submitting that info to the database, i have been watching your videos for 2 days and i am still kinda confused on how that transaction works, and by the way, i think its best to do the videos in a way where you show how to do it the production way and then show other ways, that would make it a lot easier and be great way for me to learn, follow along and finally put something out for production at the same time @Codr Kai

  • @bhn1997
    @bhn1997 10 месяцев назад

    Thank you!

  • @John-wx3zn
    @John-wx3zn 4 месяца назад

    Thank you.

  • @ashwinmanghat4416
    @ashwinmanghat4416 6 месяцев назад

    But doesn't it mean that the slugs are open and accessible to anyone?

  • @mxsniper223
    @mxsniper223 10 месяцев назад

    thanks man

  • @blabla-kk8bl
    @blabla-kk8bl 8 месяцев назад

    bro can you make a todo app with next js with external api fetch , typescript would be more related if you can.

  • @EventLoopHero
    @EventLoopHero 10 месяцев назад

    but it will now work after deploy

  • @javisartdesign
    @javisartdesign 12 дней назад

    Kinda strange using slugs for APIs. I would basicalle define all structure like if I was doing an OpenAPI specification instead

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

    Idk why they don’t update the docs. But great tutorial

    • @codrkai
      @codrkai  8 месяцев назад +1

      If you go to the NextJS website, make sure to select the "App Router" from the upper left dropdown to see the new docs 👊

  • @farzad5128
    @farzad5128 5 месяцев назад

    lol, now main issue is how to get data from db in js file :)) u used static json array

  • @irule10338
    @irule10338 6 месяцев назад

    Fetching to an outside url, in your example dummy.json/products didnt work for me :(

  • @HimanshuSingh-qf6ri
    @HimanshuSingh-qf6ri 9 месяцев назад +4

    Use typescript

  • @محمدحسینمسلمی-ح2ذ
    @محمدحسینمسلمی-ح2ذ 9 месяцев назад

    some people used to set GET(req,res), if you use "res" in it you CAN NOT use {params} too, you'll probably get and error!(params is undefined)