A minimal starter template for 🏝️ TanStack Start.
- TanStack Start + Router + Query
- Tailwind CSS + shadcn/ui
- Drizzle ORM + PostgreSQL
- Auth based on BetterAuth
Auth providers:
- Discord
-
Use this template or clone this repository.
-
Install dependencies:
pnpm install # npm install
-
Create a
.env
file based on.env.example
. -
Generate the better-auth schema with the better-auth cli
pnpm db:auth:generate
This will generate the
auth-schema.ts
file and put it in the appropriate location. -
Push the schema to your database with drizzle-kit:
pnpm db push # npm run db push
-
Run the development server:
pnpm dev # npm run dev
The development server should be now running at http://localhost:3000.
-
Configure
app.config.ts
for your preferred deployment target. Read the hosting docs for more information. -
Build the application:
pnpm build # npm run build
-
If building for Node, you start the application via:
pnpm start # npm start