How to use only backend part of T3

How can we only use backend part of the T3 stack with t3-app (without Next.js and pages folder). Deleting the pages folder only gives an error.
7 Replies
Matvey
Matvey2y ago
You can put all your backend endpoints into /pages/api and remove any other files in /pages, but it'll still be next.js. T3 is really tied to Next, and you can't easily remove it, so the better option will be to start a new node project and install all the parts of T3 to it What are you planing to use as a client? What type of API do you need (rest or trpc)?
iDarkLightning
Do you mean you just want tRPC and Prisma? If so, is there another package that's consuming tRPC?
detherminal
detherminalOP2y ago
Yeah, I dont want to use React and Next.js's frontend part
iDarkLightning
What are using tRPC with?
Steven-sensei
Steven-sensei2y ago
Well go on trpc doc and setup it with express as they explain i guess same for prisma don’t need to start with t3 stack to do that
Zion
Zion2y ago
so why use t3? just make a server with trpc and prisma
detherminal
detherminalOP2y ago
I have decided to use Node.js, thank you everyone.
Want results from more Discord servers?
Add your server