Turborepo + NestJS + NextJS + tRPC + ShadcnUI + TailwindCSS + Vercel
Web app uses next@15
and react@19
. If don't want to use rc versions, you are free to downgrade to next@14
and react@18
. Also web app uses T3 Env for env variables.
Nestjs app is deployed to vercel and that's why dist
folder is included in source control. If you want to deploy your application to other hosting, you can remove dist
folder, add it to .gitignore
and vercel.json
file.
UI library is ShadcnUI and it's included in packages/ui
folder.
Each package/app is 100% TypeScript and contains @total-typescript/ts-reset and Vitest.
If you want to see this template in action, you can check out this repository where it is used with Prisma: share-your-thought.
To build all apps and packages, run the following command:
pnpm build
To develop all apps and packages, run the following command:
pnpm dev
To run all tests, run the following command:
pnpm test
To run all linting, run the following command:
pnpm lint
pnpm ui add <component-name>
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
pnpm dlx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
pnpm dlx turbo link
Learn more about the power of Turborepo: