Skip to content

Monorepo for fastify and nextjs. Uses Supabase for auth, OpenAPI for generating typesafe clients, and prisma as the ORM.

License

Notifications You must be signed in to change notification settings

maybemaby/fastify-next-starter

Repository files navigation

Fastify Next.js Monorepo Starter

Turborepo setup for using:

  • Fastify
  • Next.js
  • Supabase Auth
  • ESLint
  • Typescript

What's inside?

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

Apps and Packages

  • 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 client
  • 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

TODO

  • Figure out the issue with ui package not having the testing-library jest matchers.

About

Monorepo for fastify and nextjs. Uses Supabase for auth, OpenAPI for generating typesafe clients, and prisma as the ORM.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published