Adding a nuxt api middleware | Zero to Deployed app with nuxtjs

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

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

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

    This is awesome, thanks! There are literally next to no tutorials here on TH-cam that talk about how to use Nuxt's server middleware, even though it opens up a whole world of new functionality for Nuxt-based applications. Would love to see more videos from you on more complex server middleware implementations, such as handling Stripe payments and webhooks. Thanks again!

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

      Awesome feedback. I will have to add some more episodes to this series 😁👍

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

      NuxtJS used to just to let you just install express when creating the application through the CLI, but for some god-forsaken reason they thought we were literally too stupid to use it correctly so they removed it and then made it more complicated and then didn't explain themselves beyond a pithy single page in their documentation which doesn't actually explain anything.

  • @asim-gandu-phenchod
    @asim-gandu-phenchod 3 ปีที่แล้ว

    Liked + Subscribed. Hoping to see more stuff in the future

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

      Thanks, much appreciated 😁 I'm working on new videos all the time I hope that you find them interesting 😅

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

    Nice fast video ... suggestion : maybe some tokens on the middleware .. that's why i watch it .. no tokens there .. but at least now i now where to put a global token to the app ;)

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

      Thanks. What kind for token are we talking about? :)

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

      @@lindblomdev hydra oauth2.0 ... to set headers for a secure request via graphql

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

      Your taking about the front end now, not the api, right? You could store your token in local storage or session storage, just beware of incognito mode, maybe fall back to a cookie in that context.

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

      @@lindblomdev yeah i realized that after some development ... gonna set passport on nuxt and use a login .. the front will need to fetch data without any token ... for now ... i'm tryin to dev a nuxt for back and front end for reactioncommerce .. check it out

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

    Thanks for the great tutorial! Maybe a more detailed introduction of what the solution is for would be welcome.

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

      Thanks. I agree, many people have asked why I do some things and why. The idea (which I am bad at commuting) was to get you into a place where you have a project set up with frontend, backend, hosting, db and deployment pipeline, so that you could focus on your application. I have adjusted my process for making videos now and make a lot more pure content work up front. No videos have been released yet that use this new process. Again, thank for your feedback.

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

    Excellent video, thanks.

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

    More please! Thanks!

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

      On it! 👍 Don't forget to like 😉

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

    Hi, can you make a sample where it will parse the body of a post request?

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

      its a connect pipeline so you should be able to use a connect body parser middleware for connect.

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

      I have same question. When i try to make a post request and send formdata to backend. I try to get back the formdata form req.boby. And i got undefined. Can we have a sample how to post formdata?

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

    Thanks,.. this is so great,. but this is posible to upload a file??
    i try it also to connect it using axios ang its work

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

      Sure its possible. I don't know if you are stuck trying to send the file from the client or reading the data on the server. If it's on the client you need to use multipart/formdata to post it. On the server you can try to put www.npmjs.com/package/connect-form in the server Middleware pipeline before your handler and then do what the documentation for connect-form says.

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

    Awesome video 👌

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

      Thanks. Glad you liked it 😁👍

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

    This is awesome i want to know to to deploy nuxtjs to server like cpanel and others

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

      I haven't used cpanel in years so I don't have any pointers to give there.

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

    Thank you so much sir,... Make a video that can upload video file please,..

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

      I replied to your other question with some possible pointers. I will probably not make a video about uploading a file. Surly there must be both video and text tutorials out there (better than what I would have done) that explains both how to send it from the client and how to handle it in node.

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

      Okay, no problem, I will try it in my own, with your possible pointers. Thank you so much your awesome. 👍♥️💕