Why Use Nuxt JS 3 Beta?! (Vue.js 3 With Nuxt Tutorial!!)

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ส.ค. 2024
  • Nuxt JS 3 Beta has just been released? Should you use it in your next project? Does it hold up to the hype? In this tutorial we'll create a quick app and show the features of Nuxt 3.
    👉Check out my last video on Vue 3 All-In-One Series
    • Vue 3 All-in-One Tutor...
    Need some mentoring, help with a project, get a career in tech, level up your skills? Check it out
    👉mentorcruise.com/mentor/erikh...
    👉 Sign up and get free Vue cheat sheets and updates!
    www.vuecourse.tech
    Need to Learn Vue or Nuxt? Check out my courses below!
    bit.ly/2LalQka - Learn Nuxt.js Course!
    bit.ly/3aiYe8s - Quick Starter On Vue 3
    bit.ly/2OETt0M - Full 6 week course on vue!
    🗂️ 🗂️ 🗂️
    Make Sure To Check These Courses From Wes Bos ! 💻
    Begginer JavaScript - BeginnerJavaScript.com/friend...
    React For Beginners - ReactForBeginners.com/friend/...
    Advanced React - AdvancedReact.com/friend/HANC...
    0:00 Introduction
    0:27 What is Nuxt JS 3 Beta
    04:13 Learning About Vue 3 in Nuxt
    07:00 Adding a Server
    13:18 Creating Pages and Dynamic Routes
    17:25 Adding layouts, default and custom
    21:50 Adding public folder
    22:45 useFetch and useAsyncData tutorial
    27:54 Creating TV Search App
    31:59 Conclusion
    Links
    github.com/ErikCH/Nuxt3BetaTu...
    v3.nuxtjs.org/

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

  • @dev-am1303
    @dev-am1303 2 ปีที่แล้ว

    Thank t=you Erik! well explained, I really enjoyed learning Nuxt 3 with your instructions. And it is my first time using it.

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

    i have so much to learn between vue and nuxt. It's the most interesting thing to learn right now. thank you again for this amazing show of nuxt.

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

    Eric you are always ahead of the game thanks for doing my homework haha

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

    Thanks for sharing! Learned a lot ❤️

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

    found this really useful thanks!

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

    Thank you Erik. Now you are my favorite DEV TH-camr. I did not watch this video yet. But I am sure after watching Nuxt 3 will be easy to me.

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

    I'm really wating for this video. Thanks

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

    you explained it so well. Thank you Erik! :-)

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

    this was cool to code along I like these kind of videos. It's sets me up with a nice template work experiment with further

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

    Great video Erik. You earned a subscriber! Please what theme are you using?

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

    thank you brother 😉 👍

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

    21:20 Basically that error are shown by Vue Router same way in non-nuxt projects, without having single root element page template even if you'll setup transition it wont work for pages without single root element. That rule applies only for pages, components can have multiple root elements in most cases without any problem like that.

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

    Thanks 👍

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

    Can you talk about Nuxt3 state management next? Curious if the new useState functionality has persistence and can really replace vuex?

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

      would love to have an answer about that!

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

    Almost 100k 🔥🔥

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

    Great thumbnail... stay classy Impact 🎉🌟

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

    I was waiting for this!

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

    Awesome! Can you make a video of what state management looks like in Nuxt 3?

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

      Yes I can, I'll look into it!

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

      I wonder if you can tackle persisting data after page refresh as well when discussing state management. That would be awesome.

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

      @@sania3631 use pinia - i just got it to work

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

      @@ProgramWithErik any more nuxt 3 nuggets as most of them green checkboxes are green and checked

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

    Great! you help me save a lot of time

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

    Это реально магия. Для меня это что-то новое. Спасибо за инфу. Лайк и подписка

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

    Very nice. I wonder if there are plugins to make the server-side less cumbersome. Hitting req and res directly isn't very optimal.

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

    thanks a lot

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

    This is a pretty awesome Nuxt 3 tutorial, Nuxt 3 is very powerful, really impressed, can't wait to dive it 😎

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

    Really nice intro, please can u make an in-depth video of how to best handle api calling between components and vuex store in ts as well

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

    AWESOME!

  • @Ilya-di4ok
    @Ilya-di4ok 2 ปีที่แล้ว

    Wait for it.

  • @jimmyj.6792
    @jimmyj.6792 2 ปีที่แล้ว

    Nuxtify the world ❤️

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

    Great

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

    Thanks, which font you are using for vs code?

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

    finally yay!

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

    Nice video! But I have a question about data fetching from api, so when we need to request web apis from other server side, we have to create a new file in server/api? Can we just request in a .vue file directly?

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

    Nice we can use optional changing in template now ? It doesn't work in Nuxt 2 from what I remember

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

    Thanks ! But I did not understand the part about /api/test ? Why wouldn't you use an useAsyncData directly in the page like in Nuxt 2 ?

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

    How about review latest Quasar?

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

    Hi, do you know how to access the "$route" object from inside the block?
    You accessed it from the template using "$route".

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

      "const route = useRoute()"

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

      Yup see @horace comment!

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

      @@ProgramWithErik Thanks for your answer, I really like your videos, I follow you, thanks for sharing what you know.

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

    Amazing content, clear and objective. But I fear composition api just turned vue into react. Became confusing and opened the code to bad practices.

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

      couldnt agree more...

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

      It Turned vue into svelte ^^

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

    Is it safe to hardcode api tokens in the server files/component ? Or can those file's code be exposed from clientside ?

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

    For Vue u need nodejs only on development, you can deploy it as a Js/html foldder on any hosting after building the project. Is this also true for nuxtjs ? Or do you need nodejs on the hosting as well ?

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

    Will there be named, router and anonymous middleware? From the docs it seems to be only for server-side. Been searching it but couldnt find any. Thank you!

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

    Can you do a course on Nuxt Js

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

      Yes, I'll be doing a newer course. I do have an older course if you like to check it out. school.programwitherik.com/p/create-awesome-vue-js-apps-with-nuxt-js

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

    Is there any replacement for $nuxt.$loading.start() ?

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

    Vscode theme?

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

    Hi Erik, I got this message after using script setup:
    [nuxt] [request error] Cannot read properties of undefined (reading 'setup')

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

    How to using vuex/store in nuxt 3?

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

    What's with the nuxt3 now? roadmap was about maybe stable @dec 2021 but not a single news since @oct 2021.

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

    Changing the layout didn't work with the current version of nuxt js I tested.
    Here what I did if this becomes helpful for someone
    definePageMeta({
    layout: "custom",
    });

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

      Thanks! I'll be going over that in a new video soon!

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

    Why do you have to manually restart the server so often? that defeats the whole purpose of hot-reloading. Is this a Nuxt issue? Can it be fixed?

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

    Svelte VS Nuxt?

  • @0x4d46
    @0x4d46 2 ปีที่แล้ว

    Woah, what command was it that replaced the quotes with backticks at 11:51?

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

      If you're in vim mode you can do cs'`

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

    um salve do brasil

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

    I really don`t like the way how nuxt3 handles custom layouts when using script setup. I need open another script just because for custom layout and all my logic works again in another script?!
    Maybe they are going to improve or think about it later, how do you guys think?

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

    Is there any github code

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

    How to desctructur toRefs in ?
    return {
    ..toRefs(state)
    }

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

      There is no return in script setup, everything is accessible directly

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

    vscode theme name? nice vid

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

    Man, I'm having a hard time generating static website pages in Nuxt 3. On nuxt 2 you do nuxt generate, how do you do that ibn Nuxt 3?

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

      It’s not possible at the moment. Crazy, SSG is the only Feature why we need Nuxt, otherwise we could do this with plain Vue 3.

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

    one thing I don't understand is ":src="show.show?.image?.medium" the "?." what is that? what is the name of that? Thanks

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

      in typescript or es2020 or later javascript, you can access a member of a object only if that object exists, so it prevents "cannot read xxx of undefined" | "cannot read xxx of null" runtime errors.Here, what this basically does is first checks if there's a "show" member in show, if there i,s then checks if there's "image" member in show, then only access medium if image exists(also indictes that "show" existed).

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

      @@nethsarasandeepaelvitigala135 thanks a lot for your answer! What a nice (new) feature

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

      @@eMeRiKa You're welcome, btw there are lots of new features in JS nowadays .You can safely use them if you create a webpack(or any other bundler) and Babel workflow.And most are also supported in Typescript.JS is getting better by the day!!

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

    You know what would really help... 57 more JS frameworks/libraries. Do we think we can have that by the end of Q4?

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

      Lol salty much?

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

      There is only in server-side framework for Vue which is the most starred client-side framework. There is only 4 major client side framework: React, Vue, Angular, Svelte

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

    we are just going to hardcode GIRLS

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

    Look, you can't be a big fan of both react and Vue at the same time

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

    почему ты говоришь по-англиским, а названия про видео написано на русском язике

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

    These javascript framework names get dumber and dumber