Skip to content

mugnavo/tanstarter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

383 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

A minimal starter template for ๐Ÿ๏ธ TanStack Start. โ†’ Preview here

pnpm create mugnavo

Tip

This template is also available as a monorepo, powered by Vite+ and pnpm. See mugnavo/tanstarter-plus.

Getting Started

  1. Use this template or create a project using our CLI:

    pnpm create mugnavo
  2. Create a .env file based on .env.example.

  3. Generate the initial migration with drizzle-kit, then apply to your database:

    pnpm db generate
    pnpm db migrate

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

  4. Run the development server:

    pnpm dev

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

Deploying to production

Netlify Status

The vite config is configured to use Nitro by default, which supports many deployment presets like Netlify, Vercel, Node.js, and more.

Refer to the TanStack Start hosting docs for more information.

Issue watchlist

Goodies

Git hooks

We use Husky to run git hooks with the following tools:

  • lint-staged - Run Oxfmt to format staged files on commit (pre-commit).

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 drizzle-kit commands. (e.g. pnpm db generate, pnpm db studio)
  • ui - The shadcn/ui CLI. (e.g. pnpm ui add button)
  • format, lint - Run Oxfmt and Oxlint, or both via 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.

Ecosystem