Skip to content
/ mng-stack Public template

Turborepo template with NestJS + NextJS + tRPC + shadcn/ui + TailwindCSS

License

Notifications You must be signed in to change notification settings

Mnigos/mng-stack

Repository files navigation

mng-stack

Turborepo + NestJS + NextJS + tRPC + ShadcnUI + TailwindCSS + Vercel

Stack

Apps and Packages

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.

Build

To build all apps and packages, run the following command:

pnpm build

Develop

To develop all apps and packages, run the following command:

pnpm dev

Test

To run all tests, run the following command:

pnpm test

Lint

To run all linting, run the following command:

pnpm lint

Add new ShadcnUI component

pnpm ui add <component-name>

Remote Caching

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

Useful Links

Learn more about the power of Turborepo: