Using Prisma with Turborepo

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

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

  • @haritpatel5001
    @haritpatel5001 5 หลายเดือนก่อน +1

    Very detailed and insightful video + the soothing voice of yours . Can you do one on setting up a docker in turborepo as well, that'd be awesome.

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

      Glad it was helpful!

  • @sumitgovil2311
    @sumitgovil2311 3 วันที่ผ่านมา

    Great video Hamed. I have a question around deployment though. I am deploying the apps in my turborepo on Vercel. However, where do I configure the production database URL on Vercel? I am not deploying any of the packages on Vercel, just the apps.

  • @shahryartavakkoli
    @shahryartavakkoli 5 หลายเดือนก่อน +2

    Mr Bahram, did you try to share the Next Auth server side session and all the project can open and read the encrypted session? all projects are in a same site, thank you for all you efforts

    • @hamedbahram
      @hamedbahram  5 หลายเดือนก่อน +3

      That's an interesting idea, I'll look into it.

  • @Grishopping
    @Grishopping 4 หลายเดือนก่อน +1

    Thanks for the video, that's what I was looking for....
    Now I wonder .... when uploading my projects to Vercel how to do it ? using turborepo and the additional projects to place them in subdomain ???? I don't know if you understand my question... do you have any video that talks about this topic?
    Greetings Jose Grillo from Venezuela

    • @hamedbahram
      @hamedbahram  4 หลายเดือนก่อน +2

      When you deploy a turbo repo in Vercel it allows you to pick which one of the app/packages you want to deploy. I'll have a video coming up on this.

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

      @@hamedbahram waooo, excellent, thank you very much... I'll be very pending... many blessings and greetings from Venezuela.

  • @Grishopping
    @Grishopping 4 หลายเดือนก่อน +1

    NOTE: friend if you could also referncia how to work with GIT from turborepo.... are made all the git from the main root? or each project separately is made to GIT version control?
    or give some tips here I thank you ....
    greetings from Venezuela

    • @hamedbahram
      @hamedbahram  4 หลายเดือนก่อน +2

      Yes you can use the git from the root since it's all one repo.

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

      @@hamedbahram Gracias...

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

    Great video Hamed.

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

      Thanks 👍

  • @mohammadabbas1623
    @mohammadabbas1623 5 หลายเดือนก่อน +3

    Ur calming voice ❤

    • @hamedbahram
      @hamedbahram  5 หลายเดือนก่อน +1

      Thanks!

    • @uixmat
      @uixmat 5 หลายเดือนก่อน +1

      Agreed, your content is becoming my bedtime listening 😅

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

      @@uixmat haha

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

      @@uixmat 😅

  • @matejbittner-e4t
    @matejbittner-e4t 3 หลายเดือนก่อน +1

    Hello, I am a fan of your videos and I would like to ask if you are planning any videos about deploying TurboRepo to Vercel (maybe with a backend CMS and frontend Next app). TurboRepo is quite complicated for me, and I haven't found any videos about deployment and project setup with a CMS. Thanks.

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

      Great suggestion! Did you mean a custom backend CMS?

    • @matejbittner-e4t
      @matejbittner-e4t 3 หลายเดือนก่อน

      I think a custom CMS would be best because if I have a tutorial for it, then there shouldn't be a problem with implementing some third-party options (Keystones, Strapi, ...). However, I'm not sure if this is feasible for you, as most of your videos are shorter than 30 minutes. In that case, I would be more than happy to see at least a third-party implementation and deployment.

  • @jfhandfield
    @jfhandfield 5 หลายเดือนก่อน +1

    Great video once again Hamed! Thank you for your time. One thing you didn't explain and could be nice to know is what if I have multiple databases to connect to ? What is the correct way to do that ? Right now I have 2 clients in the client.ts named differently is that the way to go?

    • @hamedbahram
      @hamedbahram  5 หลายเดือนก่อน +1

      Thank you! That's a good question, I would put them in two different workspace to separate the schemas and db access functions.

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

    appreciate to working so hard for your colleagues by continuously producing content. 💐
    Hamed, I would be grateful if you could make a tutorial about Redux Toolkit. 🙏🏻

    • @hamedbahram
      @hamedbahram  5 หลายเดือนก่อน +2

      Anytime! For global state management I recommend Zustand, see this video → th-cam.com/video/BxohoXjbhKc/w-d-xo.html

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

      @hamedbahram
      I want a package for both of state management and fetching
      That's why Redux Toolkit was suggested to me.
      I also heard about Zustand, but I don't know if it has fetching or not!

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

      @@samanehghaempanah128 redux is dead. It's not used anymore. There are better tools that do the same thing in a more efficient way with less boilerplate code. and yes zustand supports async operations such as data fetching.

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

      @@hamedbahram
      Thank you for your explanation
      I will definitely take the time to learn zustand.
      But now I am involved in a project that uses Redux toolkit
      And I can't change the method. :(

  • @yunyang6267
    @yunyang6267 5 หลายเดือนก่อน +1

    how do you normally update all packages in the entire turborepo?

    • @hamedbahram
      @hamedbahram  5 หลายเดือนก่อน +1

      `pnpm up --latest`

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

      @@hamedbahram Do you navigate to every sub directory to run this command?

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

    Great Video, would be nice if you could make with nuxt/next + prisma + supabase (local dev) :)

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

      Great suggestion!

  • @raphauy
    @raphauy 5 หลายเดือนก่อน +1

    Thank you!!!

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

      You're welcome!

  • @waltervanwoudenberg6876
    @waltervanwoudenberg6876 5 หลายเดือนก่อน +1

    Do a video about a setup with drizzle nextjs shadcn tailwind nestjs hook form and server actions in a turborepo deployed to docker containers

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

      That would be a good one, thanks for the suggestion.

  • @patolorde
    @patolorde 5 หลายเดือนก่อน +1

    Awesome

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

      Thank you!

  • @ermiasgetnet2283
    @ermiasgetnet2283 5 หลายเดือนก่อน +2

    How can I reach You Sir??

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

      Go to the contact section of my site :)

  • @Gangbuster74
    @Gangbuster74 5 หลายเดือนก่อน +2

    can u create same for shad cn, please

    • @hamedbahram
      @hamedbahram  5 หลายเดือนก่อน +1

      Of course, I have that coming up soon.

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

    brother I recently found out that a new version of turborepo---- 2.0 has been released.
    what is the possibility that you make a second part of this video of turborepo with prisma but with the new updates....
    Do you see it viable?

    • @hamedbahram
      @hamedbahram  4 หลายเดือนก่อน +2

      I can create a video about how to migrate to the new version. You can migrate to the new version by running `npx @turbo/codemod migrate`. It's super straight forward.

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

      @@hamedbahram I did NOT know that command, I will have to grab your repository where you installed prisma and see if it works for me.
      I'll tell you that I used for a new project this command
      npx create-turbo@latest --example with-prisma
      but I have NOT been able to connect with prisma, many errors come out... I don't know what I'm doing wrong after declaring the schema and the .env and the connection to export prisma as you explain in your video.... that's why my request is to see if you dare to make another video with the new version that came out recently.... thank you very much in advance