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
Matvey16mo 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
iDarkLightning16mo ago
Do you mean you just want tRPC and Prisma? If so, is there another package that's consuming tRPC?
detherminal
detherminal16mo ago
Yeah, I dont want to use React and Next.js's frontend part
iDarkLightning
iDarkLightning16mo ago
What are using tRPC with?
Steven-sensei
Steven-sensei16mo 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
Zion16mo ago
so why use t3? just make a server with trpc and prisma
detherminal
detherminal16mo ago
I have decided to use Node.js, thank you everyone.
Want results from more Discord servers?
Add your server