Nuxt 3, Apollo GraphQL, and TailwindCSS Crash Course

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

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

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

    My friend!!! Thank you so much for this !

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

      Thanks buddy!
      I am happy that you like it!

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

    This is the best free software Ive seen. Respect.

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

      I really enjoyed building this project by using Nuxt 3 and the modules. And I am happy that you like it too!

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

    BROOO thankyou so much, this really helped and the tutorial was really easy to use as well :)

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

    Nice tutorial. Wanted to know how to get Apollo into Nuxt3 and this was what I needed.
    Tip though, instead of passing all the individual properties into the character card. eg name, image, location etc. You can just pass the character object, saves a whole lot of typing and makes your code look cleaner too.

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

      Thanks for the kind words!
      Also, good tip!

  • @HungTran-kt4nv
    @HungTran-kt4nv 2 ปีที่แล้ว +1

    do more of this!! this is amazing

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

      Thanks! I will do more! Do you have some ideas on what topic I could tackle next?

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

    Thanks for shared!

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

    Exactly what I was looking for, thank you. Um, have you noticed that when you deployed the dead aren’t grayscale. 😂

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

      Hey, I am glad you liked it!
      I just checked that and you are right. I did some research and it seems that Nitro (that is a server working under the hood of Nuxt) is detecting a hosting platform and selecting image provider to Vercel which may not support modifiers like Grayscale.

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

    Nice tutorial.... Very helpful

  • @vagelisd6508
    @vagelisd6508 9 หลายเดือนก่อน

    Amazing video

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

    Hello, i did the same step but every time I reload the page, I got undefined in my data?

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

    Thx you for this tutorial. It helpt me setup this stack a lot. I like it that you just started the project and ran into problems together with us.
    Strange that nuxt image is not working correctly with nuxt 3. Grayscale isn't working as it should and I can't find a solution for it. Passing an empty object (or undefined as I did) isn't the way it should be off course.

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

      I am glad that you liked the tutorial.
      AFAIK, the nuxt image 1.0.0 is planned for the next weeks so maybe this issue will be solved by then :)

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

    Worked, thx

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

    thank you bro thank you

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

    Hey, this may sound odd, but are tailwind snippets not working on vs for anyone? did you find a fix?

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

    it work on my pc thx bro vеry much

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

      Welcome 👍
      There is no better feeling than when the code works on someone else PC ;)

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

    Not bad. I liked the bot. I launched it, but I don�t understand how to set it up

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

      Thanks! Could you tell me more about your issues with setting up?

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

    Alright, this looks great,
    One question, though: Why are you not using the vue lifecycle hooks with mounted, for instance? Or even the export defaults statement. I was under the impression that the query should be on a setup or mounted hook, but it works even without the exports defaults, and I am confused why

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

      Hey,
      Good question! In general, the composables such as `useAsyncQuery` are wrappers around composables like `useAsyncData` that are triggered in the certain lifecycle hooks. Thanks to that, you dont have to trigger them from inside Vue lifecycle hooks while it will work similar. Also Because it is using the useAsyncData, the call is done on the server and the data is then used to hydrate the html :)

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

    Hey i have a question: Iam using shopify storefront api with nuxt and apollo. but i dont want to expose the storefront api access token to the clinet (in the X-Shopify-Storefront-Access-Token header). is there a way to have apollo client in nuxt server middleware to pass the data to a custom route?

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

      Hey,
      I think that you would need to create your custom logic around apollo in a server middleware where you could define a private runtime config (that is accessible only on the server side). I am using such solution in my nuxt security module for passing values for basic auth github.com/Baroshem/nuxt-security/blob/cd3ebb9f52aaf1b97e735b6ba2b7d197d3746f6f/src/module.ts#L126

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

      @@jacobandrewsky Thank you so much for your response. When I have apollo on the server middleware , the api calls will be requested from my server ip not from the client or? and also the caching would be server side so for all users basically the same cache. Am i right or did you ment something different? :D

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

    Nice tutorial. Thankyou so much. But I have a question. Is it possible to connect all this with a store? Pinia for example? Thank you.

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

      Hey, thank you so much! I havent tried connecting it through a pinia store and to be honest I don't think that it is a good idea. When using the default approach of the module you can query the API with GraphQL directly from the component/page/layout. You can however store the result in the pinia store and have access to it across your app. But you can achieve the similar result by using the composables themselves :)

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

    that is awesome ma men, can you make another tutorial to mutate data when button is clicked??

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

      Hey, I dont think that this functionality requires a separate video. It is just about sending a mutate query on click event with some data from the input for example. If you like, I can provide you some links and other videos on how to achieve that :)

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

    When I fetch query with Nuxt I can see data but when I restart server it doesn't show data anymore. Any suggestion? I use nuxt3 with Strapi.
    Thanks for the video!

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

      Hmm, that is quite strange error. Could you report this issue to nuxt github repository? We could help you from there better :)

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

    I dоwnloaded everything is okay

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

    This is the best free software Ive seen. Respect.