DINOD
tRPC16mo ago
DINO

How do I create a React/Node full-stack project with tRPC?

Hello,

I would like to build a website using React and Node and tRPC.

What I first assumed is I need to scaffold a react app using Vite in a folder called client, write my server code in a folder called server .

Is this is a common project structure or not? If yes how do I install new npm packages? Should I install them in the parent package.json and ignore the client one or what?

EDIT: I don't want to use a monorepo.

I really appreciate any help, I have nowhere else to ask. Thanks.
image.png
Was this page helpful?