Learn tRPC In 45 Minutes

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

КОМЕНТАРІ • 109

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

    Highlight: app.highlight.run/?promo=SIMPLIFIEDHIGHLIGHT
    Coupon Code: SIMPLIFIEDHIGHLIGHT (This should be automatically filled in as you go through the signup process)

  • @gzucca
    @gzucca 7 місяців тому +6

    Man, I never get tired of your videos. Your explanations are so clear and to the point, plus they always have tips such as folder organization. Keep up the work!

  • @emanuelefavero
    @emanuelefavero Рік тому +55

    Thank you Kyle. tRPC was the part of the t3 stack I struggled the most this week and this video helped me so much. Would you mind making something like this about the t3 stack?

  • @techwithattila
    @techwithattila Рік тому +30

    Really interesting to see how many traditionally "backend concepts" break into the frontend world. It's a welcome change though, everyone is looking for less error-prone code 🐞

  • @theisoj
    @theisoj Рік тому +7

    Thanks once again Kyle for this tRPC tutorial. I'm going to learn about this on Friday or Saturday evening.

  • @StrayKev
    @StrayKev Рік тому +4

    Thank you. tRPC is something I have always wanted to learn about.

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

    It would be cool if you make a crash course for t3 stack too

  • @OtterSwims
    @OtterSwims 7 місяців тому

    The last part about websockets was something i really needed, thanks for making this explainer.

  • @satvik0099
    @satvik0099 9 місяців тому +2

    Your explanation is next level as usual ♥️🌟
    But I request you to make a video of how to apply TRPC in real world applications .
    Also the application of web sockets is needed because without that it seems to be empty

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

    T3 stack tutorial needed!

  • @pablom2274
    @pablom2274 11 місяців тому

    At min 16 coding along just amazed how good this is

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

    mind blown, thanks!

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

    I think tRPC can be the new standard for building APIs!! 🤔

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

    Thanks Kyle!.. just wanted to also review Prisma and... look at that, you have a tutorial about Prisma as well :D

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

    Dude just been looking to learn this and boom, here's your video. Gracias sir.

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

    Thanks, this video is the best support to tRPC docs.

  • @MattBodman
    @MattBodman 5 місяців тому

    Excellent tutorial, thanks!

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

    Perfect, just when I needed it!
    Thanks so much for this.

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

    I asked for this, and it happned. Thank you :)

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

    Kyle, I need some solidity videos from you! ❤🧡💛💚💙💜

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

    very efficient tutorial.... love this style.

  • @tushswe
    @tushswe 2 місяці тому

    Anyone watching this anytime from now , you should know that the trpc is now v11 while it was v10 in this video so check the documentation

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

    I have watched several of your videos. You don't waste time. So when I saw that this video was 45 minutes I decided to leave this comment and go to sleep. This can wait until tomorrow.

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

    Thank you so much buddy!

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

    Thankyou soo much Kyle.

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

    Thanks a lot

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

    Thanks! Great explanation!

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

    Was actually waiting for this. Thank you so very much.

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

    thanks,. that's really cool way of doing things syncing frontend requests wiith serverside is godsend. i hope trpc gets more traction and adoption.

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

    that was so helpful for me thank you

  • @hd.r6545
    @hd.r6545 Рік тому +2

    Thank you for posting such great content! I learned a lot from all of your videos. They are really really helpful. And I am also shocked you can talk and code at same time keep everything on the track. Is there way to practice such ability ?

    • @ChristopherPhillipsDev
      @ChristopherPhillipsDev 11 місяців тому

      He's got the ready made code on another monitor that he's already proofed. You can tell because he looks to the side before he writes something new.

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

    ¡Gracias! Thanks

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

    1. Every tutorial Kyle creates - always it seems like he knows it since his childhood. You even don't make a pauses to think or to remember something...I have no clue how is it possible at all xD
    2. I still didn't get why do we need at all such complicated stuff as tRPC :(( I didn't saw many benefits

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

    Wooo thanks man!

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

    Out of curiosity, why don't you use node --watch instead of nodemon

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

    Thanks Kyle

  • @wavyboyjodii
    @wavyboyjodii 5 місяців тому

    thanks bruv

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

    Kyle hi love your vids! Can you do one for auto-gen of unittests using plawright and also generates interactive swagger docs from any nextjs app that uses zod, lucia and trpc?

  • @AZ-kh9ex
    @AZ-kh9ex Рік тому +1

    If we are importing AppRouter from server into client, I am unable to understand how are we going to deploy this. We can't deploy react and nodejs separately in this case, right?
    Please help

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

    Yes, I am glad it's getting popular. It's an amazing magic.

  • @Michael-Martell
    @Michael-Martell Рік тому +1

    So, with this and the prisma course, are you leaning towards T3?

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

    What if backend and Frontend have separate repos

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

    ❤ Love you man!

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

    I watch at 0.75 speed))

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

    Mmmm I glazed over at about the halfway point. It would help me to get more of an architectural outline and the project context in the beginning. You do a great job flying through the code but I'm losing it figuring out the context of each function; when to do what and why. Longtime subscriber and fan here.

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

    o n e o f u s

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

    thank you, was thinking of looking to learn more about tRPC :D to use it in my nextjs project

  • @cirex314
    @cirex314 3 місяці тому

    5:33 is throw new TRPCError() not applicable here?

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

    Instead of using cors in the server use a vite proxy less packages and very easy to configure

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

      no. cors is the easiest thing in the world to configure

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

    You must put a privacy policy on your website when you use that and disable it if the user disagrees in the EU.

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

      source?

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

      @@vrechkomaybe they’re talking about the Highlight sponsor? I don’t see anything online related to tRPC needing to be put into the privacy policy

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

      @@Fuzbo_ Yeah might be it. Was genuienly curious if that was true.

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

    i would awesome if we can you this in a separate backend and frontend like php backend and react js frontend

  • @JukeboxForArtists
    @JukeboxForArtists 2 місяці тому

    Are you still using this or have you moved to server actions? Would be cool to see you create a project using this!

    • @WebDevSimplified
      @WebDevSimplified  2 місяці тому +2

      I have a Twitter clone using tRPC. I have tried moving more to server actions, though, as they work well in many situations.

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

    what if i deploy on vercel but different repo? is it possible?

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

      both needs. to be. in the same repo it seems.

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

      @@metalsadman so, how structure project look like?

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

    Thanks! Thoughts on create-t3-app?

  • @leomangold
    @leomangold 3 місяці тому

    Is the code available in some kind of repo anywhere? I'm having troubles with setting up the server and would want to know whats inside of the package.json files and stuff

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

    thx for your tutorial~ but how can i get the demo you show in the video?

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

    Kyle, can you make a video Abt how to live preview a website template, live bootstrap themes? Please bro.

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

    Hi Kyle. Thanks for this. Is the code available somewhere? I don't see it in your github repository.

  • @cruz.aljon1990
    @cruz.aljon1990 Рік тому

    Should the server and client in the same server?

  • @pablom2274
    @pablom2274 11 місяців тому

    30:20 how was the normal way??

  • @wpftutorial
    @wpftutorial 25 днів тому

    webdevs try not to overcomplicate things to shit challenge: impossible xD

    • @nlnu1337
      @nlnu1337 14 днів тому

      we need a new framework to make things simpler

  • @spinix3744
    @spinix3744 5 місяців тому

    so it is tightly coupled

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

    would it be reasonable to think of this as alternative to React Query ?

  • @pablom2274
    @pablom2274 11 місяців тому

    33:00 should I worry about sending 'Content-Type': 'application/json' ??

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

      No. TRPC does it for you

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

    Didn't know Robert Paul Champagne was in web development.

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

    13:44 Is it possible to create several routers though and attach them to different endpoint to separate between the apps in a more complex setup? Or it's a technical limitation of TRPC?

    • @pablom2274
      @pablom2274 11 місяців тому

      I'm at min 16 right now but I just did what you say and it works, you just have to create another "client" in the client side and pass the router to the createTRPCProxyClient function.

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

    Supabase crash course in 45 minutes. Will you make it ?

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

    Gains are noticeable 👍

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

    Why not in next js 😭

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

    Is this trpc v10 tutorial?

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

    Awesome!!!

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

    Theo pushed trpc alot

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

      it's great tech so understandable. problem I'm seeing is when working on a team where peeps work on different repo for backend and frontend.

  • @rhul0017
    @rhul0017 10 місяців тому +1

    People hate angular and all other frameworks settle down to patterns from angular!!!

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

      how is trpc a pattern from angular?

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

    9:19
    Can you not use top level await here?

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

      Using await at the top level requires a lot of changes to your "package.json" and your "tsconfig.json" files. Most of these changes involve forcing node to use newer module types and break a lot of other libraries that you may have in a larger project. You can't use node's popular "require" function for example to do imports.

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

      @@douglascounts4634 thank you so much for the detailed answer. I had some issues with the compiler yelling at me about that and that makes total sense in that context. :)

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

    NICE! I'm wondering if tRPC and gRPC can be used together 🤔

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

    New hair, who dis

  • @tariqal-malki8401
    @tariqal-malki8401 Рік тому

    Who gave you the black eye??

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

    It reminds me apollographql

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

    The single repository makes this a non-starter for many. Especially larger team projects.

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

    "Impossible" even though we were doing it 20 years ago, in java of all languages (yes, type safe to the client via cross compilation; gwt was exciting back when google was credible) There are *HUGE* downsides to this tightly coupled monolithic approach and being JS/TS isn't even one of them!
    If you need to mash out a simple app in a week or 2? Great. Need an app that will more than a year or 2? Not so much.

  • @user-zh8rp5xu9o
    @user-zh8rp5xu9o Місяць тому

    your video is obselete now delete this , most of the methods are deprecated that you have used

    • @nlnu1337
      @nlnu1337 14 днів тому

      Wouldn't call it obselete. It's still good if you are learning from scratch but some parts are deprecated and some parts have new/better practises.

    • @wpftutorial
      @wpftutorial 14 днів тому

      ladies and gentlmen: WEB DEVS

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

    I did not find this to be useful. Sorry.

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

    node_modules/@trpc/client/dist/index.mjs:1:43: ERROR: Could not resolve "@trpc/server/observable" anyone?

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

      Yep I can't solve this issue.

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

      @@aghilannathan8169 npm install @trpc/server to the client side. Found the answer, it’s in the official documentation