Chen
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Chen on 6/8/2023 in #questions
how should i think about trpc with NextJs 13 server actions?
I've been using server actions and it feels like writing trpc functions.
Except, there is no react query in the clientside.
I suppose I can tie them together and it'll be even more like trpc?
what do u guys think about that?
3 replies
TTCTheo's Typesafe Cult
•Created by Chen on 12/26/2022 in #questions
Help with some type declaration
2 replies
TTCTheo's Typesafe Cult
•Created by Chen on 12/12/2022 in #questions
how does NextJs know what code to run on the backend vs frontend?
I thought only things in the API folder in Pages are ran on the backend, but there's a server folder in create-t3-app for the backend stuff
Would someone explain to me?
7 replies
TTCTheo's Typesafe Cult
•Created by Chen on 11/12/2022 in #questions
Looking for something like upload.io but free for small usages
I'm just playing around with a side project and want a really simple API that allows me to upload files like upload.io. The problem is that upload.io is 8$/month even if 0 usage, and since this is an experimental side project it feels unjustified paying that much.
27 replies
TTCTheo's Typesafe Cult
•Created by Chen on 11/7/2022 in #questions
Auth on Mobile vs Web
In my mind, auth is mostly collecting username/password and sending it to the server, then the server can verify whether or not the username/password is correct.
When the user visits again, I guess we need to re-authenticate with the JWT that's on the device. But none of these seem to mean that we need to do anything different for mobile vs web yet things like NextAuth don't support mobile yet, and most auth solutions have separate SDKs for mobile/web.
13 replies
TTCTheo's Typesafe Cult
•Created by Chen on 11/6/2022 in #questions
Tauri - the Electron Alternative - do I have to write any Rust code to use Tauri?
It seems that most of the APIs provided by Tauri are in TS/JS.
Why can't one turn a website into a tauri app the same way one can turn a website into an Electron app with one click?
16 replies
TTCTheo's Typesafe Cult
•Created by Chen on 10/26/2022 in #questions
when to have an actual backend?
With the t3 stack we just deploy a single repo that contains both our "server" and "page".
At what point should one have a dedicated backend to handle requests?
10 replies
TTCTheo's Typesafe Cult
•Created by Chen on 10/24/2022 in #questions
NativeWind vs twrnc for react native(+web) Tailwind solution?
Seems like NativeWind is a bit newer and has a nice Babel plugin that makes it feel like developing for web, but twrnc has been around a bit longer and has more interesting functionalities like ios: android:.
Has anyone tried either?
9 replies