Skip to content

ShaneYu/tanstack-turbo

Repository files navigation

Tanstack Turbo

A minimal monorepo starter template for 🏝️ TanStack Start using Turborepo.

Getting started

  1. Use this template or clone this repository with gitpick:
pnpm dlx gitpick shaneyu/tanstack-turbo myapp
cd myapp
  1. Install dependencies:
pnpm install
  1. Create .env files.

    Per-app .env files make it clearer which vars belong to which task/app and works best with turborepo with it's caching.

  2. Push the schema to your database with prisma:

pnpm db push

https://www.prisma.io/docs/guides/data-migration

  1. Run the development server:
pnpm dev

The development server should now be running at http://localhost:3000.

Deploying to production

The vite config is currently configured to use Nitro v3 (nightly) to deploy on Vercel, but can be easily switched to other providers.

Refer to the TanStack Start hosting docs for deploying to other platforms.

Issue watchlist

Goodies

Scripts

We use pnpm by default, but you can modify these scripts in package.json to use your preferred package manager.

  • auth:generate - Regenerate the auth db schema if you've made changes to your Better Auth config.
  • db - Run prisma commands. (e.g. pnpm db generate, pnpm db studio)
  • ui - The shadcn/ui CLI. (e.g. pnpm ui add button)
  • format, lint, check-types - Run Biome and check TypeScript types respectively.
    • check - Run all three above. (e.g. pnpm check)
  • deps - Selectively upgrade dependencies via taze.

Utilities

License

Code in this template is public domain via Unlicense. Feel free to remove or replace for your own project.

Also check out

About

Turborepo with 🏝️ TanStack Start, Better Auth, Prisma ORM, shadcn/ui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages