Run the following command:
pnpm dlx create-turbo@latest -e https://github.com/meiazero/fastify-nextjs-turboThis Turborepo includes the following packages, apps and configuration:
api: a Fastify backend application;web: another Next.js frontend application;@repo/shadcn-ui: a stub React component shared bywebapplication;@repo/tailwind-config: a Tailwind configuration file;@repo/eslint-config:eslintconfigurations (includeseslint-config-nextandeslint-config-prettier);@repo/tsconfig:tsconfig.jsons used throughout the monorepo.
Each package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
cd my-turborepo
pnpm build
To develop all apps and packages, run the following command:
cd my-turborepo
pnpm dev
Learn more about the power of Turborepo: