u/StormofThunderin r/typescript • Recommends
On “Example folder structures for fullstack React projects”
This is a pretty good video on how to setup a React and Express REST API with TS. The video does Next and doesn't use API routes just for illustration purposes, but it's the same concept. They are separate packages and apps, so you compile and deploy them separately. You'll find many resources on how to work with react and an express server (too many). You can find many different projects with varying setups by looking up on github with `topic:express topic:typescript topic:react` but in a high enough level, the setup is the same. I also have this one in particular saved.
But because Next.js is really a fullstack framework, nowadays you can setup a fully type-safe app with a T3 starter an…