- Notifications
You must be signed in to change notification settings - Fork37
🏝️ minimal TanStack Start template with Better Auth, Drizzle ORM, shadcn/ui
License
dotnize/react-tanstarter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A minimal starter template for 🏝️ TanStack Start.→ Preview here
- React 19 +React Compiler
- TanStackStart +Router +Query
- Tailwind CSS v4 +shadcn/ui
- Drizzle ORM + PostgreSQL
- Better Auth
We're usingpnpm by default, but you can modify the scripts inpackage.json to use your preferred package manager.
Use this template or clone this repository with gitpick:
npx gitpick dotnize/react-tanstarter myappcd myapp
Install dependencies:
pnpm install
Create a
.env
file based on.env.example
.Push the schema to your database with drizzle-kit:
pnpm db push
Run the development server:
pnpm dev
The development server should now be running athttp://localhost:3000.
- React Compiler docs,Working Group - React Compiler is in RC.
- TanStack/router#2863 - TanStack Start is in beta may still undergo major changes.
These scripts inpackage.json usepnpm by default, but you can modify them to use your preferred package manager.
auth:generate
- Regenerate theauth db schema if you've made changes to your Better Authconfig.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
,lint
,check-types
- Run Prettier, ESLint, and check TypeScript types respectively.check
- Run all three above. (e.g.pnpm check
)
deps
- Selectively upgrade dependencies via taze.
auth-guard.ts
- Sample middleware for forcing authentication on server functions. (see#5 and#17)theme-toggle.tsx
- A simple component to toggle between light and dark mode. (#7)
Read thehosting docs for information on how to deploy your TanStack Start app.
Code in this template is public domain viaUnlicense. Feel free to remove or replace for your own project.
- create-tsrouter-app - The official CLI tool from the TanStack team to create Router/Start applications.
- CarlosZiegler/fullstack-start-template - A more batteries-included boilerplate that provides a solid foundation for building modern web apps.
About
🏝️ minimal TanStack Start template with Better Auth, Drizzle ORM, shadcn/ui
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.