Skip to content

maybemaby/fastify-trpc-next

Repository files navigation

Fastify tRPC Next.js Starter

Turborepo setup for using:

  • Fastify
  • tRPC
  • Next.js
  • ESLint

Getting Started

git clone git@github.com:maybemaby/fastify-trpc-next.git
pnpm i

What's inside?

This turborepo uses pnpm as a package manager. It includes the following packages/apps:

Apps and Packages

  • api: a Fastify + tRPC app
  • web: a Next.js + tRPC app
  • schema for sharing zod schemas between the api and web apps
  • ui: a stub React component library shared by the web application
  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • eslint-config-custom-server: eslint configuration base for server apps
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Utilities

This turborepo has some additional tools already setup for you:

Build

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

pnpm run build

Develop

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

pnpm run dev

Test:E2E

To run E2E tests with cypress and the api live

pnpm -w run start
pnpm -w run test:e2e

About

A starter project monorepo with Fastify, tRPC, and Next.js. Monorepo setup with Turborepo and pnpm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published