Fullstack TypeScript Monorepo: NestJS, NextJS 13 & tRPC

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 63

  • @imthedaniels
    @imthedaniels Рік тому +11

    I'm from Brazil and I'm loving your tutorials, through your website I'm getting to understand nest. There are no up to date nest courses on udemy and it's very hard to find people who teach as well as you do. Congratulations on the work, looking forward to your course in November!

  • @lameckotieno5837
    @lameckotieno5837 Рік тому +8

    been following your blogs on nestjs.Thanks for the video I hope for more and wishing all the best

  • @wndGGaRkGBKpXvM6NWHGOeMJv
    @wndGGaRkGBKpXvM6NWHGOeMJv Рік тому +5

    This is a super solid tutorial that lays a very powerful foundation for a full stack app. I'm excited to leverage TRPC in my existing NestJS work. After completing this tutorial, I will work to add Prisma to this for a database.

    • @tomraydev
      @tomraydev  Рік тому +2

      So glad you found it useful! 🎉

  • @prakashbanjade4374
    @prakashbanjade4374 28 днів тому

    I was looking for a trpc monorepo turorial. Your video helped me. Thanks ❤

  • @badr4u73
    @badr4u73 Рік тому +3

    Absolutely fantastic mate you are the only beacon of hope for me at this point. If you can make auth with crud that will be perfect. (Using next js and nest js) ❤

  • @n8o_
    @n8o_ Рік тому +1

    Awesome stuff! This is exactly what I've been trying to figure out how to do for multiple weeks now

  • @trentcox9239
    @trentcox9239 Рік тому +1

    this is absolutely fantastic mate. subscribed. good luck with the channel!

    • @tomraydev
      @tomraydev  Рік тому

      Thanks so much Trent! Really appreciate it 🙏

  • @EduardPrystupa-xj1lt
    @EduardPrystupa-xj1lt Рік тому

    thank you very much. super cool tutorial. I finally understood how trpc works. Would love to see trpc + prisma setup

  • @avishekdas4947
    @avishekdas4947 Рік тому

    I'm your 107th subscriber 😀 Very useful tutorial. Lots of love from India ❤️

    • @jeffkirchoff14
      @jeffkirchoff14 6 місяців тому

      Bhai ye racist hai isse Indians pasand nhi
      Dekh bhai sab hi a comment hearted hai par tere nhi

    • @avishekdas4947
      @avishekdas4947 6 місяців тому

      @@jeffkirchoff14 tu comment section achha se dekh. Indian pay heart rated v hai aur comment v hai.

  • @MaxForbang
    @MaxForbang Місяць тому

    Saucy value, thanks brother 🤝

  • @adics
    @adics Рік тому

    Finally, I found some good stuff here. Thanks for making this tutorial

  • @k303k
    @k303k Рік тому

    Hello Sir Currently i've learned and can build project with MERN stack i'm currently learning Nextjs and typescript.Woulf you mind if i suggest you to pls make a Nestjs Beginner series?That would help so much for a lot of people .Thanks bro for this tutorial❤🎉

  • @Revioorytb
    @Revioorytb Рік тому +1

    Hey Tom, thanks for this awesome tutorial. Do you have any ressources on how you would implement authentication with both NestJS and NextAuth ? I find it a little confusing. Thanks for your help man!

  • @hasanulhaquebanna
    @hasanulhaquebanna Рік тому

    So any thinking of making more projects (also complex) with this stack? Really appreciate your dedication.
    Thank you so much

  • @krumbo
    @krumbo Рік тому +1

    Bruuuu. Great example. Make more of those setups mate.

  • @lardosian
    @lardosian Рік тому

    Just discovered your blog, great content, must have a good read of the unit testing blog, something thats not covered a lot.

    • @tomraydev
      @tomraydev  Рік тому

      Thank you! I put a lot of effort into that unit testing blog post. Aiming to do a UA-cam tutorial on NestJS unit testing soon too 🫡

  • @GabrielAnyaele
    @GabrielAnyaele 6 місяців тому

    That's a great video, thanks you helped me alot.
    One question though, can tRPC work well with some nextjs features like guards and pipes? I dont see how we can implement those and would appreciate a video on it

  • @ayushshende4290
    @ayushshende4290 9 місяців тому

    What changes will I need to make if I decide to use graphql instead of trpc ? Thanks for the tutorial!

  • @王志畅
    @王志畅 11 місяців тому

    hello,very nice tutorials,teach me a lot to improve my projects。in other way learned about the framework create-t3-app,this seems not using nestJs。In my case i prefer to use nest,how do i choose to use your way or the create-t3-app,can you give some suggestion,thanks very much!

  • @dimitriborgers9800
    @dimitriborgers9800 4 місяці тому

    Hey Tom, quick question. Why does a node_modules folder appear at the root level when you set up the NestJS project? You root level package.json doesn't have any dependencies, so I would have thought all of NestJS dependencies would be included in the apps/server folder. At first I thought maybe it's because it's automatically hoisting up shared dependencies, but you hadn't created the NestJS project yet, so technically nothing needs to be shared/hoisted.

  • @s1dev
    @s1dev Рік тому

    hey can you also cover dockizing the whole thing?

  • @matiasmartello4333
    @matiasmartello4333 4 місяці тому

    By any chance do you have a docker-compose file with each Docker file for the projects?

  • @maulanaimam1662
    @maulanaimam1662 Рік тому

    Hi! Thank you for making this great video, but it would be awesome if you explained the concept first (monorepo, tRPC, etc) instead of jumping in and doing some code. I know there's a lot video & article explaining about this, but it would be awesome to see you explain this with your style. Can't wait to see your another tutorial 😊😊😊
    Thank you ☺

  • @masnwilliams
    @masnwilliams Рік тому

    Hey Tom, I was setting this up using Fastify instead of Express for my NestJS server and ran into an issue where all trpc queries would fail. When I switched back to express, it worked just fine. Would you happen to know what the issue would be for using Fastify instead of Express?

  • @Hexa-IT
    @Hexa-IT 10 місяців тому

    Hi there, great video! I use Node.js (with ts and ems) as back-end and have a "small" issue. Whenever I build nextjs for production it errors because it's trying to compile my back-end code and I think that's happening because NextJS is following the tRPC AppRouter import (36:20). Do you have any idea how to solve this?
    Linting and checking validity of types ...Failed to compile.
    ../back-end/src/routes/_app.ts:1:24
    Type error: Cannot find module '@/trpc' or its corresponding type declarations.
    > 1 | import { router } from "@/trpc";
    (I also have the @ as an import path to src in both tsconfigs, so when next tries to find the above import it tries to find it in the front-end/src while it's actually in back-end/src)

  • @MaPhongBa129
    @MaPhongBa129 Рік тому

    Awesome skills. Thank Tom

  • @andrealvaradocampos4050
    @andrealvaradocampos4050 Рік тому +1

    gracias master !!! crea un CRUD con autenticación plz

  • @simpingsyndrome
    @simpingsyndrome Рік тому

    love your content from indonesia!

  • @rrAzz
    @rrAzz 9 місяців тому

    29:30 It would be nice to show how to inject the HelloService into the router

  • @simondiazabad9269
    @simondiazabad9269 Рік тому

    Hi. Is there a way to test tRPC routers on NestJS? I'm having a hard time making it work. I have some ideas but no luck so far.

  • @prashlovessamosa
    @prashlovessamosa Рік тому

    Thanks for making this.

  • @s1dev
    @s1dev Рік тому

    awesome stack, also a new sub! Let's goo!

  • @rahmatsulistio
    @rahmatsulistio Рік тому

    its cool, how to deploy this app in vps using cloud platform like digital ocean? can you make the tutorial?

  • @SaurabhSrivastava-i1q
    @SaurabhSrivastava-i1q 25 днів тому

    tRPC wraps around the React-Query by default so there is no need to use the useState and useEffect, I think. This should work out of the box:
    "use client";
    import { trpc } from "@web/lib/trpc";
    export default function HomePage() {
    const data = trpc.hello.query({ name: "web" });
    return {data};
    }
    Issues:
    - Hydration error
    - Hot Module Reload no longer works

  • @madhatter2744
    @madhatter2744 Рік тому

    Fantastic video!

  • @CIBI
    @CIBI Рік тому

    Nice explanation man

  • @Mainak908
    @Mainak908 9 місяців тому

    Bro how to connect express trpc backend with nextjs frontend?? Plz guide me

  • @manurodgers9654
    @manurodgers9654 Рік тому

    how about using turborepo to do this ?

  • @ARThompsn
    @ARThompsn Рік тому

    👏

  • @ashfaqnisar
    @ashfaqnisar 8 місяців тому

    Noiceeeee

  • @belkocik
    @belkocik 8 місяців тому

    How to dockerize it?

  • @AnshuOpinion
    @AnshuOpinion Рік тому

    What about react query

    • @tomraydev
      @tomraydev  Рік тому

      Making network requests on the server side. I think react query is just for client side?

  • @johnsonafool
    @johnsonafool Рік тому

    i wonder why add another nesths to complicate your app instead using t3?

  • @최대한-h5g
    @최대한-h5g Рік тому

    thanks for uploading tutorial it its great helpful :)

  • @Glyra12
    @Glyra12 Рік тому

    great vid bro

  • @mateopedehontaa4566
    @mateopedehontaa4566 10 місяців тому

    Good tutorial

  • @brycelund595
    @brycelund595 Місяць тому

    Anyone following this make sure to not do your client-side fetching like this. The way he has his useEffect set up creates an infinite loop continuously refetching from the API while the page is open. A better way to do this would be to use a library like tan stack query, or if you really want to use useEffect, make sure you put a dependency array ([]).

  • @sid4579
    @sid4579 6 місяців тому

    Why would you want a monorepo?

  • @DilwarHossainNoorChandan
    @DilwarHossainNoorChandan Рік тому

    good job 😊😊😊

  • @grannymuffins8882
    @grannymuffins8882 Рік тому

    is this newbie friendly ?

  • @healingwithlove8614
    @healingwithlove8614 Рік тому +1

    You could have done every thing in nextjs without
    using nestjs