Turborepo setup for using:
- Fastify
- tRPC
- Next.js
- ESLint
git clone git@github.com:maybemaby/fastify-trpc-next.git
pnpm i
This turborepo uses pnpm as a package manager. It includes the following packages/apps:
api
: a Fastify + tRPC appweb
: a Next.js + tRPC appschema
for sharing zod schemas between theapi
andweb
appsui
: a stub React component library shared by theweb
applicationeslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)eslint-config-custom-server
:eslint
configuration base for server appstsconfig
: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:
pnpm run build
To develop all apps and packages, run the following command:
pnpm run dev
To run E2E tests with cypress and the api live
pnpm -w run start
pnpm -w run test:e2e