Skip to content
/ tanstarter Public template

minimal TanStack Start template with Better Auth, Drizzle ORM, shadcn/ui

Notifications You must be signed in to change notification settings

dotnize/tanstarter

Repository files navigation

A minimal starter template for 🏝️ TanStack Start.

Getting Started

  1. Use this template or clone this repository.

  2. Install dependencies:

    pnpm install # npm install
  3. Create a .env file based on .env.example.

  4. Push the schema to your database with drizzle-kit:

    pnpm db push # npm run db push

    https://orm.drizzle.team/docs/migrations

  5. Run the development server:

    pnpm dev # npm run dev

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

Goodies

Scripts

These scripts in package.json use pnpm by default, but you can update them to use other package managers if you prefer.

  • auth:generate - Regenerate the auth db schema if you've made changes to your Better Auth config.
  • db - Run drizzle-kit commands. (e.g. pnpm db generate to generate a migration)
  • ui - The shadcn/ui CLI. (e.g. pnpm ui add button to add the button component)
  • format and lint - Run Prettier and ESLint.

Utilities

Building for production

  1. Configure app.config.ts for your preferred deployment target. Read the hosting docs for more information.

  2. Build the application:

    pnpm build # npm run build
  3. If building for Node, you start the application via:

    pnpm start # npm start

Issue watchlist

Acknowledgements