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 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
- 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
ui
package not having the testing-library jest matchers.