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
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)?
Do you mean you just want tRPC and Prisma?
If so, is there another package that's consuming tRPC?
Yeah, I dont want to use React and Next.js's frontend part
What are using tRPC with?
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
so why use t3? just make a server with trpc and prisma
I have decided to use Node.js, thank you everyone.