Turborepo setup for using:
- Fastify
- tRPC
- Next.js
- ESLint
git clone git@github.com:maybemaby/fastify-trpc-next.git
pnpm iThis turborepo uses pnpm as a package manager. It includes the following packages/apps:
api: a Fastify + tRPC appweb: a Next.js + tRPC appschemafor sharing zod schemas between theapiandwebappsui: a stub React component library shared by thewebapplicationeslint-config-custom:eslintconfigurations (includeseslint-config-nextandeslint-config-prettier)eslint-config-custom-server:eslintconfiguration base for server appstsconfig: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:
pnpm run buildTo develop all apps and packages, run the following command:
pnpm run devTo run E2E tests with cypress and the api live
pnpm -w run start
pnpm -w run test:e2e