Highlight: app.highlight.run/?promo=SIMPLIFIEDHIGHLIGHT Coupon Code: SIMPLIFIEDHIGHLIGHT (This should be automatically filled in as you go through the signup process)
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!
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?
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 🐞
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
my question is how it gets deployed, if the client has to be aware of the files on the server to import the AppRouter. what happens when you distribute these from different endpoints like a webserver and a regular VM. the files wouldn't be accesible to each other is this a type of feature designed to server side rendering?
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?
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.
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.
Since you're in a monorepo, why not create a separate package for types, and then on client-side do typecasting after fetching. I don't get it. what's the benefit from it
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
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
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?
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 ?
that's the point and the problem. Without trpc we can find a similar solution, maybe with the same interface. But what happens if i have FE and BE seperate repos?
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
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.
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.
@@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. :)
"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.
Highlight: app.highlight.run/?promo=SIMPLIFIEDHIGHLIGHT
Coupon Code: SIMPLIFIEDHIGHLIGHT (This should be automatically filled in as you go through the signup process)
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!
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?
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 🐞
The last part about websockets was something i really needed, thanks for making this explainer.
Thanks once again Kyle for this tRPC tutorial. I'm going to learn about this on Friday or Saturday evening.
¡Gracias! Thanks
¡De Nada! You are very welcome.
Thank you. tRPC is something I have always wanted to learn about.
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
At min 16 coding along just amazed how good this is
Dude just been looking to learn this and boom, here's your video. Gracias sir.
T3 stack tutorial needed!
It would be cool if you make a crash course for t3 stack too
Thanks Kyle!.. just wanted to also review Prisma and... look at that, you have a tutorial about Prisma as well :D
I asked for this, and it happned. Thank you :)
I think tRPC can be the new standard for building APIs!! 🤔
Perfect, just when I needed it!
Thanks so much for this.
5:33 is throw new TRPCError() not applicable here?
Thanks, this video is the best support to tRPC docs.
Excellent tutorial, thanks!
33:00 should I worry about sending 'Content-Type': 'application/json' ??
No. TRPC does it for you
Kyle, I need some solidity videos from you! ❤🧡💛💚💙💜
also what version are you using, because i need to load a transformer for some reason
my question is how it gets deployed, if the client has to be aware of the files on the server to import the AppRouter. what happens when you distribute these from different endpoints like a webserver and a regular VM. the files wouldn't be accesible to each other is this a type of feature designed to server side rendering?
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?
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.
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.
very efficient tutorial.... love this style.
Since you're in a monorepo, why not create a separate package for types, and then on client-side do typecasting after fetching. I don't get it. what's the benefit from it
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
Out of curiosity, why don't you use node --watch instead of nodemon
mind blown, thanks!
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
thanks,. that's really cool way of doing things syncing frontend requests wiith serverside is godsend. i hope trpc gets more traction and adoption.
Was actually waiting for this. Thank you so very much.
So, with this and the prisma course, are you leaning towards T3?
Thanks! Great explanation!
thx for your tutorial~ but how can i get the demo you show in the video?
Should the server and client in the same server?
Thank you so much buddy!
that was so helpful for me thank you
Thankyou soo much Kyle.
would it be reasonable to think of this as alternative to React Query ?
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?
Thanks! Thoughts on create-t3-app?
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 ?
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.
what if i deploy on vercel but different repo? is it possible?
both needs. to be. in the same repo it seems.
@@metalsadman so, how structure project look like?
Hi Kyle. Thanks for this. Is the code available somewhere? I don't see it in your github repository.
Yes, I am glad it's getting popular. It's an amazing magic.
Wooo thanks man!
❤ Love you man!
Are you still using this or have you moved to server actions? Would be cool to see you create a project using this!
I have a Twitter clone using tRPC. I have tried moving more to server actions, though, as they work well in many situations.
30:20 how was the normal way??
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
Thanks a lot
Supabase crash course in 45 minutes. Will you make it ?
Thanks Kyle
What if backend and Frontend have separate repos
that's the point and the problem. Without trpc we can find a similar solution, maybe with the same interface. But what
happens if i have FE and BE seperate repos?
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
thanks bruv
Kyle, can you make a video Abt how to live preview a website template, live bootstrap themes? Please bro.
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.
9:19
Can you not use top level await here?
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.
@@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. :)
thank you, was thinking of looking to learn more about tRPC :D to use it in my nextjs project
i would awesome if we can you this in a separate backend and frontend like php backend and react js frontend
Instead of using cors in the server use a vite proxy less packages and very easy to configure
no. cors is the easiest thing in the world to configure
You must put a privacy policy on your website when you use that and disable it if the user disagrees in the EU.
source?
@@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
@@Fuzbo_ Yeah might be it. Was genuienly curious if that was true.
Is this trpc v10 tutorial?
so it is tightly coupled
o n e o f u s
Gains are noticeable 👍
Why not in next js 😭
It would have been really helpful if you had given the github repo with the code
Didn't know Robert Paul Champagne was in web development.
NICE! I'm wondering if tRPC and gRPC can be used together 🤔
I watch at 0.75 speed))
People hate angular and all other frameworks settle down to patterns from angular!!!
how is trpc a pattern from angular?
Awesome!!!
New hair, who dis
Theo pushed trpc alot
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.
Who gave you the black eye??
The single repository makes this a non-starter for many. Especially larger team projects.
webdevs try not to overcomplicate things to shit challenge: impossible xD
we need a new framework to make things simpler
It reminds me apollographql
"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.
your video is obselete now delete this , most of the methods are deprecated that you have used
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.
ladies and gentlmen: WEB DEVS
I did not find this to be useful. Sorry.
node_modules/@trpc/client/dist/index.mjs:1:43: ERROR: Could not resolve "@trpc/server/observable" anyone?
Yep I can't solve this issue.
@@aghilannathan8169 npm install @trpc/server to the client side. Found the answer, it’s in the official documentation