RevengeTime
RevengeTime
TTCTheo's Typesafe Cult
Created by RevengeTime on 7/31/2023 in #questions
Prisma or Trpc for fetching data?
Hello! I see that in NextJS 13 i can use prisma directly in my components to get the data. Is there an advantage using TRPC instead and using prisma in the Trpc server instead?
2 replies
TTCTheo's Typesafe Cult
Created by RevengeTime on 7/31/2023 in #questions
Third party authenticator
Hello! Im building a website for our e-sports center and I was thinking about using a third party authenticator like Clerk or Vipps. That's great as we don't need to store user data ourself, but as we are going to sell stuff, we need some form of user data to connect the purchases to the user. What is the best way to do do this? Is it just to create a user table in Postgres and only have a user_id column? Or is there a better way?
4 replies
TTCTheo's Typesafe Cult
Created by RevengeTime on 6/7/2023 in #questions
Clerk Authorization vs Authentification
Hey! I'm developing a web app in Nextjs, and using Clerk for user management and authentification. The only problem is that I cant seem to find a way to give different users roles and privileges. I am going to have a customer page, but also an admin page, so these user groups need to have access to different resources. I have looked through the Clerk documentation, but I cannot find anything on it. The only thing I could spot was the ability to add custom user metadata. Is that a good way of assigning roles and privileges? Or is there better way?
5 replies
TTCTheo's Typesafe Cult
Created by RevengeTime on 5/26/2023 in #questions
Fetching data directly from prisma
Hi! I am learning about Prisma, and I see that its possible to fetch data from Prisma directly in any page. Is this safe, or should this be avoided? Or should I just fetch the data from my an endpoint accessing Prisma?
6 replies
TTCTheo's Typesafe Cult
Created by RevengeTime on 9/21/2022 in #questions
Recomended BaaS for bulding & hosting Serverless functions and APIs
Hello! Im New to the community, but exited to be part of it🤘 Im quite nifty in python and java, but have fallen in love with NextJs and the T3 stack in the recent months. I have started a coulpe of Fullstack projects with Firestore Databases and API routs with Next hosted on Vercel for a production build, but as I am learning more and trying to build bigger projects I dont really know how to connect, host and build production ready APIs with other languages such as Java and Python. I have managed to set up a local flask and Django API endpoint, but as I want it to be serverless, I have not been able to figure out a way to host it. Do any of you guys know any baas or similar service to host APIs in python and java? My first though to use a Digital Ocean VM, but that seems unnecessary. Do you guys have any recommendations or tips? (I know in most cases TypeScript will be more then enough for building APIs, but for my latest project I need to build my backend in python)
6 replies