Hi. This might be silly question, but if you make ...
# orm-help
n
Hi. This might be silly question, but if you make typescript based API and Frontend (Typescript and some mobiles), will you make a monorepo for API and Frontend, and make another repo for mobile? I’m wondering the best practice for making API type safely.
o
Usually there are tools that automate code generation for you. But recently, there's been a new framework called tRPC. https://github.com/trpc/trpc Also, they made an example repo with react native: https://github.com/KATT/zart tRPC gives you full stack safety. So monorepos is the way to go if you use tRPC.
n
Thanks. I remember I’ve seen tRPC in Cal.com repository along with Prisma and NextJS. That repo looks like similar to it. Thank you. You solved my mystery.
n
I would highly recommend trpc! 🙌