How to use MongoDB/Mongoose in Nuxt 3 | Nuxt3 Database Integration

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

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

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

    Thank you so much, i am beginner in Nuxt 3 and i was trying to connect mongoDB for my app. ¡Thanks!

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

      You are welcome. Consider joining the discord server :P

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

    Thanks for the clear, straight forward guide. Massive help!

  • @nirajparmar1772
    @nirajparmar1772 10 หลายเดือนก่อน +1

    Sir,
    It would be of great help if you can do more tutorials on nuxt 3 with mongodb full stack projects with deployment... thanks in advance

  • @Michael-dp7by
    @Michael-dp7by ปีที่แล้ว +1

    Thank you for the tutorial! All the best

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

      Thank you! You too!

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

    I'm very much excited for upcoming tutorials and projects. Thankyou

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

      Glad you like them!

  • @riyad-appscode
    @riyad-appscode ปีที่แล้ว +1

    Awesome content. Keep doing..

  • @Brizonys
    @Brizonys 7 หลายเดือนก่อน

    Thank you man, very good example ! God bless you !

  • @emanuelasandei515
    @emanuelasandei515 7 หลายเดือนก่อน

    I love you man, all the others tutorials that i seen didn´t help me.

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

    You helped me a lot!! Thank you so much

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

      Glad I could help!

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

    Great video. Thank you. Looks like you have a bunch of ideas for new videos. I second the comment about a new way of doing Auth (replacing Nuxt/Auth)

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

      Great suggestion!

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

      I agree. We need that. Thanks

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

    Nuxt will automatically read any files in the ~/server/plugins directory and register them as Nitro plugins. This allows extending Nitro's runtime behavior and hooking into lifecycle events.

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

    Thank you Jahid. This helped a lot.

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

      Glad it helped

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

    Can we access the mongoose based DB, from server components ?

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

    hello again. instead of index.post.ts could i use index.post.js?

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

      Of course.

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

    So, to add a user, just create a file named index.post.ts in the users folder and write the logic?

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

    I ran into the following problem that I could not find a solution for
    This error
    Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"

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

    how to write the useAsyncData/useFetch function so that the api data is loaded on F5, and not just on a click on the client route?

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

      It's quite easy the useAsyncData/useFetch gives you a refresh function. Which you can call inside keyboard keydown listener for a particular key.

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

    thank you for this video

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

      My pleasure

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

    Hi Jahid. Thanks for your hard work and amazing contents.
    However, I'm really struggling with the populate funcitons in the mongoose queries. Have you encountered anything related to that? Error logs keep telling me that the schemas aren't registered, I tried to import the schema models in the scripts, it keeps failing.

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

    Thank you. Appreciate your videos. They are really helpful to me! I'm subscribed :)

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

      Thank you. Comments like these keep me motivated to publish more content.

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

    is there any update about the next video showing how to structure mongoose models, etc?

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

      Sure thing. I am planning to create a full course for it.

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

      @@jahiddev Also a course with Nuxt3, mongoose, CRUD Operations and maybe navigation guards and / or authentication would be the best one :) Any estimation on the date for that?
      thanks

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

    Hello,
    Thank you for this video. Could you show how to deploy such an application on Vercel or Netlify because it seems to me (I'm not sure, I didn't understand everything from where my request) that it is then necessary to use and configure the serveless functions of the latter, which is not necessarily obvious.
    Thanks in advance.

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

      I have already deployed a Production app. You don't need extra configuration. But keep in. mind mongodb can't be installed on serverless function so you have to use Managed mongo instance like Atlas.

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

      OK i understand, thanks for your answer

  • @Didier-cu6cb
    @Didier-cu6cb 4 หลายเดือนก่อน

    thank you so much

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

    Hi thanks for the tutorial. I just have a question. Did you already had the server created on 27017 port?
    Because for me it's not connecting, so I guess something is missing for me.
    Thank you!!

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

      Yes Mongo was already installed and running on the default PORT.

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

    Really helps me because the module nuxt-mongoose was not working 👍

  • @boss-rus
    @boss-rus ปีที่แล้ว

    thanx. good video :)

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

    Thanks for the great video. Do you know if we can use Nuxt Server as a replacement for a Node/Express Server? At the moment, I have a Nuxt App as the Frontend and Node/Express as the backend. Now I'm wondering if there is a need for a separate backend or if I can just use Nuxt for both.

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

      For small application i would recommend Nuxt server.

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

    Hey! Please upload the Nuxt with Supabase tutorial. I just can't get my head on to it alone. The documentation is so poor on the site.

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

      Currently Recording a full stack project using nuxt3, supabase and tailwind. Join the discord for updates related to upcoming videos.

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

    I was thinking about possibility of using Nuxt 3 + Pinia + Ionic + CapacitorJS for cross-platform app. But the resource is very limited right now. Can you please make more sample project of Nuxt 3 + Ionic + CapacitorJS? Thank you!

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

      I think you can't use Nuxt 3 with CapacitorJS however you can use vue 3 with it.

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

      @@jahiddev It's possible to use Nuxt with Capacitor. I tried it. But Nuxt with Ionic does not work out of the box.

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

    Great Aweswome... Please make video on NUXT 3 and Vue 3

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

    thank you.

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

      You're welcome

  • @mahmoudahmed-fu7yd
    @mahmoudahmed-fu7yd 2 ปีที่แล้ว

    How you can handle authentication in nuxt 3

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

      It is actually easier than the predecessor. You can implement auth with Nuxt 3 predefined composable like useCookie and Middleware. I will record a video about this very soon.

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

    Vai please zoom korna apne screen ko

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

      Will take care of this from next video.

  • @jamesng79
    @jamesng79 8 หลายเดือนก่อน

    Make video add mongodb atlas

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

    Kichu bujhte parlam na

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

    I need a crash course about h3.

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

      You will get it soon.