Turborepo setup for using:
- Fastify
- Next.js
- Supabase Auth
- ESLint
- Typescript
This turborepo uses pnpm as a package manager. It includes the following packages/apps:
api: a Fastify app using Supabase for auth plugin and exposes an OpenAPI spec for generating typesafe clients.web: a Next.js app that uses Orval to generate a typesafe axios clientui: 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
- Jest for unit testing
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
- Figure out the issue with
uipackage not having the testing-library jest matchers.