Run the following command:
pnpm dlx create-turbo@latest -e https://github.com/meiazero/fastify-nextjs-turbo
This 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 byweb
application;@repo/tailwind-config
: a Tailwind configuration file;@repo/eslint-config
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
);@repo/tsconfig
:tsconfig.json
s 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: